Advisory Information
The Overwolf client's custom URL handler reflected unsanitised input from the CATEGORY portion of the URL into the DOM, leading to reflected XSS. By chaining this with exposed Overwolf JavaScript APIs, an attacker could write and execute a batch file, achieving remote code execution.
swordbytes.com
Published on swordbytes.com
Overwolf is a software platform designed to help developers create extensions for video games, which are then offered to users through Overwolf’s App Store. The platform was created by Overwolf Ltd., and extensions are often focused on providing in-game services that would normally require a user to exit the game…
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 application failed to sanitise user-controlled input from the custom URL scheme before inserting it into the DOM, and exposed powerful APIs to that context.
Impact
An attacker could execute arbitrary commands on the victim's computer, but the victim must click a malicious link.
What the attacker needed
Victim clicks a malicious link; Overwolf client installed
The fix
The vulnerability was fixed by Overwolf in a hotfix released on 2021-05-27.
How it was found
- The victim opens the URL which invokes the Overwolf Store application and the XSS payload is triggered.
- A new batch file is written to disk inside the C:\windows\temp\ folder by leveraging the writeFileContents method.
- The openUrlInDefaultBrowser method is used to execute the .bat file created in the previous step, achieving the Remote Code Execution.
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.
Overwolf is a gaming app that uses special links (like overwolfstore://) to open its store. The app took part of the link and put it directly into a web page without cleaning it, so an attacker could insert their own code. That code could then use Overwolf's own features to create and run a file on the victim's computer.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.