xpoweredBy attribute must be disabled.
An XCCDF Rule
Description
<VulnDiscussion>Individual connectors can be configured to display the Tomcat server info to clients. This information can be used to identify Tomcat versions which can be useful to attackers for identifying vulnerable versions of Tomcat. Individual connectors must be checked for the xpoweredBy attribute to ensure they do not pass Tomcat server info to clients.</VulnDiscussion><FalsePositives></FalsePositives><FalseNegatives></FalseNegatives><Documentable>false</Documentable><Mitigations></Mitigations><SeverityOverrideGuidance></SeverityOverrideGuidance><PotentialImpacts></PotentialImpacts><ThirdPartyTools></ThirdPartyTools><MitigationControl></MitigationControl><Responsibility></Responsibility><IAControls></IAControls>
- ID
- SV-222957r960963_rule
- Severity
- Low
- References
- Updated
Remediation - Manual Procedure
From the Tomcat server as a privileged user, edit the $CATALINA_BASE/conf/server.xml file.
Examine each <Connector> </Connector> element, if the element contains xpoweredBy="true", modify the statement to read ", xpoweredBy="false".
sudo systemctl restart tomcat
sudo systemctl daemon-reload