Skip to content
XSS Write-up Beginner

Unveiling Vulnerabilities Analyzing Stored Xss And Idor At Drexel University System

A profile page stored an SVG payload in name fields that executed when other users viewed the profile or a member-contact feature. Separately, profile URLs used a sequential numeric identifier, so changing the number disclosed other users' names, membership time, nickname and email, including the admin's.

Jeewan Bhatta Follow

Published on infosecwriteups.com

Greetings Everyone. Hope you’re all doing well.

Jeewan Bhatta, on infosecwriteups.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 user-supplied name fields were stored and rendered without output encoding, and profile lookups trusted a sequential numeric identifier without an ownership or authorisation check.

Impact

An attacker could run script in the browsers of users who viewed the affected profile or contact feature, and could read the personal details of any user, including the administrator.

What the attacker needed

A free account on the site; victim views the affected profile or feature; sequential numeric profile IDs

The fix

The text says the IDOR was fixed within weeks; the stored XSS should be fixed by encoding user input on output and sanitising stored profile fields.

How it was found

  1. Create an account on the subdomain with a login and register function.
  2. Insert an SVG payload with an onload handler into the first, middle and last name fields and save the profile.
  3. Open the endpoint that finds a programme of interest, where the payload executed.
  4. Open the feature for getting in touch with university members, where the payload executed again.
  5. On a second subdomain, open your own profile and note the numeric value in the URL.
  6. Change the numeric value, including to 1, to view other users' profile details.

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.

Two separate mistakes. First, the site saved text a user typed into name fields and later displayed it as live web code, so a script hidden in a name ran in other people's browsers. Second, each profile had a simple number in its web address, and the site never checked whether you were allowed to view that number, so anyone could walk through every profile by counting up.

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 Jeewan Bhatta

View all

10 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.