[GH-ISSUE #2783] The password is stored in plain text. #1845

Closed
opened 2026-10-31 20:21:28 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @kernelplv on GitHub (Mar 17, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/2783

I don't think that should happen—that an admin, by accidentally mistyping just one letter when entering the password, ends up with the password being stored in the logs.

Image

Originally created by @kernelplv on GitHub (Mar 17, 2025). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/2783 I don't think that should happen—that an admin, by accidentally mistyping just one letter when entering the password, ends up with the password being stored in the logs. ![Image](https://github.com/user-attachments/assets/6e0d4490-1f18-49b5-8dc2-3f4f67ea274e)
bsakaguchi 2026-10-31 20:21:28 +07:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@MHSanaei commented on GitHub (Mar 17, 2025):

That's happening only if you enter the wrong username or password.

<!-- gh-comment-id:2728528507 --> @MHSanaei commented on GitHub (Mar 17, 2025): That's happening only if you enter the wrong username or password.
Author
Owner

@kernelplv commented on GitHub (Mar 17, 2025):

I understand that mistakes in input may occur; however, this does not negate the fact that the log stores variations of the password, which could easily assist in brute-force attacks or be exploited by colleagues glancing over your shoulder. I would not like to have my password stored in such a manner.

thank you

<!-- gh-comment-id:2728556703 --> @kernelplv commented on GitHub (Mar 17, 2025): I understand that mistakes in input may occur; however, this does not negate the fact that the log stores variations of the password, which could easily assist in brute-force attacks or be exploited by colleagues glancing over your shoulder. I would not like to have my password stored in such a manner. thank you
Author
Owner

@MHSanaei commented on GitHub (Mar 17, 2025):

As I said, this only happens if you enter the wrong username or password. So how exactly could your colleagues know your password when all they’d see is the incorrect one? And how does this help brute-force attacks?

<!-- gh-comment-id:2728832643 --> @MHSanaei commented on GitHub (Mar 17, 2025): As I said, this only happens if you enter the wrong username or password. So how exactly could your colleagues know your password when all they’d see is the incorrect one? And how does this help brute-force attacks?
Author
Owner

@kernelplv commented on GitHub (Mar 17, 2025):

For anyone who accidentally or intentionally sees an incorrect password, many opportunities open up:

  1. Reducing the brute-force attack alphabet: For example, if the incorrect password is SummmerVacation2025!, it becomes evident that the attack alphabet should consist of uppercase and lowercase Latin letters, 15–20 characters, meaningful words, words split by capital letters, grouped numbers, and so on (This reduces the complexity of cracking by 50-70%.).

  2. Obvious errors: Naturally, a person would immediately realize that this password simply contains an extra "m".

Even in cases where the password is stored only temporarily and within a private form, password character masking is used to avoid simple issues like shoulder surfing. Usually, security specialists even store the salt for hashes in a separate database, but here the password is logged right alongside the login.

I suggest not storing the login and password at all. It doesn't make sense, yet it creates a potential leakage channel.

<!-- gh-comment-id:2729046939 --> @kernelplv commented on GitHub (Mar 17, 2025): For anyone who accidentally or intentionally sees an incorrect password, many opportunities open up: 1. Reducing the brute-force attack alphabet: For example, if the incorrect password is SummmerVacation2025!, it becomes evident that the attack alphabet should consist of uppercase and lowercase Latin letters, 15–20 characters, meaningful words, words split by capital letters, grouped numbers, and so on (This reduces the complexity of cracking by 50-70%.). 2. Obvious errors: Naturally, a person would immediately realize that this password simply contains an extra "m". Even in cases where the password is stored only temporarily and within a private form, password character masking is used to avoid simple issues like shoulder surfing. Usually, security specialists even store the salt for hashes in a separate database, but here the password is logged right alongside the login. I suggest not storing the login and password at all. It doesn't make sense, yet it creates a potential leakage channel.
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#1845
No description provided.