Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Strange data in marketplace api

Wim Deblauwe
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 25, 2016

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
Answer accepted
elibishop
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 26, 2016

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
TAGS
AUG Leaders

Atlassian Community Events