Skip to content
XSS Write-up Beginner

“It Looked Like the Admin Said It” , The Quiet Power of Quo

A community forum's quote feature trusted a client-supplied username attribute, so a user could make a post appear to quote any other user, including an admin. An attacker could use this to put words in an admin's or moderator's mouth, for example to endorse a phishing link or fake instructions.

Aser0xx Follow

Published on medium.com

A few weeks ago, I was poking around in a community forum,nothing fancy, just checking out how quoting worked. You know when you hit “Reply with quote” and it adds something like:

Aser0xx, 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

An attacker could make an admin appear to endorse a link or give instructions, which could aid phishing or damage trust in the community; the text does not show script execution or account compromise.

What the attacker needed

A forum account able to post and quote; the quote feature stores a client-supplied name

How it was found

  1. Reply to a post and quote someone, then inspect the HTML or JSON being sent.
  2. Look for a username or author attribute embedded in the quote markup.
  3. Change that attribute to another user's name, such as admin, and send the request.
  4. Check how the page renders the quote to see whether it shows the spoofed name.

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 you quote someone on a forum, the site usually stores who said the original message. Here the site believed a name the user's browser sent, instead of checking who really wrote the quoted post. So anyone could type a different name, such as an admin's, and the page would display it as if that person had said it.

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.