Skip to content
XSS Disclosed report Beginner

Stored XSS on Issue details page

The issue details page was vulnerable to stored XSS via the issue description, executing when the issue is viewed.

8ayac Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 2 months
  • Disclosed after 3 months

Summary by the program

The detail page of Issue (the page that provides the content of an Issue) is vulnerable to Stored XSS.

The report

Summary: The detail page of Issue (the page that provides the content of an Issue) is vulnerable to Stored XSS.

Description: The two exploits are via the function of submittin an issue or the function of editing an issue. This vulnerability is reproduced in Firefox andChrome. IE11 andEdge are not. I did not test the reproduction on other browsers.

Steps To Reproduce:

  1. Sign in to GitLab.
  2. Click the "[+]" icon.
  3. Click "New Project".
  4. Fill out "Project name" form with "PoC".
  5. Check the check box of "Public".
  6. Click "Issues"
  7. Click "New issue" button.
  8. Fill out the each form as follows:
    • Title: PoC
    • Description: {{media:0}}
  9. Click "Submit issue".

Furthermore, when editing an already existing issue, you can also reproduce by entering A in the "Description" form and saving it.

Impact

The security impact is the same as any typical Stored XSS.

Thank you!

Attachments

poc.PNG
poc.PNG From the original on HackerOne

The original report as published on HackerOne, by 8ayac. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application failed to sanitise or escape user-controlled input in the issue description before rendering it on the issue details page.

Impact

The impact is the same as any typical stored XSS, executing scripts in viewers' browsers.

What the attacker needed

A GitLab account; ability to create or edit an issue; victim views the issue

How it was found

  1. Sign in to GitLab.
  2. Click the "[+]" icon.
  3. Click "New Project".
  4. Fill out "Project name" form with "PoC".
  5. Check the check box of "Public".
  6. Click "Issues"

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 report has not been written yet. The Original tab links to the source.

Stored cross-site scripting (XSS) happens when a website saves harmful code that a user types in, and later shows it to other people without cleaning it. Here, the issue description field allowed a special placeholder to be saved and then displayed as active content, so anyone viewing the issue could run the attacker's script in their browser.

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 8ayac

View all

5 more disclosed reports, best first.

More from GitLab

View all

The newest disclosed reports for this program.

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.