http — url secret
Use of HTTP Request Method With Sensitive Query Strings
The inclusion of sensitive information, such as a username, password, or API key, directly within a URL is considered a security risk because URLs can be logged in various places, such as web server logs, browser history, and network monitoring tools, making the sensitive information vulnerable to unauthorized access.
Example
| http_url_secret_apikey.py | |
|---|---|
Example Output
Remediation
To avoid this vulnerability, put sensitive information in the request as headers, rather than a parameter of the URL.
| http_url_secret_apikey.py | |
|---|---|
Default Configuration
enabled = true
level = "error"
sensitive_params = [
"apiKey",
"pass",
"password",
"user",
"username",
]
See also
Info
New in version 0.3.4