mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #2568] [CLOSED] Fix code scanning alert no. 55: Clear-text logging of sensitive information #5143
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#5143
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/2568
Author: @MHSanaei
Created: 9/27/2024
Status: ❌ Closed
Base:
main← Head:autofix/alert-55-6f1d8d7b4b📝 Commits (1)
f9b0e5fFix code scanning alert no. 55: Clear-text logging of sensitive information📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
main.go(+1 -1)📄 Description
Fixes https://github.com/MHSanaei/3x-ui/security/code-scanning/55
To fix the problem, we should avoid printing the password in clear text. Instead, we can either obfuscate the password or omit it entirely from the output. In this case, we will replace the password with a placeholder text to indicate that the password exists without revealing its actual value.
showSettingfunction to replace the clear-text password with a placeholder.fmt.Println("password:", userpasswd)line to print a placeholder instead of the actual password.Suggested fixes powered by Copilot Autofix. Review carefully before merging.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.