Skip to content
XSS Write-up Beginner

$100 bounty — XSS & Input Validation

A coding platform allowed a PDF file uploaded as a resume to execute script, giving cross-site scripting. Separately, a team name field limited to 15 characters in the browser accepted far more characters when the request was sent directly, causing a denial of service.

infosecwriteups.com

Published on infosecwriteups.com

Link for friends

StvRoot, on infosecwriteups.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 server trusted client-side limits and accepted uploaded PDFs without sanitising their active content.

Impact

The PDF upload could run script in a victim's browser, and the oversized team name could cause a denial of service; the author only demonstrated a small impact for the latter.

What the attacker needed

A free account; ability to upload a resume; ability to intercept requests

How it was found

  1. Create a profile on the platform
  2. Upload a crafted PDF to the resume section
  3. Observe script execution from the PDF
  4. Join a challenge and open the team name field
  5. Intercept the request and send a much longer value than the 15-character limit

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 sometimes trusts what your browser sends it. Here, the page stopped you typing more than 15 characters, but the server never checked, so a tool that edits requests could send much more and break the site. The other bug was an uploaded PDF that could run code in the browser, which is cross-site scripting.

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.