Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of Hard-coded Password (CWE ID 259) #6603

Closed
xiakunhou opened this issue Nov 10, 2020 · 0 comments
Closed

Use of Hard-coded Password (CWE ID 259) #6603

xiakunhou opened this issue Nov 10, 2020 · 0 comments

Comments

@xiakunhou
Copy link

Content & configuration

Doing static code analysis, found CWE 259 problem in following line.
https://github.com/swagger-api/swagger-ui/blob/v3.25.0/src/core/components/auth/oauth2.jsx#L105

Description
A method uses a hard-coded password that may compromise system security in a way that cannot be easily remedied.
The use of a hard-coded password significantly increases the possibility that the account being protected will be
compromised. Moreover, the password cannot be changed without patching the software. If a hard-coded password
is compromised in a commercial product, all deployed instances may be vulnerable to attack.

Recommendations
Store passwords out-of-band from the application code. Follow best practices for protecting credentials stored in
locations such as configuration or properties files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant