Skip to content

Cleartext credentials over unencrypted channel should not be accepted for the operation

Description

Sending credentials over HTTP in cleartext exposes API calls to attacks including man-in-the-middle attacks. Ensure that you are using an encrypted channel for sending credentials.

Code Example

yaml
components:
securitySchemes:
-    unencryptedScheme:
-      type: http
-      scheme: basic
paths:
"/":
get:
security:
-        - unencryptedScheme: []

Remediation

OpenAPI

Ensure that you aren't using the unencryptedScheme. For example:

Rule Details

FieldValue
IDIAC-1259
SeverityHIGH
IaC TypeOpenAPI
FrameworksOpenAPI
Checkov IDCKV_OPENAPI_3

References