Don’t Scan My Website I: Exploiting an Old Version of Wappalyzer
Wappalyzer used Zombie.js with JSDom's dangerous script execution setting, allowing a malicious website to load local files via iframes and exfiltrate them. An attacker could read files from the victim's home directory, such as SSH keys, by hosting a crafted page that Wappalyzer scans.
medium.com
Published on medium.com
At work I had to vet different software detection solutions and one of them was Wappalyzer. Following the line of my previous research about scraping software being pwned by malicious websites (1) (2) and Wappalyzer being a tool analyzing third-party websites, the natural question was: would it be possible to be pwned…
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 use of Zombie.js with JSDom's runScripts set to 'dangerously' and no validation of resource loading from different protocols and origins.
Impact
An attacker could read arbitrary files from the victim's filesystem, including SSH keys, and exfiltrate them to a remote server.
What the attacker needed
Victim runs vulnerable Wappalyzer; victim scans attacker's website
The fix
The vulnerability was fixed by changing the web driver from Zombie.js to puppeteer in version 5.10.2 and 6.x.
How it was found
- Wappalyzer requests the malicious server.
- The malicious server returns a page that uses an iframe to load a local file and JavaScript to exfiltrate it.
- Wappalyzer renders the page, executes the JavaScript, and sends the exfiltrated data to the server.
- The malicious server receives the data, decodes it, and identifies the local user.
- The server responds with another page that exfiltrates the user's SSH key.
- Wappalyzer requests the second exfiltration endpoint, and the server returns an empty page to finish.
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.
Wappalyzer is a tool that scans websites to see what software they use. It used a fake browser that ran JavaScript from any site it visited, so a bad website could make it read files on your computer and send them back to the attacker.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.