Kofax Power PDF JPG File Parsing Out-Of-Bounds Read Information Disclosure Vulnerability
A JPG parsing flaw in Kofax Power PDF fails to validate user-supplied data properly, causing a read past the end of an allocated object. A remote attacker could disclose sensitive information, and could combine this with other flaws to run code in the current process.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to disclose sensitive information on affected installations of Kofax Power PDF. 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 JPG parser trusts length or offset fields in the file without checking them against the actual buffer size, so it reads past the allocated object.
Impact
An attacker could disclose sensitive information, and could chain this with other vulnerabilities to execute arbitrary code in the context of the current process, though the victim must open a malicious file or visit a malicious page.
What the attacker needed
Victim opens a malicious JPG or page; affected Kofax Power PDF installed
The fix
The vendor released an updated version of the product, as indicated by the linked readme for a later build.
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 PDF reader also opens image files, and when it reads a JPG it trusts the size and structure values written in the file. If those values are wrong, the program reads memory beyond the area it set aside, and that leftover memory can leak out. The attacker only needs the victim to open a crafted file or visit a page that triggers it.
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.