authorization-bypass

Tests web applications for IDOR, privilege escalation, and business logic bypass vulnerabilities.

632|86|Updated Apr 29, 2023
One-click install
npx skills add https://github.com/yaklang/yaklang --skill authorization-bypass-yaklang
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: authorization-bypass
Source: https://github.com/yaklang/yaklang/tree/main/common/ai/aid/aireact/skills/authorization-bypass
Command: npx skills add https://github.com/yaklang/yaklang --skill authorization-bypass-yaklang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Web applications often fail to enforce proper access controls, letting attackers read other users' data (IDOR), escalate to admin functions, or skip payment steps. This Skill gives an AI agent a systematic, tool-driven methodology to detect these authorization flaws before real attackers do. ## Core Features & Use Cases - Horizontal Privilege Escalation (IDOR) Testing: Replaces resource IDs in URL paths, query strings, and request bodies, handles encoded IDs (Base64, UUID, hash), and supports bulk ID enumeration to measure data exposure scope. - Vertical Privilege Escalation Testing: Probes admin endpoints with low-privilege credentials, tampers with role parameters (role, is_admin, group), manipulates hidden form fields, and forges headers like X-Original-URL and X-Forwarded-For. - Business Logic Bypass Testing: Detects workflow skipping, price/quantity tampering, coupon reuse, race conditions, and API version downgrade bypasses. - Use Case: Given a target web app and two test accounts, the agent crawls endpoints, replays requests across sessions with do_http_request and send_http_request_packet, confirms each vulnerable instance, and immediately reports every finding via the cybersecurity-risk tool. ## Quick Start Test this web application for horizontal and vertical authorization bypass vulnerabilities using two provided test accounts and report every confirmed finding.

Frequently Asked Questions about authorization-bypass

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test a web API for IDOR vulnerabilities?▼

IDOR testing uses two accounts: capture a baseline request with account A's credentials, then replay the same request with account B's session token. If account B receives account A's data, the IDOR is confirmed and should be reported immediately.

How to test for vertical privilege escalation in web applications?▼

Collect admin endpoints from crawling or JS analysis, then request each one with a low-privilege user's cookie or token. Also try tampering role parameters like role=admin or is_admin=true, and forging headers such as X-Original-URL.

What HTTP headers can bypass access controls?▼

Common bypass headers include X-Original-URL, X-Rewrite-URL, X-Forwarded-For, X-Client-IP, and X-Real-IP set to 127.0.0.1. First verify the server honors the header by requesting a nonexistent path and checking for a 404 response.

Can encoded or UUID resource IDs still be vulnerable to IDOR?▼

Yes. Base64 IDs can be decoded, incremented, and re-encoded; timestamp IDs can be enumerated; hash IDs may derive from predictable inputs. UUIDs are not guessable directly but often leak through other API endpoints.

What are the limitations of automated authorization testing?▼

Testing requires at least two valid accounts with known credentials and resource IDs, and blind endpoint fuzzing is ineffective. Rate limits, WAF rules, and expiring tokens can interrupt bulk enumeration, so requests must be paced and sessions refreshed.