Linux marketplaces vulnerable to RCE and supply chain attacks
Pling-based marketplaces had a stored XSS that could be used to modify listings and spread like a worm, and the PlingStore Electron app had an RCE via a local WebSocket server that accepted commands from any website. An attacker could execute native code on a victim's machine while PlingStore was running.
positive.security
Published on positive.security
In the beginning of this year, we analyzed how popular desktop applications handle user supplied URIs and found code execution vulnerabilities in several of them. One of the applications I checked was the KDE Discover App Store, which did turn out to handle untrusted URIs in an insecure manner (CVE-2021-28117, KDE…
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 Pling platform failed to sanitise user-supplied HTML, and the ocs-manager WebSocket server lacked origin validation and authentication.
What the attacker needed
PlingStore running in background; victim visits malicious website; attacker can create a listing
The fix
The vulnerabilities were not fixed at the time of disclosure; the report recommends not running PlingStore and logging out of the marketplaces until fixes are available.
How it was found
- Create a listing on a Pling-based marketplace.
- Add an iframe and then a JavaScript payload in the HTML code section.
- Visit the malicious listing to trigger the stored XSS.
- For RCE, have the victim visit a malicious website while PlingStore is running.
- The website connects to the local WebSocket server and sends commands to download and execute an AppImage.
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 website that lets users post content did not properly clean what users submitted, so an attacker could insert JavaScript that runs in other users' browsers. Separately, a desktop app ran a local service that any website could talk to, allowing an attacker to make the app download and run a program.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.