Foxit PDF Reader Annotation Use of Uninitialized Variable Remote Code Execution Vulnerability
The Foxit PDF Reader mishandles Annotation objects by using an uninitialized pointer, which can lead to arbitrary code execution. An attacker can exploit this by convincing a user to open a malicious PDF or visit a malicious page, resulting in code execution in the context of the current process.
Originally disclosed on Zero Day Initiative
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, a pointer within Annotation object handling is used before being initialized, leading to undefined behaviour that can be exploited for code execution.
Impact
An attacker could execute arbitrary code in the context of the current process, but user interaction (opening a file or visiting a page) is required.
What the attacker needed
Victim opens a malicious PDF; or victim visits a malicious page
The fix
Foxit has issued an update to correct this 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.
This is a memory corruption bug in Foxit PDF Reader. When the program handles certain parts of a PDF called annotations, it uses a pointer (a memory address) without setting it first, which can cause the program to crash or run attacker-supplied code. An attacker could trick someone into opening a malicious PDF or visiting a malicious webpage to trigger the flaw.
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.