Skip to content
XSS Write-up Intermediate

Malicious Pdf Analysis steel1 Pdf

A malicious PDF contains an embedded image of a reCAPTCHA prompt that, when clicked, triggers a URI annotation to a suspicious URL. An attacker could use this to trick a victim into visiting a malicious site that may deliver a second-stage payload.

ice-wzl Follow

Published on systemweakness.com

The original lives on systemweakness.com

We do not hold its text, 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 uses an annotation with a URI action attached to an embedded image, so clicking the image triggers a link to an attacker-controlled URL.

Impact

If a victim clicks the embedded image, the PDF could redirect them to a suspicious URL that may deliver a second-stage payload, though the text does not confirm any actual payload delivery.

What the attacker needed

Victim opens the PDF; victim clicks the embedded image

How it was found

  1. Unzip the provided archive to obtain the PDF files.
  2. Use pdfid.py to list PDF capabilities and note suspicious keywords.
  3. Use pdf-parser.py with -a to see statistics and with -s /URI to locate URI objects.
  4. Extract the embedded image using the -o parameter for the XObject.
  5. Follow object references from the image to the annotation and URI object.

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 PDF file can contain links and images. In this case, the PDF shows a fake reCAPTCHA image that looks clickable, and clicking it sends the user to a suspicious website. The attacker hopes the user will click and then download malware or enter information.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by ice-wzl

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.