OWASP API2 2023 No Credentials in URL (Edit)

URL parameters MUST NOT contain credentials such as API key, password, or secret. This is a security risk as URLs are often logged and cached.

OWASPSecurityCredentialsOpenAPI

Rule Definition

owasp-api2-2023-no-credentials-in-url-error.yaml
{"owasp-api2-2023-no-credentials-in-url-error":{"description":"URL parameters MUST NOT contain credentials such as API key, password, or secret. This is a security risk as URLs are often logged and cached.","message":"Security credentials detected in path parameter.","given":"$..parameters[?(@.in.match(/query|path/))].name","severity":"error","then":{"function":"pattern","functionOptions":{"notMatch":"(?i)(password|secret|token|apikey|api_key|api-key|credential)"}}}}

Back to All of the Rules