This project demonstrates a Broken Object Level Authorization (BOLA/IDOR) vulnerability and how proper authorization checks prevent unauthorized access to API resources.
This lab includes:
- a vulnerable API
- a secure API
- IDOR/BOLA attack demonstration
- screenshots of the vulnerable and remediated behavior
vulnerable_api.py— vulnerable implementationsecure_api.py— remediated implementationattack_demo.md— attack summary and mitigation notesscreenshots/— screenshots of test results
Broken Object Level Authorization (BOLA / IDOR)
The vulnerable API allows access to any order by changing the object ID in the URL, without validating ownership.
python3 -m uvicorn vulnerable_api:app --reloadpython3 -m uvicorn secure_api:app --reload --port 8001
