Skip to content
XSS Disclosed report Beginner

Stored XSS in merge request pages

8ayac Follow

Originally disclosed on HackerOne

  • Triaged in 35 hours
  • Fixed in 2 months
  • Disclosed after 3 months

Summary: I found a Stored XSS in merge request pages.

Description: The exploit is via the parameter merge_request[source_branch] of the request to create a New Merge Request.

Steps To Reproduce:

  1. Sign ikn to GitLab.
  2. Click the "[+]" icon.
  3. Click "New Project".
  4. Fill out "Project name" form with "test-project".
  5. Check the radio button of "Public".
  6. Check the "Initialize repository with a README".
  7. Click "Create project" button.
  8. Go to "http(s)://{GitLab host}/{user id}/test-project/branches/new".
  9. Fill out each form as follows:
  • Branch name: test-branch
  • Create from: master
  1. Click "Create branch" button.
  2. Go to "http://{GitLab host}/{user id}/test-project/merge_requests".
  3. Click "Create merge request" button.
  4. Click "Submit merge request" button.
  5. Intercept the request.
  6. Change the merge_request[source_branch] parameter's value to <img/src=x onerror=alert(1)>
  7. Send the request.

Result: poc.png

Note: This behavior can be reproduced on all modern browsers.

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.

What is known

A high-severity XSS bug in GitLab. HackerOne made it public on 3 December 2018.

About XSS

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

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

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.