Skip to content
XSS Write-up Beginner

How i found xss in goverment website with one tools.

A government website reflected an injected script back to visitors, which the author found by running an automated scanner against the site. The author claims an attacker could use this to steal session cookies, redirect users to phishing pages, or take over an admin account.

sulthanyluthfi Follow

Published on medium.com

How i found xss in goverment website with one tools. XSS also cross site scripting is malicious script/code inject to trusted website.

Luthfi Sulthany, 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

Impact

The author claims session cookies and sensitive data could be stolen, users could be redirected to phishing sites, and an admin account could be taken over, though no proof of these outcomes is shown.

What the attacker needed

A scanner tool; a reachable target URL; victim opens a crafted link

How it was found

  1. Download and extract the xray scanning tool.
  2. Run the scanner against the target website with the crawler and the SQL injection, XSS and path traversal plugins enabled.
  3. Review the HTML report the scanner produced to see the flagged XSS finding.
  4. Open the flagged URL and put a script into it to confirm 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.

Cross-site scripting (XSS) happens when a website takes something a visitor supplies, such as part of a web address, and puts it into the page without cleaning it first. The browser then treats the attacker's text as real code and runs it, so anything the site could do, the attacker's code can do too. Here the author only ran a scanner and saw it flag a page, then put a script into the address.

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.