Skip to content
Crypto Write-up Advanced

What are PDF signatures used for and what is the legal status?

Signed PDFs could be manipulated after signing by preparing invisible content before the signature and then revealing or replacing it afterwards, while the signature still validated. An attacker could make a signer approve harmless-looking content and then present different content to the victim.

web-in-security.blogspot.com

Published on web-in-security.blogspot.com

Last year we presented How to Spoof PDF Signatures. We showed three different attack classes.

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 signature validation only treats certain kinds of appended PDF updates as dangerous, so updates that merely change how existing objects are rendered (page structure, object type, form overlays, font descriptions, or the catalog reference) are accepted as harmless and leave the signature valid.

Impact

Attackers could change what a signed PDF displays, including text, forms, fonts and annotations, while the signature remained valid; 15 of 28 viewers were vulnerable, though some applications warn on any post-signature update.

What the attacker needed

Attacker prepares the PDF before signing; victim signs the document; attacker can send the file back after signing

The fix

Vendors were supported in developing countermeasures and fixed the vulnerable implementations, as recorded in the two CVEs.

How it was found

  1. Prepare a PDF containing invisible or shadow content before it is signed.
  2. Send the document to a signing entity, who reviews and signs it.
  3. After receiving the signed file, append an incremental update that reveals or replaces the hidden content.
  4. Send the modified signed document to the victim, who sees different content while the signature still validates.

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.

A digital signature on a PDF is meant to prove the document has not changed since it was signed. These researchers found that a PDF can carry hidden content that is not visible when it is signed, and that this content can later be made visible or swapped in without breaking the signature check. So the person who signed sees one thing, and the person who receives the file sees another.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.