Strange data in marketplace api

I was just having a look at the marketplace api, when I saw the following under the URL https://marketplace.atlassian.com/rest/2/vendors/1211323 :

 

{
  "_links": {
    "self": {
      "href": "/rest/2/vendors/1211323"
    },
    "alternate": {
      "href": "/vendors/1211323",
      "type": "text/html"
    },
    "addons": {
      "href": "/rest/2/addons/vendor/1211323"
    },
    "contacts": {
      "href": "/rest/2/vendors/1211323/contacts"
    }
  },
  "_embedded": {},
  "name": "'\"><svg/onload=prompt(0);>",
  "description": "'\"><svg/onload=prompt(0);>",
  "address": {
    "line1": "'\"><svg/onload=prompt(0);>",
    "line2": "'\"><svg/onload=prompt(0);>",
    "city": "'\"><svg/onload=prompt(0);>",
    "state": "'\"><svg/onload=prompt(0);>",
    "postCode": "'\"><svg/onload=prompt(0);>",
    "country": "Azerbaijan"
  },
  "email": "x@yahoo.com",
  "phone": "'\"><svg/onload=prompt(0);>",
  "vendorLinks": {
    "homePage": "https://marketplace.atlassian.com/manage/vendor/create",
    "sla": "https://marketplace.atlassian.com/manage/vendor/create"
  },
  "supportDetails": {
    "supportOrg": {
      "name": "'\"><svg/onload=prompt(0);>",
      "supportUrl": "https://marketplace.atlassian.com/manage/vendors/1211323/details#supportUrl"
    }
  },
  "otherContactDetails": "'\"><svg/onload=prompt(0);>"
}

The <svg ...> tags seems very strange. Don't know if this is a bug or not?

regards,

Wim

1 answer

1 accepted

0 votes
Accepted answer

Not a bug, looks like just someone messing around testing the API. I presume the pseudo-tag strings were meant to test whether HTML escaping behaves correctly. We'll remove this listing and will ask the user not to do this.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,281 views 0 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you