[PR #3652] [CLOSED] Fix: mask passwords in logs of failed login attempts #5497

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3652
Author: @Frew777
Created: 1/9/2026
Status: ❌ Closed

Base: main ← Head: fix-mask-password-logs


📝 Commits (1)

  • 0f7cbb3 Fix plaintext password logging in failed login attempts

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 web/controller/index.go (+2 -2)

📄 Description

This PR fixes security issue #3644 by masking passwords in logs and Telegram notifications.
Passwords are no longer stored or transmitted in plaintext, reducing the risk of credential leakage.

Fixes #3644

What is the pull request?

This PR removes plaintext password logging from failed login attempts in the backend.
Passwords are replaced with masked values ("****") in logs and Telegram notifications.

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/3652 **Author:** [@Frew777](https://github.com/Frew777) **Created:** 1/9/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-mask-password-logs` --- ### 📝 Commits (1) - [`0f7cbb3`](https://github.com/MHSanaei/3x-ui/commit/0f7cbb3f2a356fcf25a57627511b835af05d4574) Fix plaintext password logging in failed login attempts ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `web/controller/index.go` (+2 -2) </details> ### 📄 Description This PR fixes security issue #3644 by masking passwords in logs and Telegram notifications. Passwords are no longer stored or transmitted in plaintext, reducing the risk of credential leakage. Fixes #3644 ## What is the pull request? This PR removes plaintext password logging from failed login attempts in the backend. Passwords are replaced with masked values ("****") in logs and Telegram notifications. ## Which part of the application is affected by the change? - [ ] Frontend - [x] Backend ## Type of Changes - [x] Bug fix - [ ] New feature - [ ] Refactoring - [ ] Other --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:47:22 +07:00
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#5497
No description provided.