Security
security/hardcoded-secret high API keys, tokens, passwords, .env credential lines, connection strings.
const STRIPE = "sk_live_…" security/eval-usage high Calls to eval(...) — executes arbitrary input as code.
eval(req.body.expr) security/new-function high new Function(...) — same hazard as eval, harder to spot.
new Function('x', body) security/shell-injection high exec/spawn/execSync of tainted input from req.{query,body,params,headers}.
exec(`tar -xf ${req.query.f}`) security/sql-injection high Template or concat SQL with tainted input. Suggests parameterised queries.
`SELECT * WHERE id=${id}` security/path-traversal high fs.* sinks reading tainted paths — flags at the actual sink, not path.join.
fs.readFile(req.query.p) security/cors-misconfig medium Wildcard CORS with credentials, origin: "*" patterns.
cors({ origin: '*', credentials: true }) security/weak-crypto medium md5, sha1, Math.random() for tokens, deprecated crypto APIs.
crypto.createHash('md5')