contrib.nodejsscan.good_helmet_checks.helmet_header_x_powered_by

Author
99
Download Count*
License
Default X-Powered-By is removed or modified. More information: https://helmetjs.github.io/docs/hide-powered-by/
Run Locally
Run in CI
Defintion
rules:
- id: helmet_header_x_powered_by
message: "Default X-Powered-By is removed or modified. More information:
https://helmetjs.github.io/docs/hide-powered-by/"
languages:
- javascript
severity: WARNING
patterns:
- pattern-not: |
$HELMET(..., {hidePoweredBy: false}, ...)
- pattern-either:
- pattern: |
$APP.use(helmet())
- pattern: |
app.disable('x-powered-by')
- pattern: |
helmet.hidePoweredBy(...)
- pattern: |
hidePoweredBy(...)
- pattern: |
helmet({hidePoweredBy: ...})
metadata:
category: security
technology:
- node.js
- express
license: Commons Clause License Condition v1.0[LGPL-2.1-only]
Short Link: https://sg.run/W8PZ