davscan: Fingerprints servers, finds exploits, scans WebDAV
DAVScan is a quick and lightweight webdav scanner designed to discover hidden files and folders on DAV enabled webservers. The scanner works by taking advantage of overly privileged/misconfigured WebDAV servers or servers vulnerable to various disclosure or authentication bypass vulnerabilities. The scanner attempts to fingerprint the target server and then spider the server based on the results of a root PROPFIND request.
What works:
Server header fingerprinting – If the web server returns a server header, davscan can search for public exploits based on the response.
Basic DAV scanning with PROPFIND – Quick scan to find anything that might be visible from DAV.
IIS/6.0 Unicode Auth Bypass – Works using GET for files and PROPFIND for folders. Not fully tested so double check the work.
Exclusion of DoS exploit results – You can exclude denial of service exploits from the searchsploit results.
Exclusion of MSF modules from exploit results – Custom searchsploit is included in the repo for this. Either overwrite existing searchsploit or backup and replace. This feature may or may not end up in the real searchsploit script.
Proxy Capable – You can specify an http(s) proxy to use. This will just pass a proxy the request’s session. I added this in because of the need for NTLM auth that requests just can’t do at this point in time.
Authentication – Just basic auth works right now. If you need anything like tokenization or something weird, let me know and I’ll work on it. Not a high priority to add further functionality to this though. Most one-off auth needs can be handled using burp and the proxy flag.
What doesn’t work:
X header fingerprinting – It’s in there, but isn’t working right. I might have this working right now, but not fully tested yet.
My ability to properly document things – When I switched out the native xml for beautiful soup that came with some requirements I didn’t know I was supposed to tell you about. You’ll want to install that as well as the C library libxml because it makes things faster. It also doesn’t shit the bed if you feed it half a gig of WebDAV XML. Go ahead, ask me how I found that one out.
Download
git clone https://github.com/Graph-X/davscan.git
Usage
Source: https://github.com/Graph-X/