13 - Disable stacktrace in response body

Information

Stacktraces in response bodies are useful for quick debugging in development and test environments. However in production, showing stracktraces can leak sensitive information to the client.

Solution

To disable this particular functionality, the display-source-fragment directive must be set to false.

<subsystem xmlns="urn:jboss:domain:web:1.1" ... >
....
<configuration>
<jsp-configuration display-source-fragment="false"/>
</configuration>
....
</subsystem>

See Also

https://docs.jboss.org/author/display/AS72/Hardening+Guidelines

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-11a.

Plugin: Unix

Control ID: b44aec220d2ebe06575a946cdd21d7259a998c9994d8edcc3be01207565dfea6