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.
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á.
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
- Enumerate subdomains and parameters to find reflected values.
- Open a page where a parameter is reflected with the first letter capitalised.
- Try a normal payload and observe that the capitalisation breaks it.
- Use HTML numeric character references for the function name so the capitalisation does not affect it.
- 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.