Skip to content
XSS Write-up Beginner

An Html Injection Worth 600 Dollars

An HTML injection in a repository description field led to stored XSS, triggering a pop-up on page reload. The triager initially closed the report as N/A, but the company later paid for it and two other reports.

c0d3x27 Follow

Published on infosecwriteups.com

If you are a Harry Potter fan, just like my girlfriend is, you already know who these people are. Some of you might know them by their most common name — triagers.

c0d3x27, 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 the repository description field did not properly sanitise user-supplied HTML, allowing script execution.

Impact

An attacker could execute arbitrary JavaScript in the context of the repository page, potentially affecting other users who view it.

What the attacker needed

A free account; ability to create a repository

How it was found

  1. Save a repository.
  2. Use the description field to post the payload.
  3. Reload the page to trigger the pop-up.

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.

HTML injection is when a website lets you insert HTML code into a page, and if that code includes a script, it becomes stored XSS (cross-site scripting), meaning the script runs for anyone who views the page. Here, the description field of a repository allowed such code, so a pop-up appeared each time the page loaded.

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 c0d3x27

View all

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