PDF-XChange Editor JB2 File Parsing Out-Of-Bounds Read Information Disclosure Vulnerability
PDF-XChange Editor fails to properly validate user-supplied data while parsing JB2 files, causing a read past the end of an allocated object. A remote attacker could use this to disclose sensitive information, and could combine it with other flaws to execute code in the current process.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to disclose sensitive information on affected installations of PDF-XChange Editor. 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 missing bounds check on a length or offset field in the JB2 parser, so the code reads beyond the allocated buffer.
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; user interaction is required.
What the attacker needed
Victim opens a crafted JB2 file; or victim visits a malicious page
The fix
It was fixed in version 10.4.2.390.
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 program that reads a file must stay within the memory it reserved for that file. Here the PDF viewer trusts a number in a JB2 image file and reads past the end of its buffer, so bytes from other memory can leak out. The attacker only needs the victim to open a crafted file or visit a malicious 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.