Store XSS in merge requests via .gitlab-ci.yml
GitLab
Originally disclosed on GitLab
- Fixed in 21 days
- Disclosed after 21 days
HackerOne report #1108534 by henrychen on 2021-02-22, assigned to GitLab Team:
Report | Attachments | How To Reproduce
Report
Steps to reproduce
- set Target Branch as
'"><script>alert(document.domain)</script>and notice Start a new merge request with these changes

- submit New Merge Request

- xss

in gitlab.com

Results of GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info)
ystem information
System:
Proxy: rvm_proxy:
Current User: chybeta
Using RVM: yes
RVM Version: 1.29.9
Ruby Version: 2.7.2p137
Gem Version: 3.1.4
Bundler Version:2.1.4
Rake Version: 13.0.3
Redis Version: 5.0.7
Git Version: 2.29.0
Sidekiq Version:5.2.9
Go Version: go1.15.6 darwin/amd64
GitLab information
Version: 13.10.0-pre
Revision: 4fe894dccc0
Directory: /Users/chybeta/gitlab-development-kit/gitlab
DB Adapter: PostgreSQL
DB Version: 12.2
URL: http://127.0.0.1:3000
HTTP Clone URL: http://127.0.0.1:3000/some-group/some-project.git
SSH Clone URL: ssh://[email protected]:2222/some-group/some-project.git
Elasticsearch: no
Geo: no
Using LDAP: no
Using Omniauth: yes
Omniauth Providers: google_oauth2
GitLab Shell
Version: 13.16.1
Repository storage paths:
- default: /Users/chybeta/gitlab-development-kit/repositories
GitLab Shell path: /Users/chybeta/gitlab-development-kit/gitlab-shell
Git: /usr/local/bin/git
Impact
A user can setup their own private project, then post a mp on a public project and injecting the xss
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
How To Reproduce
Please add reproducibility information to this section:
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.com. GitLab made it public on 15 March 2021. Fixed in version 13.11.
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.