mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #4043] [CLOSED] security: fix password log leak, getDb CSRF, cookie hardening #5585
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5585
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/4043
Author: @snvv133
Created: 4/19/2026
Status: ❌ Closed
Base:
main← Head:security-fixes📝 Commits (1)
3c11977security: fix password log leak, getDb CSRF, cookie hardening📊 Changes
4 files changed (+36 additions, -7 deletions)
View changed files
📝
web/controller/index.go(+2 -3)📝
web/controller/server.go(+7 -1)📝
web/html/index.html(+22 -2)📝
web/web.go(+5 -1)📄 Description
web/controller/index.go Stop logging the submitted plaintext password on failed login. Replace it with "***" in the Telegram notification too.
web/controller/server.go + web/html/index.html Convert /panel/api/server/getDb from GET to POST and require an X-Requested-With header. Prevents //
CSRF that would otherwise let an attacker steal the SQLite DB by tricking a logged-in admin into loading a single URL.web/web.go Set Secure=true on the session cookie when TLS cert/key are configured, and tighten SameSite from Lax to Strict for the panel session.
What is the pull request?
Which part of the application is affected by the change?
Type of Changes
Screenshots
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.