MyBB forumdisplay.php 'sortby' Parameter Arbitrary PHP Code Execution

high Nessus Plugin ID 29996

Synopsis

The remote web server hosts a PHP script that allows arbitrary command execution.

Description

The version of MyBB installed on the remote host is affected by an arbitrary PHP code execution vulnerability due to improper sanitization of user-supplied input to the 'sortby' parameter of the forumdisplay.php script before using it in an eval() statement to evaluate PHP code. A remote, unauthenticated attacker can exploit this issue to execute arbitrary PHP code on the remote host, subject to the privileges of the web server user id.

There is also a similar issue affecting the search.php script when the 'action' parameter is set to 'results'. However, Nessus did not test for this issue.

Solution

Upgrade to MyBB 1.2.11 or later.

See Also

http://www.waraxe.us/advisory-61.html

https://www.securityfocus.com/archive/1/486434/30/0/threaded

https://community.mybb.com/showthread.php?tid=27227

Plugin Details

Severity: High

ID: 29996

File Name: mybb_sortby_cmd_exec.nasl

Version: 1.22

Type: remote

Family: CGI abuses

Published: 1/17/2008

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.0

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2008-0382

Vulnerability Information

CPE: cpe:/a:mybb:mybb

Required KB Items: www/PHP, installed_sw/MyBB

Exploit Available: true

Exploit Ease: Exploits are available

Exploited by Nessus: true

Patch Publication Date: 1/8/2008

Vulnerability Publication Date: 1/8/2008

Exploitable With

CANVAS (CANVAS)

Reference Information

CVE: CVE-2008-0382

BID: 27322

CWE: 94