Skip to content
RCE Write-up Intermediate

vBulletin <= 5.5.4 (updateAvatar) Remote Code Execution Vulnerability

User input passed through the data[extension] and data[filedata] parameters to the updateAvatar endpoint is not properly validated, allowing an attacker to inject and execute arbitrary PHP code. Exploitation requires the 'Save Avatars as Files' option to be enabled, which is disabled by default.

karmainsecurity.com

Published on karmainsecurity.com

User input passed through the “data[extension]" and “data[filedata]" parameters to the “ajax/api/user/updateAvatar” endpoint is not properly validated before being used to update users’ avatars. This can be exploited to inject and execute arbitrary PHP code.

The author, on karmainsecurity.com

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 the avatar upload endpoint fails to validate the file extension and content, allowing a PHP file to be saved and executed.

Impact

An attacker could execute arbitrary PHP code on the server, but only if the 'Save Avatars as Files' option is enabled, which is disabled by default.

What the attacker needed

'Save Avatars as Files' option enabled; ability to upload an avatar

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.

This is a bug in vBulletin, a forum software. When a user uploads an avatar, the software does not check the file type properly, so an attacker can upload a file that contains PHP code (a scripting language used on web servers). If the server is set to save avatars as files, the attacker can then run that code on the server, taking control of it.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.