Skip to content
XSS Disclosed report Beginner

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
  1. set Target Branch as '"><script>alert(document.domain)</script> and notice Start a new merge request with these changes
1.jpg
1.jpg From the original on GitLab
  1. submit New Merge Request
2.jpg
2.jpg From the original on GitLab
  1. xss
3.jpg
3.jpg From the original on GitLab

in gitlab.com

4.jpg
4.jpg From the original on GitLab
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:

The original report as published on GitLab. Images and videos are our own copies; raw HTML is shown as text. View it on GitLab.

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.

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.