WebDAV
Enumeration
Send a PROPFIND request to the server. We expect the server to answer in one of the following ways:
HTTP 207: Multi-Status
: WebDAV is active and the requested path is validHTTP 403: Forbidden
: Authentication required to perform the operationHTTP 405: Method Not Allowed
: WebDAV is active and the requested folder does not exist. This code is usually returned by Linux machines running Apache.HTTP 501: Not Supported
: WebDAV is not active
File upload
Cadaver
Access the host.
Cadaver will automatically prompt for credentials when performing restricted operations.
Manual
File upload functionality may require valid credentials.
RCE
Bypass extension filter by uploading a shell with a modified extension (such as .txt) and then use the MOVE command to rename it once uploaded to the server.
There is a vulnerability on IIS 5 and 6 where if a file is renamed to something like .asp;txt
WebDAV will execute its content despite showing an error message.
Last updated