STIGUI
V-222957CAT III — Low severitySV-222957r1264547_rule

xpoweredBy attribute must be disabled.

Rule version TCAT-AS-000550 · STIG v3 · 2026-08-26

Discussion

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.

Check

From the Tomcat server run the following OS command:

sudo cat $CATALINA_BASE/conf/server.xml |grep -i -C4 xpoweredby.

If any connector elements contain xpoweredBy="true", this is a finding.

Fix

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

Identifiers

Group ID
V-222957
Group title
SRG-APP-000141-AS-000095
Rule ID
SV-222957r1264547_rule
Check ID
C-24629r426315_chk
Fix ID
F-24618r426316_fix