Skip to content
RCE Write-up Advanced

Attack of the clones: Getting RCE in Chrome's renderer with duplicate object properties

A bug in Chrome's origin trial feature activation allowed duplicate properties to be created on internal objects, leading to type confusion and potentially remote code execution in the renderer sandbox. An attacker could exploit this by crafting a malicious webpage that triggers the origin trial and manipulates object properties.

github.blog

Published on github.blog

Man Yue Mo·@m-y-mo

Man Yue Mo, on github.blog

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 origin trial activation code assumed no user JavaScript had run and did not properly check for existing properties, allowing duplicate properties to be created on internal objects.

What the attacker needed

Victim visits a malicious site; Chrome version vulnerable to CVE-2024-3833

The fix

The bug was fixed in Chrome version 124.0.6367.60/.61.

How it was found

  1. Create a property on the WebAssembly object or its prototypes.
  2. Change the global WebAssembly variable to a different object.
  3. Activate the origin trial by adding a meta tag with the trial token.
  4. The origin trial code creates a duplicate property on the original WebAssembly object.
  5. Use the duplicate property to cause type confusion and achieve RCE.

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.

Chrome sometimes tests new features by letting websites opt in with a special token. A flaw in how these features were turned on let a malicious site create duplicate properties on internal objects, confusing the JavaScript engine and potentially letting the attacker run code on the victim's computer.

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.