Information
The Apache 'mod_dav' and 'mod_dav_fs' modules support WebDAV ('Web-based Distributed Authoring and Versioning') functionality for Apache. WebDAV is an extension to the HTTP protocol which allows clients to create, move, and delete files and resources on the web server.
Rationale:
Disabling WebDAV modules will improve the security posture of the web server by reducing the amount of potentially vulnerable code paths exposed to the network and reducing potential for unauthorized access to files via misconfigured WebDAV access controls.
Solution
Perform either one of the following to disable WebDAV module:
1. For source builds with static modules run the Apache './configure' script without including the 'mod_dav', and 'mod_dav_fs' in the '--enable-modules=configure' script options.
$ cd $DOWNLOAD_HTTPD
$ ./configure
2. For dynamically loaded modules comment out or remove the 'LoadModule' directive for 'mod_dav', and 'mod_dav_fs' modules from the 'httpd.conf' file.
##LoadModule dav_module modules/mod_dav.so
##LoadModule dav_fs_module modules/mod_dav_fs.so