*Unauthenticated Remote Code Execution in vBulletin 6.0.1 via replaceAdTemplate Method*
A protected method in vBulletin 6.0.1, replaceAdTemplate, was exposed through the front-end API, allowing unauthenticated attackers to inject PHP code via a template parameter. This led to remote code execution, enabling arbitrary command execution on the server.
Published on infosecwriteups.com
Thanks to : karmainsecurity
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a routing misconfiguration that allowed a protected method to be invoked directly via the public API.
Impact
An attacker could execute arbitrary PHP code as the web server user, leading to webshell upload, database exfiltration, privilege escalation, and full server compromise.
What the attacker needed
VBulletin 5.1.0, 5.7.5, 6.0.1, or 6.0.3; PHP 8.1 or higher; Publicly exposed instance
The fix
Upgrade to the latest patched version of vBulletin.
How it was found
- Find a target vBulletin instance using internet-wide search engines.
- Use Burp Suite to monitor HTTP requests and identify API endpoints.
- Send a POST request to /ajax/api/ad/replaceAdTemplate with a crafted body containing a template parameter.
- Observe the response to confirm code execution (e.g., var_dump output).
- Replace the payload with a system command to execute arbitrary commands.
- Validate command execution by observing the output (e.g., whoami result).
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
vBulletin is forum software. A method that should only be callable internally was reachable from the internet without logging in. By sending a crafted request, an attacker could make the server run their own code, like a command to see who the server runs as.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.