A story of a UXSS via DOM XSS clickjacking in steam inventory helper
The Steam Inventory Helper Chrome extension had a DOM-based XSS in its bookmarks page, which was reachable from any web page because the page was listed in web_accessible_resources. Combined with clickjacking, an attacker could trick a victim into pasting a payload and clicking Add, gaining script execution in the extension's privileged context and thereby hijacking all sites the victim was logged into.
Published on thehackerblog.com
The “Steam Inventory Helper” Chrome extension version 1.13.6 suffered from both a DOM-based Cross-site Scripting (XSS) and a clickjacking vulnerability. By combining these vulnerabilities it is possible to gain JavaScript code execution in the highly-privileged context of the extension’s background page.
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 the bookmarks page built HTML by concatenating the user-supplied name into jQuery's .html()/.append(), and the extension exposed that page through web_accessible_resources, so any site could frame it and the loose CSP with 'unsafe-eval' allowed the injected script to run.
Impact
Because the extension held broad host permissions, the attacker could act on any site the victim was authenticated to, such as their bank, Steam, Gmail or Facebook; the text does not mention any defence that blocked this.
What the attacker needed
Victim has the extension installed; victim visits attacker page; victim pastes code and clicks Add
The fix
The vendor updated the extension to fix the vulnerabilities, and the write-up advises escaping user input, avoiding unsafe jQuery DOM APIs with 'unsafe-eval', and not exposing privileged pages via web_accessible_resources.
How it was found
- The attacker hosts a page that frames the extension's bookmarks page and overlays fake UI on top of it.
- The fake page offers a 'verification code' button that copies a long string containing the payload to the clipboard.
- The victim pastes the code into the extension's name field and clicks Add.
- The injected script runs in the extension's privileged context.
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 can run with special powers, such as reading pages on any site you are logged into. This extension had a page that inserted whatever text you typed into it as live web code instead of plain text, and other websites were allowed to display that page inside a frame. The attacker built a fake 'bot check' page that hid the malicious text inside a long code, so when you pasted it and clicked Add, the code ran with the extension's powers.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.