4.4.15 Ensure Web Server Document Root does not contain information that should be private

Information

WAR files contain servable content. The Web container will serve any files found in the root(Web Server Document Root) of the WAR file. This is fine as long as you place only servable content in the root. Thus, you should never place content that shouldn't be shown to users in the root of the WAR. For example, don't put property files, class files, or other important information there. If you must place such information in the WAR file, place it within the WEB-INF directory, as permitted by the servlet specification. Information there is never served by the Web.

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

Remove all content that shouldn't be shown to users in the root of the WAR For example, relocate property files, class files, or other important information within the WEB-INF directory, as permitted by the servlet specification.

See Also

https://workbench.cisecurity.org/benchmarks/7724

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-12

Plugin: Unix

Control ID: 998d2b9eb5ca2e7f6812b957de972b1a7409b840c932b29877a5bce30fa49354