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: 4d3453291d2773297e6e419cb25c685c2be38a02e88dd72602f40aafb7c25258