STIGQter STIGQter: STIG Summary: Apache Tomcat Application Sever 9 Security Technical Implementation Guide Version: 2 Release: 2 Benchmark Date: 22 Jan 2021:

ENFORCE_ENCODING_IN_GET_WRITER must be set to true.

DISA Rule

SV-223005r615938_rule

Vulnerability Number

V-223005

Group Title

SRG-APP-000516-AS-000237

Rule Version

TCAT-AS-001690

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

From the Tomcat server as a privileged user:

Edit the /etc/systemd/system/tomcat.service file, and either add or edit the org.apache.catalina.connector.response.ENFORCE_ENCODING_IN_GET_WRITER setting.

Set the org.apache.catalina.connector.response.ENFORCE_ENCODING_IN_GET_WRITER=true

EXAMPLE:
Environment='CATALINA_OPTS -Dorg.apache.catalina.connector.response.ENFORCE_ENCODING_IN_GET_WRITER=true'

Restart the Tomcat server:
sudo systemctl restart tomcat
sudo systemctl daemon-reload

Check Contents

From the Tomcat server as a privileged user, run the following command:

sudo grep -i enforce_encoding /etc/systemd/system/tomcat.service

If there are no results, or if the org.apache.catalina.connector.response.ENFORCE_ENCODING_IN_GET_WRITER is not ="true", this is a finding.

Vulnerability Number

V-223005

Documentable

False

Rule Version

TCAT-AS-001690

Severity Override Guidance

From the Tomcat server as a privileged user, run the following command:

sudo grep -i enforce_encoding /etc/systemd/system/tomcat.service

If there are no results, or if the org.apache.catalina.connector.response.ENFORCE_ENCODING_IN_GET_WRITER is not ="true", this is a finding.

Check Content Reference

M

Target Key

4094

Comments