Tainted flow: 'HEADERS_JSON' from os.environ.get (line 21, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
dockerfile_content = f.read() # Validate Dockerfile first check = requests.post( f"{BASE_V2}/dockerfile/check", headers=HEADERS_JSON, json={"dockerfile": dockerfile_content},- Confidence
- 80% confidence
- Finding
- The code reads a local Dockerfile and transmits its full contents to an external service for validation. Dockerfiles often embed internal registry URLs, build arguments, secrets mishandled as ARG/ENV, or proprietary build logic, so this creates a real data-exposure path beyond simple authentication use.
