WebClient abuse (WebDAV)
Last updated
Was this helpful?
Last updated
Was this helpful?
Web Distributed Authoring and Versioning (WebDAV) is an extension to Hypertext Transfer Protocol (HTTP) that defines how basic file functions such as copy, move, delete, and create are performed by using HTTP ()
The WebClient service needs to be enabled for WebDAV-based programs and features to work. As it turns out, the WebClient service can be indirectly abused by attackers to coerce authentications. This technique needs to be combined with other coercion techniques (e.g. , ) to act as a booster for these techniques. It allows attackers to elicit authentications made over HTTP instead of SMB, hence heightening capabilities.
Attackers can remotely enumerate systems on which the WebClient is running, which is not uncommon in organizations that use OneDrive or SharePoint or when mounting drives with a WebDAV connection string.
From UNIX-like systems, this can be achieved with (Python) or using (Python).
Regular coercion techniques rely on the attacker forcing a remote system to authenticate to another one. The "other" system is usually an IP address, a domain or NetBIOS name. With WebClient abuse, the other system needs to be supplied in a WebDAV Connection String format.
The WebDAV Connection String format is: \\SERVER@PORT\PATH\TO\DIR
.
On a side note, making a remote system start the WebClient service can be done in many ways
By mapping a remote WebDAV server. This can be done by having Responder's server up and by running the net use
cmdlet.
Below are a few examples of WebClient abuse with and .
With a file uploaded to widely used share within the organisation. Each time a user browses the folder, the WebClient service will start transparently.