Skip to content
XSS Write-up Beginner

Çanlar Kimin İçin Çalıyor — Claude Mythos

A PDF file uploaded to a web application and to Azure DevOps could run JavaScript when opened in the built-in viewer, a stored cross-site scripting issue. The author could not build a strong payload, so the reports to Microsoft and Grok were closed as informative and the HubSpot one as duplicate.

medium.com

Published on medium.com

Bu yazımda Microsoft ve Grok’da bulduğum zafiyetten bahsettim ve Claude gelecekte yerimi alabilir mi sorusunu irdeledim. Biraz AI karşıtlığı içerdiği için yazının %100 insan emeği olmasına dikkat ettim.

Taha, on medium.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 viewer rendered uploaded files without blocking embedded JavaScript, so script inside the PDF ran in the site's origin.

Impact

Anyone who opened the uploaded PDF saw the script run, but a strong CSP and HttpOnly, Secure and SameSite cookie flags would make cookie theft and session hijacking nearly impossible, and the author could not deepen the impact.

What the attacker needed

Ability to upload a PDF; victim opens the PDF in the viewer; weak CSP and cookie flags

The fix

The text does not say how it was fixed; it should be fixed by not running JavaScript from uploaded PDFs and by using a strong CSP plus HttpOnly, Secure and SameSite cookie flags.

How it was found

  1. Create a PDF file that contains JavaScript.
  2. Upload it to the web application that was being tested.
  3. Open the uploaded PDF in the application's PDF viewer and see the script run.
  4. Attach the same PDF to an Azure DevOps ticket and open it there, where the script also ran.

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 JavaScript, and some PDF viewers run it. If a website lets people upload PDFs and then shows them in a viewer that runs that script, the script runs inside the website's own pages. That is called stored cross-site scripting, because the harmful file is stored on the site and runs for anyone who opens it.

What is XSS?

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

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.