Skip to content
XSS Write-up Beginner

Simple RXSS di website insight.kontan.co.id

A reflected cross-site scripting flaw existed in the search parameter of a news site's search page. An attacker could craft a link that, when opened by a victim, would run script in the victim's browser.

0xRedFox29 Follow

Published on medium.com

Pada write up kali ini, saya mendapatkan sebuah temuan yang simple hanya dengan mempelajari website target keseluruhan

0xRedFox29, 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 search parameter was reflected into the HTML response without proper output encoding, allowing markup to break out of its context.

What the attacker needed

Victim clicks a crafted link

The fix

The issue was fixed by the site team after being reported.

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.

Cross-site scripting (XSS) is when a website puts user-supplied text into a page without making it safe, so a crafted link can make the victim's browser run code written by the attacker. Here the search box echoed the search term back into the page, and a specially formed link could break out of the page's structure and run a script. The victim only has to click the link.

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 0xRedFox29

View all

6 more disclosed reports, 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.