7.5 High
CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
6.1 Medium
AI Score
Confidence
High
0.362 Low
EPSS
Percentile
97.2%
FreePBX is prone to multiple cross-site scripting (XSS) and
remote command execution (RCE) vulnerabilities.
# SPDX-FileCopyrightText: 2012 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
CPE = "cpe:/a:freepbx:freepbx";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.902823");
script_version("2024-06-04T05:05:28+0000");
script_tag(name:"last_modification", value:"2024-06-04 05:05:28 +0000 (Tue, 04 Jun 2024)");
script_tag(name:"creation_date", value:"2012-03-27 16:35:51 +0530 (Tue, 27 Mar 2012)");
script_tag(name:"cvss_base", value:"7.5");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_cve_id("CVE-2012-4869", "CVE-2012-4870");
script_tag(name:"qod_type", value:"remote_analysis");
script_tag(name:"solution_type", value:"VendorFix");
script_name("FreePBX 2.9.0 - 2.10.0 Multiple Vulnerabilities - Active Check");
script_category(ACT_ATTACK);
script_copyright("Copyright (C) 2012 Greenbone AG");
script_family("Web application abuses");
script_dependencies("gb_freepbx_http_detect.nasl");
script_mandatory_keys("freepbx/http/detected");
script_require_ports("Services/www", 443);
script_tag(name:"summary", value:"FreePBX is prone to multiple cross-site scripting (XSS) and
remote command execution (RCE) vulnerabilities.");
script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");
script_tag(name:"insight", value:"Multiple flaws are caused by an,
- Improper validation of user-supplied input by multiple scripts, which allows attacker to
execute arbitrary HTML and script code on the user's browser session in the security context of
an affected site.
- Input passed to the 'callmenum' parameter in recordings/misc/callme_page.php (when 'action' is
set to 'c') is not properly verified before being used. This can be exploited to inject and
execute arbitrary shell commands.");
script_tag(name:"impact", value:"Successful exploitation may allow remote attackers to steal
cookie-based authentication credentials or execute arbitrary commands within the context of the
affected application.");
script_tag(name:"affected", value:"FreePBX versions 2.9.0 and 2.10.0.");
script_tag(name:"solution", value:"Apply the patch from the referenced advisory.");
script_xref(name:"URL", value:"http://secunia.com/advisories/48475");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/52630");
script_xref(name:"URL", value:"http://secunia.com/advisories/48463");
script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/74173");
script_xref(name:"URL", value:"http://www.freepbx.org/trac/ticket/5711");
script_xref(name:"URL", value:"http://www.freepbx.org/trac/ticket/5713");
script_xref(name:"URL", value:"http://www.exploit-db.com/exploits/18649");
script_xref(name:"URL", value:"http://packetstormsecurity.org/files/111130/freepbx2100-exec.txt");
exit(0);
}
include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");
if (!port = get_app_port(cpe: CPE, service: "www"))
exit(0);
if (!dir = get_app_location(cpe: CPE, port: port))
exit(0);
if (dir == "/")
dir = "";
urls = make_list(dir + "/recordings/index.php?login='><script>alert(document.cookie)</script>",
dir + '/panel/index_amp.php?context="<script>alert(document.cookie)</script>');
foreach url (urls) {
if (http_vuln_check(port: port, url: url, check_header: TRUE,
pattern:"<script>alert\(document\.cookie\)</script>")) {
report = http_report_vuln_url(port: port, url: url);
security_message(port: port, data: report);
exit(0);
}
}
exit(99);