[GH-ISSUE #3010] Sensitive Information (Password) Logged on Failed Login Attempts #2012

Closed
opened 2026-10-31 20:22:36 +07:00 by bsakaguchi · 0 comments
Owner

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

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
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 - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:22:36 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#2012
No description provided.