fix(security): resolve audit findings — debug log, payment bypass, images #1
Reference in New Issue
Block a user
Delete Branch "fix/security-audit"
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?
Addresses the RE:Quest code-audit findings for the admin panel.
Changes
firebase-debug.logfrom the codebase and gitignore it(
firebase-debug.log*). It containedauthorizing via signed-in user (ppradeepd@gmail.com)— a developer's personal Google account, indicatingFirebase/GCP resources may have been administered under a personal vendor
account.
skipPaymentCheckapproval flag. Investigationfinding: the flag was inert. It was declared on an inline request-body type and
the backend only ever reads
statusandnote, so it never reached the server —it only selected which branch of this page's own confirmation modal ran. Removing
it changes no server behaviour.
"**"with an explicit allowlist(Contabo, AWS, DigitalOcean Spaces), closing the SSRF/abuse surface.
History rewrite (already applied to
main)firebase-debug.logwas present in all 74 commits, so removing the file alone didnot close the finding.
mainhas been rewritten withgit-filter-repoandforce-pushed. Verified: the file and the personal email address now appear in zero
commits, and the old commit objects are pruned locally.
Everyone must delete their adminpanel clone and re-clone. A
git pullonto anexisting clone merges the old commits — and the file — back in, and pushing from a
stale clone would restore it to the remote.
Follow-up for whoever administers the Gitea instance
Please run garbage collection on this repository. The old commits are unreferenced
but may remain as dangling objects reachable by direct SHA URL until GC runs, which
would leave the leaked address retrievable despite the rewrite.
Verification
next buildclean. Working tree byte-identical to pre-rewrite — only history changed.