mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #3010] Sensitive Information (Password) Logged on Failed Login Attempts #2012
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#2012
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 @samssh on GitHub (May 16, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3010
Describe the bug
When a login attempt fails due to an incorrect username, password, or 2FA code, the application logs the entire login payload, including the plaintext password. This poses a serious security risk by potentially exposing sensitive user credentials in the application logs.
This information is not only stored in local logs but is also sent through the Telegram bot logs, which poses a significant security risk.
How to repeat the problem?
Attempt to log in with an incorrect password or invalid 2FA code.
Check the application logs.
Observe that the log entry contains both the username and the password used in the attempt.
Expected action
The application should log only non-sensitive metadata (e.g., username and IP address) when a login fails. Passwords or 2FA codes should never be included in logs.
Received action
The logs contain entries like the following, which expose the user's password:
WARNING - wrong username: "admin", password: "[password]", IP: "[IP]"
3x-ui Version
2.6.0
Xray-core Version
v25.5.16
Checklist