10.13 Do not allow symbolic linking

Information

Symbolic links permit one application to include the libraries from another. This allows for re-use of code but also allows for potential security issues when applications include libraries from other applications to which they should not have access.

Rationale:

Allowing symbolic links makes Tomcat susceptible to directory traversal vulnerability. Also, there is a potential that an application could link to another application to which it should not be linking. On case-insensitive operating systems there is also the threat of source code disclosure.

Solution

In all context.xml, set the allowLinking attribute to false:

<Context
...
<Resources ... allowLinking='false' />
...
</Context>

Default Value:

By default allowLinking has a value of false.

References:

https://tomcat.apache.org/tomcat-8.0-doc/config/resources.html

https://tomcat.apache.org/tomcat-8.0-doc/config/context.html

See Also

https://workbench.cisecurity.org/files/2506

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, CSCv7|5.1

Plugin: Unix

Control ID: 5b6a16dc9414aac04e61d895a3778fa5f4e1f6623b3d523e3de76931ad8b2436