The Cross-Site Scripting vulnerability
The Meow browser extension inserted pet names and reminder text into talk bubbles via innerHTML without sanitising them, and a content script forwarded any postMessage from any website to the extension's background page without checking the sender's origin. Any website could therefore set a malicious pet name or reminder remotely, causing JavaScript to run in the context of every site the victim visited, persistently across restarts.
Published on palant.info
What’s the worst possible vulnerability a browser extension could possibly have? If the extension connects to a local application, facilitating Remote Code Execution in that application would be pretty bad.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely two mistakes combined: the extension rendered user-controlled pet names and reminder text with innerHTML without sanitising it, and its content script forwarded postMessage data from any origin to the background page without verifying the sender.
Impact
A single visit to a malicious site could run attacker JavaScript in the context of every website the victim browsed, persistently, allowing data theft without the user noticing.
What the attacker needed
Victim visits a malicious website; extension installed and enabled; no user interaction beyond the visit
The fix
The talk bubble no longer allows HTML injection, the sync script now checks message origin, and the allowed messages were restricted; the extension was fixed in version 1.11.5.
How it was found
- Open a new window to a page on the game site where the content script loads.
- Send a postMessage to that window changing the pet name to a value containing HTML.
- Close the window so the user notices nothing.
- Optionally send further messages to make the pet visible and enable talking, or add a reminder whose text contains HTML.
- The injected code then runs whenever the pet talks on any website the user visits.
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 write-up has not been written yet. The Original tab links to the source.
A browser extension called Meow shows a cartoon pet on every page you visit. The extension trusted messages from any website and put text like the pet's name into the page as raw HTML, so a malicious site could slip in a small script. That script then ran on every site the user opened, and the change stuck even after restarting the browser.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.