SV-258974r960891_rule
V-258974
SRG-APP-000095-AS-000056
VCST-80-000014
CAT II
10
Navigate to and open:
/usr/lib/vmware-sso/vmware-sts/conf/server.xml
Inside the <Host> node, find the "AccessLogValve" <Valve> node and replace the "pattern" element as follows:
pattern="%t %I [Request] "%{User-Agent}i" %{X-Forwarded-For}i/%h:%{remote}p %l %u to local %{local}p - "%r" %H %m %U%q [Response] %s - %b bytes [Perf] process %Dms / commit %Fms / conn [%X]"
Restart the service with the following command:
# vmon-cli --restart sts
At the command prompt, run the following command:
# xmllint --xpath '/Server/Service/Engine/Host/Valve[@className="org.apache.catalina.valves.AccessLogValve"]/@pattern' /usr/lib/vmware-sso/vmware-sts/conf/server.xml
Example result:
pattern="%t %I [Request] "%{User-Agent}i" %{X-Forwarded-For}i/%h:%{remote}p %l %u to local %{local}p - "%r" %H %m %U%q [Response] %s - %b bytes [Perf] process %Dms / commit %Fms / conn [%X]"
Required elements:
%h %{X-Forwarded-For}i %l %t %u "%r" %s %b
If the log pattern does not contain the required elements in any order, this is a finding.
V-258974
False
VCST-80-000014
At the command prompt, run the following command:
# xmllint --xpath '/Server/Service/Engine/Host/Valve[@className="org.apache.catalina.valves.AccessLogValve"]/@pattern' /usr/lib/vmware-sso/vmware-sts/conf/server.xml
Example result:
pattern="%t %I [Request] "%{User-Agent}i" %{X-Forwarded-For}i/%h:%{remote}p %l %u to local %{local}p - "%r" %H %m %U%q [Response] %s - %b bytes [Perf] process %Dms / commit %Fms / conn [%X]"
Required elements:
%h %{X-Forwarded-For}i %l %t %u "%r" %s %b
If the log pattern does not contain the required elements in any order, this is a finding.
M
5567