Skip to content
Business logic Write-up Advanced

PDF Structure and Basics

The PDF certification specification allows adding annotations or signature fields under certain permission levels, and attackers can abuse this flexibility to hide or replace visible content in certified PDFs. In their evaluation, the authors found that 15 of 26 viewer applications were vulnerable to the Evil Annotation Attack and 8 to the Sneaky Signature Attack.

web-in-security.blogspot.com

Published on web-in-security.blogspot.com

In recent years, we have presented How to Spoof PDF Signatures and Shadow Attacks: Hiding and Replacing Content in Signed PDFs, which describe attacks on PDF signatures under various attack scenarios. The attacks focused on so-called approval signatures.

The author, on web-in-security.blogspot.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 PDF specification permits annotations and signature fields to define arbitrary appearance and position, and viewers do not adequately verify or display these elements, allowing hidden content to be overlaid on certified documents.

What the attacker needed

A validly certified PDF; victim opens the modified PDF

The fix

The vulnerabilities were fixed by vendors after responsible disclosure, and the authors supported the development of countermeasures.

How it was found

  1. Obtain a validly certified PDF that allows annotations (P3) or signing (P2).
  2. Modify the certified document by adding an annotation or signature field with malicious content at a chosen position.
  3. For EAA, optionally set the annotation subtype to a missing or unspecified value to hide it from the annotations panel.
  4. For SSA, sign the document with a self-signed certificate and set the signature field parameters to hide validation details.
  5. Send the modified file to the victim, who opens it and may verify the digital signature.

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.

PDF files can be digitally certified to show they have not been changed. The certification rules allow some changes, like adding comments or signatures, without breaking the certification. This research shows that attackers can use those allowed changes to secretly alter what the document looks like, so the certification still appears valid.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.