817 structured cybersecurity skills for AI agents · Mapped to 6 frameworks: MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND, NIST AI RMF & MITRE F3 (Fight Fraud) · agentskills.io standard · Works with Claude Code, GitHub Copilot, Codex CLI, Cursor, Gemini CLI & 20+ platforms · 29 security domains · Apache 2.0
1.9 KB Raw Blame API Reference: Testing OAuth2 Implementation Flaws
OAuth 2.0 Grant Types
| Grant Type |
Use Case |
Risk Level |
| Authorization Code |
Server-side apps |
Low (with PKCE) |
| Authorization Code + PKCE |
Mobile/SPA apps |
Low |
| Implicit |
Legacy SPAs |
High (deprecated) |
| Client Credentials |
Machine-to-machine |
Medium |
| Resource Owner Password |
Legacy migration |
High |
OAuth Attack Surface
| Attack |
Severity |
Vector |
| Redirect URI bypass |
Critical |
Subdomain, path traversal, encoding |
| Missing state parameter |
High |
CSRF-based account linking |
| PKCE bypass |
High |
Authorization code interception |
| Scope escalation |
High |
Request unauthorized permissions |
| Code reuse |
High |
Replay authorization code |
| Token in URL fragment |
Medium |
Referer header leakage |
| Implicit flow |
Medium |
Token exposure in browser history |
Redirect URI Bypass Techniques
| Technique |
Example |
| Subdomain append |
redirect.com.evil.com |
| Path traversal |
redirect.com/../evil.com |
| At-sign confusion |
[email protected] |
| Fragment bypass |
redirect.com%[email protected] |
| Query parameter |
redirect.com?next=evil.com |
| HTTP downgrade |
http:// instead of https:// |
Python Libraries
| Library |
Version |
Purpose |
requests |
>=2.28 |
HTTP OAuth flow testing |
secrets |
stdlib |
State/nonce generation |
urllib.parse |
stdlib |
URL parameter encoding |
hashlib |
stdlib |
PKCE code challenge |
References