HexBrain

Snapchat · Report #125849

XSS found on Snapchat website

Validstatus
38upvotes
26 May 2018disclosed

How it was found

Hi Snapchat Team,

I've found a reflected XSS vulnerability on this page: https://www.snapchat.com/add/snapchat

Example: https://www.snapchat.com/add/%22%3E%3Ch1%3EXSS%3C%2Fh1%3E

Note: you should visit the page with a mobile user-agent since the server displays different information based on the User-Agent HTTP header sent by the browser.

There are 6 places where the username isn't protected against XSS attacks:

  • 4 meta tags: twitter:title, twitter:image, og:title, og:image
  • 1 object tag: snapcode
  • 1 h2 tag: username

This could lead to JavaScript execution, UI redressing or open redirects.

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