Skip to content
Business logic Write-up Intermediate

Fickle PDFs: exploiting browser rendering discrepancies

A crafted PDF invoice could display one price in Safari and Preview, potentially deceiving recipients.

Zakhar Fedotkin Follow

Published on portswigger.net

Imagine the CEO of a random company receives an email containing a PDF invoice file. In Safari and MacOS Preview, the total price displayed is £399.

Zakhar Fedotkin / d4d (@d4d89704243), on portswigger.net

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

Impact

A crafted PDF could display different information depending on the viewer, potentially misleading recipients.

What the attacker needed

Victim opens a crafted PDF; attacker can send the PDF to the victim

How it was found

  1. Open the PDF in different viewers to observe the discrepancy.

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 display different content in different viewers. An attacker could make the same PDF show different information to different people.

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.

More by Zakhar Fedotkin

View all

1 more disclosed report, best first.

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.