Project Zero: Analysis and Exploitation of an ESET Vulnerability
A flaw in ESET's x86 emulator used for scanning untrusted files allowed a crafted file to corrupt the emulator's shadow stack pointer, letting the attacker escape the emulator and run code on the real CPU. An attacker could then execute arbitrary code on a victim's machine by getting them to open a malicious file or visit a web page.
googleprojectzero.blogspot.com
Published on googleprojectzero.blogspot.com
{{media:0}} |
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 emulator's shadow stack pointer was decremented by an unchecked amount when handling an ADD to the stack pointer, allowing it to be moved outside the shadow stack array.
Impact
An attacker could achieve code execution on the real CPU, defeating ASLR and DEP, via a malicious file delivered through USB, email or a web browser in a default configuration.
What the attacker needed
Victim opens a crafted file; default ESET configuration
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.
Antivirus software often runs suspicious files inside a simulated computer, called an emulator, so the real machine stays safe. Here a mistake in that simulation let a malicious file break out and run its instructions on the actual computer instead. The attacker only needed the victim to open a crafted file or load a web page.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.