mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #4275] [MERGED] Security hardening: sessions, SSRF, CSP nonce, CSRF logout, trusted proxies #5641
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#5641
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/4275
Author: @farhadh
Created: 5/11/2026
Status: ✅ Merged
Merged: 5/13/2026
Merged by: @MHSanaei
Base:
main← Head:fix/farhadh/security-hardening-2📝 Commits (10+)
ce88b0brefactor(session): store user ID in session instead of full struct56ce607feat(auth): block panel with default admin/admin credentials and guide credential changea6a4ffbfeat(settings): redact secrets in AllSettingView and add TrustedProxyCIDRs5ffd896fix(security): SSRF prevention, trusted-proxy header gating, CSP nonce, HTTP timeouts6343c43feat(nodes): add allow-private-address toggle per node11629fbchore: frontend UX improvements, CI pipeline, and dev tooling5550207fix(ci): stub web/dist before go list to satisfy go:embed at compile timed8e05c1chore(ui): remove health-strip bar from dashboard top11db4f0Merge branch 'main' into fix/farhadh/security-hardening-2d028d39Revert "feat(auth): block panel with default admin/admin credentials and guide credential change"📊 Changes
40 files changed (+966 additions, -161 deletions)
View changed files
📝
.github/dependabot.yml(+8 -0)➕
.github/workflows/ci.yml(+63 -0)➕
.nvmrc(+1 -0)📝
database/model/model.go(+17 -24)📝
frontend/package-lock.json(+4 -0)📝
frontend/package.json(+4 -0)📝
frontend/src/api/axios-init.js(+10 -21)📝
frontend/src/components/AppSidebar.vue(+8 -2)📝
frontend/src/models/setting.js(+8 -1)📝
frontend/src/pages/api-docs/endpoints.js(+5 -4)📝
frontend/src/pages/inbounds/InboundList.vue(+68 -7)📝
frontend/src/pages/nodes/NodeFormModal.vue(+7 -0)📝
frontend/src/pages/settings/GeneralTab.vue(+13 -1)📝
frontend/src/pages/settings/SecurityTab.vue(+3 -4)📝
frontend/src/pages/settings/TelegramTab.vue(+5 -2)📝
frontend/src/pages/settings/TwoFactorModal.vue(+8 -2)📝
frontend/src/pages/sub/SubPage.vue(+0 -1)📝
frontend/src/pages/xray/DnsPresetsModal.vue(+1 -1)📝
web/controller/api.go(+6 -16)📝
web/controller/dist.go(+5 -1)...and 20 more files
📄 Description
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.