Reflected XSS via Base64-encoded on My college website.
A login error page on a college website reflected a Base64-encoded value from the URL back into the page without proper handling, so a crafted link could run script in the victim's browser. The author demonstrated this by encoding a script and placing it in the URL, achieving reflected cross-site scripting.
Halo,kembali lagi dengan saya Timotius Benhur,btw kali ini kita ngetest website kampus kita lagi ya,berhubung writeup terakhir cukup ramai viewsnya,jadi mari kita testing testing lagi website kampus kita.
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
An attacker could send a crafted link that runs script in a victim's browser on the college site, though the author only demonstrated an alert and did not show theft of data or sessions.
What the attacker needed
Victim clicks a crafted link
How it was found
- Find a subdomain of the college website and open its login page.
- Trigger a failed login and notice the error message is Base64-encoded.
- Encode a script as Base64 and place it in the URL.
- Load the crafted URL and observe the script executing.
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.
When a website shows an error message, it sometimes copies part of the web address into the page. If it does that without cleaning the text, an attacker can put code in the link so the site runs it in the visitor's browser. This is called reflected cross-site scripting, and it lets an attacker run their own script as if it came from the trusted site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.