Skip to content

AccessFuzz is a Python tool that automates testing for horizontal and vertical privilege escalation issues across API endpoints.

License

Notifications You must be signed in to change notification settings

aswinmguptha/AccessFuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚨 AccessFuzz - Automated Authorization Tester

AccessFuzz is a lightweight internal tool designed to help security teams identify Broken Access Control issues like Horizontal and Vertical Privilege Escalation in web APIs.


✨ Features

  • ✅ Role-based request replay for API endpoints
  • ✅ Supports GET, POST, PUT, DELETE methods
  • ✅ Detects unauthorized access based on status codes
  • ✅ JSON report output
  • ✅ Minimal, extensible codebase

🧪 What It Detects

Type Example
🔼 Vertical Privilege Escalation A user accessing an /admin endpoint
↔️ Horizontal Privilege Escalation A user accessing another user's data

📦 Requirements

  • Python 3.7+
  • requests library

Install dependencies:

pip install -r requirements.txt

🚀 Usage

Configure Endpoints and Tokens

Configure the input in their respective files:

endpoints.json

[
  {
    "method": "GET",
    "url": "http://localhost:5000/api/admin/dashboard"
  },
  {
    "method": "GET",
    "url": "http://localhost:5000/api/user/profile/1"
  },
  {
    "method": "GET",
    "url": "http://localhost:5000/api/user/profile/2"
  }
]

tokens.json

{
  "admin": {
    "Authorization": "Bearer ADMIN_TOKEN"
  },
  "user": {
    "Authorization": "Bearer USER_TOKEN"
  },
  "guest": {
    "Authorization": "Bearer GUEST_TOKEN"
  }
}

Run the Tool

python3 accessfuzz.py --endpoints endpoints.json --tokens tokens.json --output accessfuzz_report.json 

View the Results

  • Console output shows status codes for each role
  • JSON report saved to: accessfuzz_report.json

About

AccessFuzz is a Python tool that automates testing for horizontal and vertical privilege escalation issues across API endpoints.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages