Skip to content
XSS Write-up Beginner

Dosya yükleme ile XSS

The profile picture upload on the account creation page accepted a file that the browser later executed as script, with no filtering applied. An attacker could upload a crafted image file and have it run script in the context of the site when viewed.

enesozlekk Follow

Published on enesozlekk.medium.com

Herkese merhaba, bu yazımda bir VDP programda bulduğum dosya yükleme yolu ile oluşan XSS zafiyetinden bahsedeceğim.

Enes Özlek, on enesozlekk.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 upload endpoint did not validate the file type or content, so a script-bearing file was stored and served back in a way the browser executed.

Impact

Script could run in the site's context for anyone who viewed the uploaded file, though the report does not show how a victim would be made to open it.

What the attacker needed

A free account; victim views the uploaded file

How it was found

  1. Create an account on the target site
  2. Find the profile picture upload field on the account creation page
  3. Upload a crafted file instead of a normal image
  4. Observe that the file is accepted without filtering and the script runs

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 website lets you upload a picture for your profile. Normally the site should check what kind of file it is and stop anything that is not a real image. Here it did not check, so a file that is really a small program could be uploaded and run inside the browser of anyone who opens it, which is called cross-site scripting (XSS).

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.