2.1.2 Ensure HTTP WebDAV module is not installed

Information

The http_dav_module enables HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV) as defined by RFC 4918. This enables file-based operations on your web server, such as the ability to create, delete, change and move files on your server. Most modern architectures have replaced this functionality with cloud-based object storage, in which case the module should not be installed.

Rationale:

WebDAV functionality opens up an unnecessary path for exploiting your web server. Through misconfigurations of WebDAV operations, an attacker may be able to access and manipulate files on the server.

Solution

To remove the http_dav_module, recompile nginx from source without the --with-http_dav_module flag.

See Also

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