Nitro Pro PDF Javascript XML error handling Information Disclosure Vulnerability
A malformed JavaScript object in a PDF causes Nitro Pro to access uninitialized memory when handling a JavaScript error, leading to information disclosure. An attacker could exploit this to leak heap layout details, potentially bypassing exploit mitigations.
Originally disclosed on Cisco Talos
An exploitable information disclosure vulnerability exists in the way Nitro Pro 13.9.1.155 does XML error handling. A specially crafted PDF document can cause uninitialized memory access resulting in information disclosure.
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 error reporter callback receives a JSErrorReport structure with uninitialized or freed pointers, and Nitro Pro's wrapper passes these to a wide-string formatting function without validation.
Impact
This could leak sensitive information about heap layout, which could be abused to bypass other exploit mitigations; without PageHeap, it does not crash but reads stale pointers.
What the attacker needed
Victim opens a malicious PDF
How it was found
- Create a PDF with a JavaScript action containing malformed content.
- Open the PDF in Nitro Pro.
- The JavaScript engine raises an error and calls the registered error handler.
- The error handler passes the JSErrorReport structure to a formatting function, which reads from uninitialized memory.
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.
When a PDF contains JavaScript, Nitro Pro runs it using a JavaScript engine. If the JavaScript is malformed, the engine reports an error, but Nitro Pro mishandles part of that error report, reading memory that was never properly set up. This can leak bits of memory that might help an attacker defeat security protections.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.