mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5859] [Issue]: Prevent import uploads when a CSRF issue is detected #3231
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3231
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Sep 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5859
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Import uploads should be blocked before transfer when a CSRF issue is detected. Currently, the upload can proceed and fail only after approximately 1 GB has been uploaded.
Expected behavior
Marinara Engine should detect the CSRF issue before starting the import upload and prevent the upload from beginning, with a clear error message.
Actual behavior
After bypassing Cloudflare to load a backup, Marinara Engine uploaded approximately 1 GB before reporting a CSRF issue and refusing the import.
Steps to reproduce
Environment
Logs, screenshots, or video
Not provided in the Discord context.
Additional context
The report specifically requests that uploads be blocked immediately when a CSRF issue is present, rather than refusing after the upload has completed or substantially progressed.
Discord thread: Prevent import uploads if there is a csrf issue
Discord thread link: https://discord.com/channels/1417099416812392641/1545228999024840714
Requested by: Kuc0 (kuc0, Discord ID 108988150629531648)
Discord thread transcript (2 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Sep 5, 2026):
Owner: @SpicyMarinara, implementation by Codex in Issue Sweep PR #5865. I have read the issue and all current comments. Work will target staging, reuse existing code, and include focused regression proof; unrelated open/draft PRs remain untouched.
@SpicyMarinara commented on GitHub (Sep 5, 2026):
Completed on staging in #5865 (merge
314a71a586).Added a body-free CSRF preflight before multipart uploads; the actual upload retains its independent security checks.
Focused regression proof and manual verification boundaries are documented in the PR. Required checks and the full final regression matrix passed; CodeRabbit completed review with all threads resolved. Closing as completed on staging, not a main release.