Lucene search

K
exploitdbJonathan LetoEDB-ID:19786
HistoryMar 02, 2000 - 12:00 a.m.

DNSTools Software DNSTools 1.0.8/1.10 - Input Validation

2000-03-0200:00:00
Jonathan Leto
www.exploit-db.com
37

AI Score

7.4

Confidence

Low

source: https://www.securityfocus.com/bid/1028/info

A vulnerability exists in the 1.0.8 release of DNSTools (labeled on some areas of their site as 1.08), from DNSTools Software. By manipulating the contents of certain post variables, arbitrary code may be executed.

Note that version 1.10 is reportedly still vulnerable. See message from Wolfgang Wiese <[email protected]> in reference section.

The problem stems from the following code:

$host_name = $CGI->param("host_name"); 
$domain_name = $CGI->param("domain_name");

$error_description = ""; 
my $error_code = system("/usr/local/dnstools/delete_mx -d \"$domain_name\" -n \"$host_name\"");

No escaping or input validation is performed. This makes it easy for a would be attacker to execute arbitrary commands, as the user the webserver or cgi-bin is being run as.

The key to this exploit is causing the system() call to execute commands other than the intended one. The following would cause a directory listing: GET /~jed/cgi-bin/test.pl?domain_name=\"\;ls\" HTTP/1.0

AI Score

7.4

Confidence

Low

Related for EDB-ID:19786