5.12 Ensure Access to .svn Files Is Restricted

Information

Restrict access to any files beginning withsvn using the FilesMatch directive.

More and more websites track their changes in a SVN repository we see a lot of attackers search for .svn directories. Access to .svn directories should be restricted. These files should be placed in the document root, but, in the event they are, the FilesMatch directive can be used to prevent them from being viewed by web clients.

Solution

Perform the following to implement the recommended state:

Add or modify the following lines in the Apache configuration file at the server configuration level.

<DirectoryMatch "/.snv">
Require all denied
</DirectoryMatch>

Impact:

svn files are not accessible.

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT, SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|CM-10, 800-53|CM-11, 800-53|SC-18, CSCv7|18.2

Plugin: Unix

Control ID: c6816b7965b08a784c8bd7e29e7dd7f3028ac4f4270d888b744f4bc127fcf920