Aoma Risk Scan

Repository: aoma-scan-demo · Read-only scan · Prototype report v0.1

11
Grade F

Aoma Risk Score /100 — structural + security health of the codebase.

SeverityFindingWhereEngine
CRITICALHardcoded secret (stripe-access-token)app.py:8Gitleaks
CRITICALHardcoded secret assigned in source code — move it to an environment variable or secrets manager.app.py:8Semgrep
CRITICALHardcoded secret assigned in source code — move it to an environment variable or secrets manager.app.py:9Semgrep
CRITICALSQL statement assembled by string formatting — build queries with parameters instead.app.py:18Semgrep
CRITICALeval()/exec() executes arbitrary code — remove it or replace with a safe parser.app.py:25Semgrep
CRITICALHardcoded secret assigned in source code — move it to an environment variable or secrets manager.config.py:2Semgrep
HIGHDebug mode enabled in code — never ship debug=True to production.app.py:11Semgrep
HIGHDebug mode enabled in code — never ship debug=True to production.config.py:3Semgrep
HIGHDetected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic siutils.py:7Semgrep
HIGHflask 2.0.1 — PYSEC-2023-62: known vulnerabilityrequirements.txtOSV-Scanner
HIGHflask 2.0.1 — PYSEC-2026-2151: known vulnerabilityrequirements.txtOSV-Scanner
HIGHflask 2.0.1 — GHSA-68rp-wp8r-4726: Flask session does not add `Vary: Cookie` header when accessed in some waysrequirements.txtOSV-Scanner
HIGHflask 2.0.1 — GHSA-m2qf-hxjv-5gpq: Flask vulnerable to possible disclosure of permanent session cookie due to missing Vary: Crequirements.txtOSV-Scanner
HIGHpyyaml 5.1.0 — PYSEC-2020-176: known vulnerabilityrequirements.txtOSV-Scanner
HIGHpyyaml 5.1.0 — PYSEC-2020-96: known vulnerabilityrequirements.txtOSV-Scanner
HIGHpyyaml 5.1.0 — PYSEC-2021-142: known vulnerabilityrequirements.txtOSV-Scanner
HIGHpyyaml 5.1.0 — GHSA-3pqx-4fqf-j49f: Deserialization of Untrusted Data in PyYAMLrequirements.txtOSV-Scanner
HIGHpyyaml 5.1.0 — GHSA-6757-jp84-gxfx: Improper Input Validation in PyYAMLrequirements.txtOSV-Scanner
HIGHpyyaml 5.1.0 — GHSA-8q59-q68h-6hv4: Improper Input Validation in PyYAMLrequirements.txtOSV-Scanner
HIGHrequests 2.19.1 — PYSEC-2018-28: known vulnerabilityrequirements.txtOSV-Scanner
HIGHrequests 2.19.1 — PYSEC-2023-74: known vulnerabilityrequirements.txtOSV-Scanner
HIGHrequests 2.19.1 — PYSEC-2026-1872: Requests vulnerable to .netrc credentials leak via malicious URLsrequirements.txtOSV-Scanner
HIGHrequests 2.19.1 — PYSEC-2026-1873: Requests `Session` object does not verify requests after making first request with verify=requirements.txtOSV-Scanner
HIGHrequests 2.19.1 — PYSEC-2026-2275: known vulnerabilityrequirements.txtOSV-Scanner
HIGHrequests 2.19.1 — GHSA-9hjg-9r4m-mvj7: Requests vulnerable to .netrc credentials leak via malicious URLsrequirements.txtOSV-Scanner
HIGHrequests 2.19.1 — GHSA-9wx4-h78v-vm56: Requests `Session` object does not verify requests after making first request with verify=requirements.txtOSV-Scanner
HIGHrequests 2.19.1 — GHSA-gc5v-m9x4-r6x2: Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility functionrequirements.txtOSV-Scanner
HIGHrequests 2.19.1 — GHSA-j8r2-6x86-q33q: Unintended leak of Proxy-Authorization header in requestsrequirements.txtOSV-Scanner
HIGHrequests 2.19.1 — GHSA-x84v-xcm2-53pg: Insufficiently Protected Credentials in Requestsrequirements.txtOSV-Scanner
HIGHcertifi 2026.7.22 — PYSEC-2026-4320: certifi bundles emSign root CAs with compromised intermediate CA keysrequirements.txtOSV-Scanner
HIGHcertifi 2026.7.22 — GHSA-6q48-6c7w-9gw2: certifi bundles emSign root CAs with compromised intermediate CA keysrequirements.txtOSV-Scanner
HIGHidna 2.7.0 — PYSEC-2024-60: known vulnerabilityrequirements.txtOSV-Scanner
HIGHidna 2.7.0 — PYSEC-2026-215: known vulnerabilityrequirements.txtOSV-Scanner
HIGHidna 2.7.0 — GHSA-65pc-fj4g-8rjx: Internationalized Domain Names in Applications (IDNA): Specially crafted inputs to idna.enrequirements.txtOSV-Scanner
HIGHidna 2.7.0 — GHSA-jjg7-2v4v-x38h: Internationalized Domain Names in Applications (IDNA) vulnerable to denial of service fromrequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — PYSEC-2019-132: known vulnerabilityrequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — PYSEC-2019-133: known vulnerabilityrequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — PYSEC-2020-148: known vulnerabilityrequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — PYSEC-2023-192: known vulnerabilityrequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — PYSEC-2023-207: known vulnerabilityrequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — PYSEC-2023-212: known vulnerabilityrequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — PYSEC-2026-141: known vulnerabilityrequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — PYSEC-2026-1994: urllib3 streaming API improperly handles highly compressed datarequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — PYSEC-2026-1995: urllib3's Proxy-Authorization request header isn't stripped during cross-origin redirectsrequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — PYSEC-2026-1996: Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API)requirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — PYSEC-2026-1999: urllib3 redirects are not disabled when retries are disabled on PoolManager instantiationrequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — PYSEC-2026-4177: urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into merequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — GHSA-2xpw-w6gg-jr37: urllib3 streaming API improperly handles highly compressed datarequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — GHSA-34jh-p97f-mpxf: urllib3's Proxy-Authorization request header isn't stripped during cross-origin redirectsrequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — GHSA-38jv-5279-wg99: Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API)requirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — GHSA-g4mx-q9vg-27p4: urllib3's request body not stripped after redirect from 303 status changes request method requirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — GHSA-gwvm-45gx-3cf8: Authorization Header forwarded on redirectrequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — GHSA-mh33-7rrq-662w: Improper Certificate Validation in urllib3requirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — GHSA-pq67-6m6q-mj2v: urllib3 redirects are not disabled when retries are disabled on PoolManager instantiationrequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — GHSA-qccp-gfcp-xxvc: urllib3: Sensitive headers forwarded across origins in proxied low-level redirectsrequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — GHSA-r64q-w8jr-g9qp: Improper Neutralization of CRLF Sequences in urllib3 library for Pythonrequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — GHSA-v845-jxx5-vc9f: `Cookie` HTTP header isn't stripped on cross-origin redirectsrequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — GHSA-vxq7-64xx-v4gw: urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into merequirements.txtOSV-Scanner
HIGHurllib3 1.23.0 — GHSA-wqvq-5m8c-6g24: CRLF injection in urllib3requirements.txtOSV-Scanner
MEDIUMHigh-complexity function scan_deps (cyclomatic 14) — hard to test, easy to breakCodeGraphContext
MEDIUMHigh-complexity function legacy_discount_engine (cyclomatic 13) — hard to test, easy to breakCodeGraphContext

Dead code: 4 function(s) with no callers (run_user_formula, old_invoice_exporter_v1, old_invoice_exporter_v2, deprecated_tax_lookup) — maintenance weight and hiding places for bugs.

What checked this code (named, on purpose):
CodeGraphContext 0.6.13 (MIT) drew the code map — function complexity and dead code. Gitleaks 8.28.0 (MIT) hunted hardcoded secrets. Semgrep 1.182.1 (LGPL-2.1) ran registry pattern packs (p/python, p/secrets, p/security-audit) plus Aoma's own curated rules. OSV-Scanner 2.7.0 (Apache-2.0) matched pinned dependencies against the OSV vulnerability database. The Aoma layer is the rule curation, the Risk Score, and this report.

How we handle code: the scan is read-only — it never writes to your tree. Scan copies are deleted on a written clock after delivery. We never train models on client code.