GitLab · Report #205498
[Textile] XSS in project README files
Validstatus
mediumseverity
5upvotes
15 Feb 2017disclosed
Summary
Persistent XSS vulnerabilities were identified by way of the RubyDoc, reStructuredText, and Textile markup formats. Thanks again to the GitLab team. I've published a blogpost discussing my findings and the recent Security Release.
How it was found
Hi,
Another parser bypass here – I discovered that Textile markup can be used to inject a stored JavaScript payload into a project README.textile file :)
Steps to Reproduce
- Create a new GitLab project
- Initialise the project by creating a
READMEfile - Set the file title to
README.textile - Paste the below Payload into the file
- Commit the file to the project and click on the link
Proof of Concept Payload
"Security test link":javascript:alert(document.domain)
Thanks!