CVE-2024–25600: WordPress Bricks Builder Remote Code Execution
The Bricks Builder plugin for WordPress improperly uses the eval function in PHP, allowing unauthenticated attackers to execute arbitrary code on the server. This could lead to full server compromise and data breaches.
The CVE-2024–25600 vulnerability is a high-severity flaw in the Bricks Builder plugin for WordPress, disclosed on February 26, 2024. It allows unauthenticated remote code execution (RCE), permitting attackers to execute malicious code on affected servers without needing authentication.
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 uses the eval function on user-supplied input without proper validation, allowing code injection.
Impact
Attackers could execute arbitrary code remotely, potentially leading to full server compromise and data breaches.
What the attacker needed
Bricks Builder plugin <= 1.9.6; No authentication required; Nonce value obtainable
The fix
The vulnerability was fixed in Bricks Builder version 1.9.6.1; users should update to that version or later.
How it was found
- Retrieve a nonce value from the target site.
- Send a POST request to the WordPress REST API endpoint with a crafted JSON payload containing the nonce and malicious code in the queryEditor field.
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.
The Bricks Builder plugin for WordPress contains a coding mistake where it uses a dangerous function called eval, which runs any code given to it. An attacker can send a specially crafted request to the website and run their own commands 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.