Basic HTTP auth

owasp:api2:2019-no-http-basic

Rule Severity:

High

Ensure endpoints do not use http basic authentication scheme
This rule applies at the API Specification level (OAS/Swagger).
Endpoints with weak authentication mechanisms are at risk of being breached. Basic authentication should only be used with other security mechanisms such as HTTPS/SSL

1. How to Identify with Example Scenario

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

securitySchemes: authType: # arbitrary name for the security scheme type: http scheme: basic

2. How to Identify with Example Scenario

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

1. How to Resolve with Example Scenario

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

securitySchemes: authType: # arbitrary name for the security scheme type: http scheme: bearer

2. How to Resolve with Example Scenario

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