express-attack-probe
Installation
SKILL.md
Express Attack Probe
Authorized probe of an Express.js app the user owns. Follow shared probing conventions — discover base URL via env / package.json scripts.dev / Dockerfile. Never hardcode the port.
Express-specific attack surface
- Middleware order is silently security-critical: routes registered before auth bypass it entirely.
req.bodyisObject-prototype-mergeable in apps usinglodash.merge/Object.assign(target, req.body)— prototype pollution → privilege escalation when the merged object is later checked forisAdmin.qs(default Express query parser) parses?a[b][c]=1into nested objects up to depth 5; can cause CPU bombs and bypass naive type checks.trust proxyset totruelets attackers spoofreq.ip/X-Forwarded-For, defeating per-IP rate-limit / geo-block.res.sendFile/res.downloadwithout containment leaks files outside the intended root.
Procedure
- Authorization preflight + base URL discovery.
- Identify routes (parse
app.use/app.get/router.*in source if available, else crawl). - Probe per the rule table; stop at request budget.