Skip to content
XSS Write-up Beginner

My First Verified Bug Bounty: Unmasking Flaws in University Web Apps

Several university web applications had reflected and stored cross-site scripting flaws in search boxes and other pages, plus SQL injection in a login form and another parameter. An attacker could run script in a victim's browser or bypass authentication to gain administrative access.

rafisyafrinaldi17 Follow

Published on medium.com

Over a span of several days in late April 2024, I embarked on an expedition to uncover hidden vulnerabilities within a university’s web applications, having obtained permission from them beforehand. This narrative recounts the tools and techniques I employed, the vulnerabilities I unearthed, and the measures we…

Impeony | Rafi, 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 missing input validation and output encoding, so user-supplied text was executed as script or interpreted as database commands.

Impact

Attackers could run script in users' browsers to reach cookies or impersonate them, and could log in as administrator without a password; on one host a web application firewall blocked further exploitation.

What the attacker needed

Permission from the university; victim visits or uses the affected page; no account needed for some flaws

The fix

The vulnerabilities were patched and input validation was strengthened, with ongoing developer education and periodic security audits.

How it was found

  1. Enumerate subdomains of the university's domains with a subdomain discovery tool.
  2. Open each subdomain and look at search boxes and login forms.
  3. Enter a script tag with an image error handler into the search bar and see it execute.
  4. Enter a SQL tautology into the login form to log in as admin without a password.
  5. Submit a script tag that is stored on a page and runs for later visitors.
  6. Use a proxy to tamper with parameters and watch for database errors.

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) lets an attacker slip their own JavaScript into a page so it runs in another visitor's browser, which can steal that person's session. SQL injection means typing database commands into a form field so the site's database does what the attacker wants, such as skipping a password check. Here the tester found both kinds of mistakes on a university's websites.

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.