Skip to content
XSS Disclosed report Beginner

Xss Vulnerability of upload svg files in a collection section that triggers xss

An SVG file uploaded as a profile header image could contain a script that executes when the image is viewed, leading to cross-site scripting. An attacker could run arbitrary JavaScript in the context of the victim's session.

MR_ZHEEV Follow

Originally disclosed on Bugcrowd

Informational View original
  • Disclosed after 3 months

Summary by Atlassian

Xss Vulnerability of upload svg files in start.atlassian.com

Summary by MR_ZHEEV

Don't my findings fall into the P4 category? I have reported websites with loopholes like this on several platforms for example: (H1) this is a rather serious problem, and I find that on the account section it has a rather serious impact because it is exploited via SVG files, I have come across and reported more than once the website that I get is like this and usually gets P3 & P4

Report details

  • Submitted

    22 Oct 2020 14:05:11 UTC

  • Target Location

    Atlassian Identity (https://id.atlassian.com/login)

  • Target category

    Web App

  • VRT

    Cross-Site Scripting (XSS) > Stored > Self

  • Priority

    P5

  • Bug URL

    https://id.atlassian.com/manage-profile/profile-and-visibility

  • Description

    hi team. I found an XSS vulnerability of upload svg files in a collection section that triggers xss

    1. Go to start.atlassian.com

    2. then select manage profile

    3. then select update your header image

    4. then add the image to the image collection with the XSS svg file

    5. Right click and see the XSS image via the svg file is executed

      Payload save format svg:

    <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd%22%3E <svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg"> <polygon id="triangle" points="0,0 0,50 50,0" fill="#009900" stroke="#004400"/> <script type="text/javascript"> alert(document.domain); </script> </svg>

    Impact allowing uploads in the svg format creates an xss vulnerability

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application allowed SVG files to be uploaded and served them without sanitising or restricting script content, so embedded JavaScript executed when the image was rendered.

What the attacker needed

A free account; victim views the uploaded SVG

How it was found

  1. Go to start.atlassian.com
  2. Select manage profile
  3. Select update your header image
  4. Add the image to the image collection with the XSS svg file
  5. Right click and see the XSS image via the svg file is executed

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When you upload an image, the website should treat it as a picture, not as code. Here, the site allowed an SVG file (a type of image that can contain scripts) to be uploaded and then displayed without proper checks. That let the uploaded script run in the browser of anyone who viewed the image, which is called cross-site scripting (XSS).

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 Atlassian

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.