<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
---
name: testing-oauth-implementation-flaws
description: >-
  Test OAuth 2.0 and OpenID Connect implementations for authorization code interception, redirect URI manipulation, scope escalation, and token leakage vulnerabilities.
domain: cybersecurity
subdomain: bug-bounty
tags:
  - oauth
  - oidc
  - redirect-uri
  - token-leakage
version: "1.0"
author: defconxt
license: AGPL-3.0
metadata:
  mitre-attack: ["T1078"]
  frameworks: ["MITRE ATT&CK", "OWASP"]
  tools: ["burpsuite", "oauthtest", "curl"]
---

# Testing Oauth Implementation Flaws

## Overview

Test OAuth 2.0 and OpenID Connect implementations for authorization code interception, redirect URI manipulation, scope escalation, and token leakage vulnerabilities.

## Prerequisites

| Tool / Requirement | Details |
|---|---|
| `burpsuite` | Security tooling |
| `oauthtest` | Security tooling |
| `curl` | Security tooling |
| Burp Suite, OAuth testing tools, target OAuth-enabled application | Environment requirement |

## Quick Reference

```bash
# Quick start commands
node scripts/agent.js --help
node scripts/agent.js map --url https://target.com --flow authorization-code
```

## Workflow

### Step 1: Map OAuth Flow

```bash
node scripts/agent.js map --url https://target.com --flow authorization-code
```

### Step 2: Test Redirect URI

```bash
node scripts/agent.js test --url https://target.com --vector open-redirect
```

### Step 3: Test Scope Escalation

```bash
node scripts/agent.js test --url https://target.com --vector scope-escalation
```


## Verification

- **Verify flow mapping**: `node scripts/agent.js map --url https://target.com --flow authorization-code`
- **Confirm redirect bypass**: `node scripts/agent.js test --url https://target.com --vector open-redirect`

## References

- MITRE ATT&CK: T1078
- Frameworks: MITRE ATT&CK, OWASP
- Tools: burpsuite, oauthtest, curl
