Foxit PDF Reader AFSpecial_KeystrokeEx Use-After-Free Remote Code Execution Vulnerability
The AFSpecial_KeystrokeEx method in Foxit PDF Reader used an object without first checking that it still existed, leaving a use-after-free condition. An attacker could exploit this by getting a victim to open a malicious file or visit a malicious page, potentially running code in the reader's process.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Foxit PDF Reader. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the AFSpecial_KeystrokeEx method dereferenced an object that could already have been freed, because it did not validate the object's existence before using it.
Impact
An attacker could execute arbitrary code in the context of the current process, but only if the target opens a malicious file or visits a malicious page.
What the attacker needed
Victim opens a malicious file or page; affected Foxit PDF Reader installed
The fix
Foxit issued an update that corrects the vulnerability.
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 report has not been written yet. The Original tab links to the source.
A use-after-free happens when a program frees some memory but keeps using it, so an attacker can arrange for something else to sit in that space and influence what the program does next. Here the flaw is in a PDF form-handling method, and the victim has to open a crafted file or page for it to matter. If it works, the attacker's code runs with the same permissions as the PDF reader.
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.