Skip to content
XSS Write-up Intermediate

Um Xss Um Tanto Quanto Estranho

A reflected XSS was possible because the application capitalised the first letter of a reflected parameter, which broke normal payloads but could be bypassed by HTML-encoding the function name. An attacker could run script in a victim's browser if the victim opened a crafted link.

gato the wizard Follow

Published on infosecwriteups.com

Oi amigos, tudo certo com vocês? Hoje vim fazer meu primeiro writeup pra contar como eu fiz parar explorar em XSS de uma forma um pouco diferente, então vamos lá.

gato the wizard, 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 application applied a capitalisation transform to the reflected parameter value instead of properly encoding or rejecting it, and the transform could be bypassed with HTML character references.

Impact

An attacker could execute script in a victim's browser through a crafted link, though the report does not demonstrate theft of data or account takeover.

What the attacker needed

Victim clicks a crafted link; reflected parameter is reachable

How it was found

  1. Enumerate subdomains and parameters to find reflected values.
  2. Open a page where a parameter is reflected with the first letter capitalised.
  3. Try a normal payload and observe that the capitalisation breaks it.
  4. Use HTML numeric character references for the function name so the capitalisation does not affect it.
  5. Confirm the script executes in the browser.

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.

The site took a value from the address bar and showed it back on the page, but it changed the first letter to a capital. That change stopped normal attack code from working. The author found that writing the letters as HTML character codes (a way of writing a character by its number) avoided the change and let the code run.

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 gato the wizard

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.