Basic Authentication found in logs

firetail:insight-basic-auth-in-logs

Type:

Detection

Rule Severity:

Info

The use of HTTP Basic Authentication was found in the logs of the affected API.

Basic Authentication is a method for providing credentials during HTTP requests by sending a username and password encoded in base64 within the HTTP headers. However, it is not inherently secure as base64 encoding is not encryption and can be easily decoded if intercepted. Additionally, if Basic Authentication is used without HTTPS, the credentials are transmitted in plaintext, making them vulnerable to eavesdropping and unauthorized access.

Finding Basic Authentication details in logs indicates that the API logs contain information related to HTTP Basic Authentication. This may include credentials, such as usernames and passwords encoded in base64, which might be recorded in the logs. Additionally, the logs could show instances where Basic Authentication was used to access the API, potentially exposing sensitive information and access records.

Remediation

Basic Authentication should not be used for APIs. Review the logs in question and verify that the authentication methods are in accordance with your security policies.

Example Attack Scenario

How to Identify with Example Scenario

How to Resolve with Example Scenario

How to Identify with Example Scenario

Find the text in bold to identify issues such as these in API specifications

How to Resolve with Example Scenario

Modify the text in bold to resolve issues such as these in API specifications
References:

More findings

All Findings