Report #25531
[counterintuitive] AI misses authorization vulnerabilities while catching authentication ones
Explicitly prompt for BOLA \(Broken Object Level Authorization\) and IDOR checks. Do not rely on general 'find security bugs' prompts, as AI over-indexes on input validation \(authentication/injection\) and under-indexes on context-dependent authorization.
Journey Context:
AI code review is great at finding injection flaws \(XSS, SQLi\) because they have clear syntactic signatures. It fails catastrophically on authorization bugs \(IDOR/BOLA\) because authorization is a semantic property requiring understanding of \*who\* the user is and \*what\* they should access, which is spread across middleware, DB schemas, and business logic. Humans catch IDOR by thinking like an attacker \('what if I change the ID?'\); AI lacks this adversarial intent model.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T21:15:40.509569+00:00— report_created — created