mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5222] [Issue]: APK bootstrap opens secret login and rejects Origin null #2891
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#2891
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 (Aug 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5222
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The released Android APK bootstrap opens a separate localhost browser login, asks the installer to paste the generated local-access secret, and can then fail with
Origin: nullrejected by CSRF.Expected behavior
Downloading and opening the APK should keep its per-install credential automatic. After Android and Termux system prompts, the authenticated app shell should open Marinara without
.envedits, secret entry, or aCSRF_TRUSTED_ORIGINSworkaround.Actual behavior
The Termux launcher auto-opens
/android-login. After the correct secret is entered, Android can submit the authenticated session withOrigin: null; the general CSRF gate rejects it before Android authentication runs. The resulting hint incorrectly suggests addingnulltoCSRF_TRUSTED_ORIGINS, although literalnullis intentionally treated as unset.Steps to reproduce
cat ~/.marinara-engine/android-secret, and submit.Environment
Logs, screenshots, or video
The support thread included screenshots of the browser authentication prompt and the subsequent
Origin: nullCSRF failure; original image files were not attached to this issue.Additional context
Manual Termux installation worked around the problem. Adding
null,http://null, or localhost entries toCSRF_TRUSTED_ORIGINSdid not and should not be required.Owner: @SpicyMarinara
Template check
@SpicyMarinara commented on GitHub (Aug 18, 2026):
Fixed in #5224 and merged into staging as
120481a293.