Repository: aoma-scan-demo · Read-only scan · Prototype report v0.1
Aoma Risk Score /100 — structural + security health of the codebase.
| Severity | Finding | Where | Engine |
|---|---|---|---|
| CRITICAL | Hardcoded secret (stripe-access-token) | app.py:8 | Gitleaks |
| CRITICAL | Hardcoded secret assigned in source code — move it to an environment variable or secrets manager. | app.py:8 | Semgrep |
| CRITICAL | Hardcoded secret assigned in source code — move it to an environment variable or secrets manager. | app.py:9 | Semgrep |
| CRITICAL | SQL statement assembled by string formatting — build queries with parameters instead. | app.py:18 | Semgrep |
| CRITICAL | eval()/exec() executes arbitrary code — remove it or replace with a safe parser. | app.py:25 | Semgrep |
| CRITICAL | Hardcoded secret assigned in source code — move it to an environment variable or secrets manager. | config.py:2 | Semgrep |
| HIGH | Debug mode enabled in code — never ship debug=True to production. | app.py:11 | Semgrep |
| HIGH | Debug mode enabled in code — never ship debug=True to production. | config.py:3 | Semgrep |
| HIGH | Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic si | utils.py:7 | Semgrep |
| HIGH | flask 2.0.1 — PYSEC-2023-62: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | flask 2.0.1 — PYSEC-2026-2151: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | flask 2.0.1 — GHSA-68rp-wp8r-4726: Flask session does not add `Vary: Cookie` header when accessed in some ways | requirements.txt | OSV-Scanner |
| HIGH | flask 2.0.1 — GHSA-m2qf-hxjv-5gpq: Flask vulnerable to possible disclosure of permanent session cookie due to missing Vary: C | requirements.txt | OSV-Scanner |
| HIGH | pyyaml 5.1.0 — PYSEC-2020-176: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | pyyaml 5.1.0 — PYSEC-2020-96: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | pyyaml 5.1.0 — PYSEC-2021-142: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | pyyaml 5.1.0 — GHSA-3pqx-4fqf-j49f: Deserialization of Untrusted Data in PyYAML | requirements.txt | OSV-Scanner |
| HIGH | pyyaml 5.1.0 — GHSA-6757-jp84-gxfx: Improper Input Validation in PyYAML | requirements.txt | OSV-Scanner |
| HIGH | pyyaml 5.1.0 — GHSA-8q59-q68h-6hv4: Improper Input Validation in PyYAML | requirements.txt | OSV-Scanner |
| HIGH | requests 2.19.1 — PYSEC-2018-28: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | requests 2.19.1 — PYSEC-2023-74: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | requests 2.19.1 — PYSEC-2026-1872: Requests vulnerable to .netrc credentials leak via malicious URLs | requirements.txt | OSV-Scanner |
| HIGH | requests 2.19.1 — PYSEC-2026-1873: Requests `Session` object does not verify requests after making first request with verify= | requirements.txt | OSV-Scanner |
| HIGH | requests 2.19.1 — PYSEC-2026-2275: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | requests 2.19.1 — GHSA-9hjg-9r4m-mvj7: Requests vulnerable to .netrc credentials leak via malicious URLs | requirements.txt | OSV-Scanner |
| HIGH | requests 2.19.1 — GHSA-9wx4-h78v-vm56: Requests `Session` object does not verify requests after making first request with verify= | requirements.txt | OSV-Scanner |
| HIGH | requests 2.19.1 — GHSA-gc5v-m9x4-r6x2: Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function | requirements.txt | OSV-Scanner |
| HIGH | requests 2.19.1 — GHSA-j8r2-6x86-q33q: Unintended leak of Proxy-Authorization header in requests | requirements.txt | OSV-Scanner |
| HIGH | requests 2.19.1 — GHSA-x84v-xcm2-53pg: Insufficiently Protected Credentials in Requests | requirements.txt | OSV-Scanner |
| HIGH | certifi 2026.7.22 — PYSEC-2026-4320: certifi bundles emSign root CAs with compromised intermediate CA keys | requirements.txt | OSV-Scanner |
| HIGH | certifi 2026.7.22 — GHSA-6q48-6c7w-9gw2: certifi bundles emSign root CAs with compromised intermediate CA keys | requirements.txt | OSV-Scanner |
| HIGH | idna 2.7.0 — PYSEC-2024-60: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | idna 2.7.0 — PYSEC-2026-215: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | idna 2.7.0 — GHSA-65pc-fj4g-8rjx: Internationalized Domain Names in Applications (IDNA): Specially crafted inputs to idna.en | requirements.txt | OSV-Scanner |
| HIGH | idna 2.7.0 — GHSA-jjg7-2v4v-x38h: Internationalized Domain Names in Applications (IDNA) vulnerable to denial of service from | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — PYSEC-2019-132: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — PYSEC-2019-133: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — PYSEC-2020-148: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — PYSEC-2023-192: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — PYSEC-2023-207: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — PYSEC-2023-212: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — PYSEC-2026-141: known vulnerability | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — PYSEC-2026-1994: urllib3 streaming API improperly handles highly compressed data | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — PYSEC-2026-1995: urllib3's Proxy-Authorization request header isn't stripped during cross-origin redirects | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — PYSEC-2026-1996: Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API) | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — PYSEC-2026-1999: urllib3 redirects are not disabled when retries are disabled on PoolManager instantiation | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — PYSEC-2026-4177: urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into me | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — GHSA-2xpw-w6gg-jr37: urllib3 streaming API improperly handles highly compressed data | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — GHSA-34jh-p97f-mpxf: urllib3's Proxy-Authorization request header isn't stripped during cross-origin redirects | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — GHSA-38jv-5279-wg99: Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API) | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — GHSA-g4mx-q9vg-27p4: urllib3's request body not stripped after redirect from 303 status changes request method | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — GHSA-gwvm-45gx-3cf8: Authorization Header forwarded on redirect | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — GHSA-mh33-7rrq-662w: Improper Certificate Validation in urllib3 | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — GHSA-pq67-6m6q-mj2v: urllib3 redirects are not disabled when retries are disabled on PoolManager instantiation | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — GHSA-qccp-gfcp-xxvc: urllib3: Sensitive headers forwarded across origins in proxied low-level redirects | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — GHSA-r64q-w8jr-g9qp: Improper Neutralization of CRLF Sequences in urllib3 library for Python | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — GHSA-v845-jxx5-vc9f: `Cookie` HTTP header isn't stripped on cross-origin redirects | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — GHSA-vxq7-64xx-v4gw: urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into me | requirements.txt | OSV-Scanner |
| HIGH | urllib3 1.23.0 — GHSA-wqvq-5m8c-6g24: CRLF injection in urllib3 | requirements.txt | OSV-Scanner |
| MEDIUM | High-complexity function scan_deps (cyclomatic 14) — hard to test, easy to break | CodeGraphContext | |
| MEDIUM | High-complexity function legacy_discount_engine (cyclomatic 13) — hard to test, easy to break | CodeGraphContext |
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.