xss in link items (mopub.com)
A stored cross-site scripting flaw existed in the link items feature of mopub.com, where a click URL field accepted a javascript scheme. An attacker could inject script that executes in the sessions of other users invited to the same inventory, allowing session hijacking.
Originally disclosed on HackerOne
- Triaged in 4 days
- Fixed in 7 months
- Paid in 12 days
- Disclosed after 7 months
Hi,
1)go link items and select text,tile 2)enter image and give click url as javascript://%0a%0dalert(document.cookie) 3)xss pop's up it is not a self xss because admin can invite many people to his inventory and there sessions can be hijacked. regards prashanth dups team :)
Attachments


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 run script in the browsers of other users who share the inventory, potentially hijacking their sessions.
What the attacker needed
Access to create link items; victim views the crafted link item
How it was found
- Go to link items and select the text or tile option.
- Enter an image and set the click URL to a javascript scheme payload.
- The script executes and an alert shows the document cookie.
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.
Cross-site scripting (XSS) is when a website lets someone put code into a page that then runs in another person's browser. Here, a field meant for a web link accepted a special kind of link that runs JavaScript instead of opening a page. Because other people could view the same inventory, their browsers could run that code and their login cookies could be stolen.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.