SV-274679r1143712_rule
V-274679
SRG-APP-000400
SRG-APP-000400-API-000855
CAT II
10
Review the API and authentication codebase. Remove internal tokens being passed around or exposed at any point in the code.
Verify the API's internal authorization tokens are not provided back to the user.
Inspect API responses: Look at the API responses for any authorization tokens (e.g., JSON Web Tokens [JWT] tokens, session tokens, API keys) that may be included in the response body or headers. Verify sensitive tokens are not being returned as part of a successful request or error response.
Audit API documentation: Review the API documentation to see if the token is explicitly mentioned as being returned to the user.
If internal tokens are part of any public documentation for user-facing APIs, this is a finding.
V-274679
False
SRG-APP-000400-API-000855
Verify the API's internal authorization tokens are not provided back to the user.
Inspect API responses: Look at the API responses for any authorization tokens (e.g., JSON Web Tokens [JWT] tokens, session tokens, API keys) that may be included in the response body or headers. Verify sensitive tokens are not being returned as part of a successful request or error response.
Audit API documentation: Review the API documentation to see if the token is explicitly mentioned as being returned to the user.
If internal tokens are part of any public documentation for user-facing APIs, this is a finding.
M
5703