CVE-2022-24734
Remote code execution in mybb
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
5Exploited in Wild
-Decision
Descriptions
MyBB is a free and open source forum software. In affected versions the Admin CP's Settings management module does not validate setting types correctly on insertion and update, making it possible to add settings of supported type `php` with PHP code, executed on on _Change Settings_ pages. This results in a Remote Code Execution (RCE) vulnerability. The vulnerable module requires Admin CP access with the `Can manage settings?` permission. MyBB's Settings module, which allows administrators to add, edit, and delete non-default settings, stores setting data in an options code string ($options_code; mybb_settings.optionscode database column) that identifies the setting type and its options, separated by a new line character (
). In MyBB 1.2.0, support for setting type php was added, for which the remaining part of the options code is PHP code executed on Change Settings pages (reserved for plugins and internal use). MyBB 1.8.30 resolves this issue. There are no known workarounds.
MyBB es un software de foros gratuito y de código abierto. En las versiones afectadas, el módulo de gestión de configuraciones del CP de administración no valida correctamente los tipos de configuraciones en la inserción y actualización, lo que hace posible añadir configuraciones de tipo soportado `php` con código PHP, ejecutado en las páginas de _Cambio de Configuraciones_. Esto resulta en una vulnerabilidad de Ejecución Remota de Código (RCE). El módulo vulnerable requiere el acceso al CP de administrador con el permiso `Can manage settings?`. El módulo de configuración de MyBB, que permite a los administradores añadir, editar y eliminar configuraciones no predeterminadas, almacena los datos de configuración en una cadena de código de opciones ($options_code; columna de la base de datos mybb_settings.optionscode) que identifica el tipo de configuración y sus opciones, separadas por un carácter de nueva línea (
). En MyBB 1.2.0, se añadió soporte para el tipo de configuración php, para el cual la parte restante del código de opciones es código PHP ejecutado en las páginas de cambio de configuración (reservado para plugins y uso interno). MyBB 1.8.30 resuelve este problema. No se presentan medidas de mitigación conocidas
This vulnerability allows remote attackers to execute arbitrary code on affected installations of MyBB. Authentication is required to exploit this vulnerability.
The specific flaw exists within the Control Panel. The issue results from the lack of proper validation of a user-supplied string before using it to construct server-side code. An attacker can leverage this vulnerability to execute code in the context of the www-data user.
MyBB version 1.8.29 suffers from a remote code execution vulnerability.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2022-02-10 CVE Reserved
- 2022-03-09 CVE Published
- 2022-05-08 First Exploit
- 2024-08-03 CVE Updated
- 2024-10-13 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-94: Improper Control of Generation of Code ('Code Injection')
CAPEC
References (10)
URL | Tag | Source |
---|---|---|
- |
URL | Date | SRC |
---|---|---|
https://github.com/mybb/mybb/commit/92012b9831b330714b9f9b4646a98784113489c1 | 2022-09-30 | |
https://github.com/mybb/mybb/security/advisories/GHSA-876v-gwgh-w57f | 2022-09-30 |
URL | Date | SRC |
---|---|---|
https://mybb.com/versions/1.8.30 | 2022-09-30 | |
https://www.zerodayinitiative.com/advisories/ZDI-22-503 | 2022-09-30 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Mybb Search vendor "Mybb" | Mybb Search vendor "Mybb" for product "Mybb" | >= 1.2.0 < 1.8.30 Search vendor "Mybb" for product "Mybb" and version " >= 1.2.0 < 1.8.30" | - |
Affected
|