HexBrain

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

  1. Create a new GitLab project
  2. Initialise the project by creating a README file
  3. Set the file title to README.textile
  4. Paste the below Payload into the file
  5. Commit the file to the project and click on the link

Proof of Concept Payload

"Security test link":javascript:alert(document.domain)

Thanks!

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original