cloudflare-storage
Warn
Audited by Socket on Nov 4, 2026
1 alert found:
AnomalyAnomalysamples/d1-http-proxy-api.md
LOWAnomalyLOW
samples/d1-http-proxy-api.md
This code is a D1 SQL proxy protected by a bearer API key, not evident malware. Authenticated callers can execute arbitrary SQL through /api/all, /api/exec, and /api/batch, with /api/exec supporting multiple statements; compromise or exposure of API_KEY can therefore enable broad database access. It also returns error details to callers. Security risk is significant if the endpoint or key is exposed, but the behavior is explicit and consistent with the stated purpose.
Confidence: 98%Severity: 68%
Audit Metadata