Medium severityPythonSensitive Data ExposureMEDIUM confidence
Hardcoded PII Literal
A real-looking SSN or payment-card number is hardcoded as a string literal (CWE-359), likely test data leaking into source.
Standards mapping
- OWASP Top 10
- A02:2021 - Cryptographic Failures
- OWASP ASVS
- V8.3.4 (L2)
Vulnerable vs. safe
Flagged by this check
test_ssn = "000-00-0000"Passes - the safe pattern
test_ssn = "not-a-real-ssn-value"Why it matters & how to fix it
A real-looking SSN or payment-card number is hardcoded as a string literal (CWE-359), likely test data leaking into source. Remove the value from code; use synthetic, clearly-fake test fixtures loaded at runtime.
References
Rule ID integsec-python-hardcoded-pii-literal - engine: Opengrep - license: MIT - Copyright (c) IntegSec Inc.
TurboPentest runs this check automatically
Connect a GitHub repo and this check runs on every white-box pentest - AI-validated and reported with proof, from $99 per target.
Start a pentestRelated checks
- JavaScript / TypeScript - Sensitive Data ExposureError Stack In Response
- JavaScript / TypeScript - Sensitive Data ExposurePII PHI In Logs
- JavaScript / TypeScript - Sensitive Data ExposureSecret In Logs
- JavaScript / TypeScript - Sensitive Data ExposureSensitive Data Client Storage
- JavaScript / TypeScript - Sensitive Data ExposureSensitive Data In URL Query
- Python - Sensitive Data ExposureFlask Traceback In Response