Rule Definition
Ensure the X-Powered-By is disabled.
Remediation
Ensure you are manually disablin the X-Powered-By in your express instance or use third-party helmet package
Violation Code Sample
var express = require('express');
var app = express();
app.listen(3000);
Fixed Code Sample
var express = require('express');
var app = express();
app.disable('x-powered-by');
// or with helmet
var hidePoweredBy = require('hide-powered-by')
app.use(hidePoweredBy())
app.listen(3000);
Reference
https://expressjs.com/en/advanced/best-practice-security.html
https://www.owasp.org/index.php/Content_Security_Policy
Related Technologies
Technical Criterion
Secure Coding - Input Validation
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.