Critical Unauthenticated Arbitrary File Upload Vulnerability Exploited in Bricksforge Plugin
The Bricksforge WordPress plugin validated a file's MIME type on first upload but later trusted client-supplied file metadata in the temporaryFileUploads parameter, including the url field. An unauthenticated attacker could upload an image/PHP polyglot and have it written to a PHP path, achieving arbitrary PHP code execution on the server.
This blog post covers a Critical unauthenticated arbitrary file upload vulnerability in the Bricksforge plugin for WordPress. Patchstack has deployed a mitigati
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
The plugin trusted client-supplied file metadata (the url field in temporaryFileUploads) on form submission instead of re-validating the file's type and destination server-side.
Impact
An unauthenticated attacker could execute arbitrary PHP code, deploy web shells, modify content, read sensitive data and keep persistent access; the text notes Patchstack's mitigation rule blocks these attempts at the traffic layer for its users.
What the attacker needed
No authentication needed; vulnerable Bricksforge version (up to [redacted]); network access to the site
The fix
The vulnerability was fixed in Bricksforge version 3.1.8.10, and users should update to at least that version.
How it was found
- Request a valid nonce from the unauthenticated nonce-regeneration AJAX endpoint.
- Upload a GIF/PHP polyglot that passes the MIME check and lands in the temporary upload directory.
- Submit a form where the file path points to the validated image but the url ends in a PHP extension.
- The plugin trusts the submitted metadata and writes the file contents to the PHP location, which executes when requested.
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.
A plugin that handles file uploads checked that an uploaded file looked like an image, but when the form was submitted it believed extra details sent by the browser about where the file should go. An attacker could send a file that is both a real image and a hidden program, then tell the site to save it under a name ending in .php, which the web server runs as code. That let anyone run their own code on the site without logging in.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.