Zum Inhalt springen

Cleartext HTTP traffic (ARCH2118)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Key python.security.cleartext-http · Severity warning · Category security · CWE CWE-319

Sending sensitive data over http:// lets the traffic travel the network in cleartext, readable by anyone in the path. All sensitive requests should be protected with TLS.

import requests
resp = requests.post("http://api.example.com/login",
json={"user": user, "password": pw})
import requests
resp = requests.post("https://api.example.com/login",
json={"user": user, "password": pw})

Call all sensitive endpoints over https:// and never disable TLS validation.