GitLab · Report #1261148
Stored-XSS in merge requests
Informativestatus
6upvotes
19 Jul 2021disclosed
How it was found
Summary As an attacker I could do XSS on Web.com because it is vulnerable Stored XSS, also known as persistent XSS, is more damaging than non-persistent XSS. It occurs when a malicious script is injected directly into a vulnerable web application.
Steps to reproduce
- Go to https://gitlab.com/
- Create a new branch with name any of these
"><img src=x onerror=alert(document.domain)>
<iframe <><a href=javascript:alert(document.cookie)>Click Here</a>=></iframe> <iframe srcdoc="<img src=x onerror=alert(document.domain)>"></iframe>- Create a new merge request from the new branch to master
- XSS is saved and if you will open the readme file and add these payloads to it it will also save these payloads
Output of checks
This bug happens on GitLab.com
Impact
This stored-XSS allows attacker to execute arbitrary actions on behalf of victim notably via gitlab API. The attacker can steal data from whoever checks the report.