RomCom exploits Firefox and Windows zero days in the wild
A use-after-free in Firefox's animation timeline allowed code execution in the browser's content process, and a Windows Task Scheduler privilege escalation bug let that code escape the sandbox. Chained, they let an attacker run arbitrary code and install the RomCom backdoor when a victim visited a malicious page, with no user interaction.
welivesecurity.com
Published on welivesecurity.com
ESET researchers discovered a previously unknown vulnerability in Mozilla products, exploited in the wild by Russia-aligned group RomCom. This is at least the second time that RomCom has been caught exploiting a significant zero-day vulnerability in the wild, after the abuse of CVE-2023-36884 via Microsoft Word in…
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
Impact
An attacker could run arbitrary code and install the RomCom backdoor without user interaction, though the exploit only worked on specific vulnerable browser versions.
What the attacker needed
Victim uses a vulnerable browser version; victim visits a malicious or compromised website; no user interaction required
The fix
Mozilla fixed the Firefox bug by using reference-counting pointers for animations, and Microsoft fixed the Windows bug by applying a more restrictive security descriptor to the RPC interface.
How it was found
- Victim visits a fake website that redirects to a server hosting the exploit.
- The exploit page loads an iframe that triggers the use-after-free in Firefox's animation timeline.
- Shellcode runs in the content process and loads a library that exploits a Windows RPC endpoint to create a scheduled task.
- The scheduled task runs PowerShell that downloads and executes the RomCom backdoor.
- After a few seconds, the page redirects to a legitimate site to avoid suspicion.
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 use-after-free is a bug where a program frees some memory but keeps using it, so an attacker can put their own data there and take control. Here, a flaw in how Firefox handled animation objects let a malicious web page run code inside the browser, and a second flaw in Windows let that code break out of the browser's protective sandbox. Together they allowed silent installation of malware just by visiting a page.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.