This project is a Red Team focused API security testing framework designed to identify common vulnerabilities in REST APIs.
- Broken Object Level Authorization (BOLA)
- Rate Limiting Bypass
- API Key Exposure
- A vulnerable API (Flask-based)
- Automated attack scripts
- Security testing using industry tools
- Build a vulnerable API for testing
- Automate API vulnerability scanning
- Simulate real attacker behavior
- Generate security findings
api-security-framework/
|__ main_scanner.py # Automation script of All three test
│
├── app/ # Vulnerable API
│ └── app.py
│
├── scanner/ # Attack modules
│ ├── bola_test.py
│ ├── rate_limit_test.py
│ └── api_key_test.py
│
├── Industrial Tools Used/
| ├── Postman.md
| └── Burp Suite.md
|
├── Scanning Report For API testing Framework.pdf # Scan results
│
├── requirements.txt
Clone the repo
git clone https://github.com/your-username/api-security-testing-framework.gitMove to the api-security Directory
cd api-security-testing-frameworkCreate a environment
python3 -m venv venvActivate the Environment
source venv/bin/activateInstall all the requirement for building the site
pip install -r requirements.txtpython app/app.pypython scripts/main_scanner.py- Broken Object Level Authorization (BOLA)
- Accessing unauthorized user data by modifying user IDs
- Rate Limiting Bypass
- Sending multiple requests without restriction
- API Key Exposure
- Sensitive API keys exposed in responses
- Postman
- OWASP ZAP
- Burp Suite
- Python Requests Library
flask
requests
pyjwtThis project is created for educational and ethical testing purposes only. Do not use this tool on systems without proper authorization.