Skip to content
Info disclosure Write-up Advanced

ZDI-21-171: Getting Information Disclosure in Adobe Reader Through the ID Tag

Adobe Reader did not check the length of the ID array in a PDF trailer, allowing an attacker to cause an out-of-bounds read and disclose the base address of Annots.api. This information leak could be used as part of an exploit chain.

zerodayinitiative.com

Published on zerodayinitiative.com

Sometimes the only thing between you and a successful exploit is an information leak. While I see my fair share of information disclosure bugs on the job, it’s not every day that I see one that is so clean and elegant.

The author, on zerodayinitiative.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application failed to validate that the length of the ID array in the PDF trailer did not exceed the expected maximum of 0x100 bytes before using it in a memory copy operation.

Impact

An attacker could disclose the base address of Annots.api, which could be used as part of an exploit chain to achieve code execution.

What the attacker needed

Victim opens a malicious PDF; JavaScript enabled in Adobe Reader

How it was found

  1. Create a PDF file with an ID tag in the trailer containing overly long array values.
  2. Open the PDF in Adobe Reader.
  3. Use JavaScript to call Collab.documentToStream().
  4. Observe the leaked base address of Annots.api.

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 write-up has not been written yet. The Original tab links to the source.

Adobe Reader reads PDF files. A PDF file has a trailer with an ID tag that should be short. The program did not check if the ID was too long, so it read past the end of a buffer and leaked memory contents. This leak helps attackers learn where parts of the program are in memory, which is useful for building an exploit.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.