Skip to content
RCE Write-up Intermediate

CRITICAL ALERT: Unauthenticated RCE in Bricks Builder

An unauthenticated remote code execution vulnerability exists in Bricks Builder versions up to 1.9.6, triggered through a REST API endpoint that processes attacker-controlled JSON in an eval-like manner. An attacker could execute arbitrary code on the server, leading to full compromise.

medium.com

Published on medium.com

An unauthenticated Remote Code Execution vulnerability allows attackers to take over WordPress sites running vulnerable Bricks Builder versions without any login credentials. The flaw is triggered through a vulnerable API endpoint that processes attacker-controlled JSON containing PHP-like payloads.

Cybersecplayground, on medium.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

The render_element function processes unsanitised user input in an eval-like manner, allowing code execution.

Impact

An attacker could achieve full server compromise, leading to data theft, persistence, and lateral movement; the vulnerability is actively exploited in the wild.

What the attacker needed

WordPress site with Bricks Builder ≤ 1.9.6; No authentication required

The fix

The vulnerability was fixed in Bricks [redacted] and later; users should upgrade immediately.

How it was found

  1. Send a POST request to the render_element REST API endpoint with a JSON body containing a crafted element.
  2. The JSON includes a query editor field with a PHP-like payload that triggers an exception.
  3. The exception returns the output of the executed command, demonstrating code execution.

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 flaw in a WordPress plugin called Bricks Builder. It lets anyone run commands on the web server without logging in, because the plugin takes input from a web request and runs it as code. That means an attacker could take full control of the site.

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.