[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71H2RQ5S9SE4W0ESK55T875":3,"skill-same:01M71H2RQ5S9SE4W0ESK55T875":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":24,"linkOnly":25,"markdownContent":26,"markdownBody":27,"frontMatter":28,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":14,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M71H2RQ5S9SE4W0ESK55T875","webapp-auth-oauth-flaws",null,"Webapp Auth Oauth Flaws.","DCx7C5\u002Fai-marketplace","DCx7C5","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42419559?v=4","01M71C01G2AZV3NTNGWAWSHJPP","DC","01M71C01GQW6G50S2BYMS7PP3E",0,"MIT","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-auth-oauth-flaws\u002FSKILL.md",[],[19,20,21,22,23],"webapp auth oauth flaws","webapp","auth","OAuth","cybersecurity","2026-11-10 10:12:30",false,"---\nname: webapp-auth-oauth-flaws\ndescription: \"Webapp Auth Oauth Flaws.\"\ndomain: cybersecurity\n---\n\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","|\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,"domain":23,"description":7},"main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Fwebapp-auth-oauth-flaws","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill webapp-auth-oauth-flaws",{"tool":42,"command":43},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill webapp-auth-oauth-flaws",{"tool":45,"command":46},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill webapp-auth-oauth-flaws","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-auth-oauth-flaws\u002FSKILL.md",true,[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"index.json","REFERENCE","参考文档",492,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-auth-oauth-flaws\u002Findex.json",[57,67,92,115,137,159],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":62,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":66},"01M73MDK3NT5XHNYTQ5P5172V9","devel-jb-algorithmic-art","- Embed algorithms inline in the HTML artifact (don't create separate .","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":24},"01M71HAPZ01KQ30RKTB0FFSQ05","services-wmi-persistence-detect","Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fpersistence\u002Fdetect\u002FSKILL.md",[],[74,75,76,77,78,79,80,23,81,82,83,84,85,86,87,88,89,90,91],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript","cm","de",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":24},"01M71HAK6JTTTS229T17WJMMCG","services-wmi-exec-exploit","Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fexec\u002Fexploit\u002FSKILL.md",[],[99,77,100,74,101,102,103,104,105,23,106,107,108,109,110,111,112,113,91,114],"exec","services wmi exec exploit","exploit","across","Bash","analysis","team","traffic","remote","crackmapexec","Impacket","lateral-movement","read","lateral movement","command","native",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":24},"01M71HAG6MHKNQV8KDZKMT4886","registry-artifact-extract","Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002FSKILL.md",[],[122,123,124,125,126,127,128,129,130,131,111,91,132,133,104,134,103,23,135,136],"extract","registry artifact extract","registry","artifact","digital-forensics","sonnet","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":24},"01M71HACR4A8XTWTTSXK4124AA","processes-token-impersonate-detect","Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Ftoken\u002Fimpersonate\u002Fdetect\u002FSKILL.md",[],[144,145,146,75,23,147,90,148,149,150,79,91,151,152,153,154,155,156,157,158],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","exploitation","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":24},"01M71HAABSB4Z6QFSXEG00R4RK","processes-thread-injection-detect","Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Fthread\u002Finjection\u002Fdetect\u002FSKILL.md",[],[166,144,167,75,168,169,80,91,151,170,171,172,104,79,23,147,173,90,174,149],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]