WebDAV
Pentesting WebDAV - TCP Ports 80,443
Theory
WebDAV is a set of extensions to the Hypertext Transfer Protocol, which allows user agents to collaboratively author contents directly in an HTTP web server. Usually, to connect a WebDav server you will need valid credentials.
Practice
On Windows, users can also access and mount WebDAV shares via UNC paths, such as \\10.37.129.2@80\example_webdav_folder
.
Brute-force (HTTP Basic Auth)
WebDAV usually require valid credentials using HTTP Basic Auth. You may bruteforce it using hydra
Default credentials are wampp:xampp
Upload a shell
Davtest will try to upload several files with different extensions and check if the extension is executed:
If we can upload the file e.g. PHP file, upload the script for reverse shell.
Then we can navigate to http://example.com/davdir/shell.php to execute it.
Resources
Last updated