CVE-2020-7758 Path Traversal
An attacker can read arbitrary files from the server by exploiting a path traversal vulnerability in the browserless-chrome workspace endpoint.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-7758?
CVE-2020-7758 is a high-severity path traversal vulnerability in browserless-chrome, published on 2 Nov 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
This affects versions of package browserless-chrome before 1.40.2-chrome-stable. User input flowing from the workspace endpoint gets used to create a file path filePath and this is fetched and then sent back to a user. This can be escaped to fetch arbitrary files from a server.
Weakness: CWE-22
Which versions are affected by CVE-2020-7758?
2 open source packages ship an affected version, including browserless-chrome. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
browserless-chrome npm | All versions | 1.43.0 |
browserless-chrome npm | All versions | 1.43.0 |
Products include Browserless Chrome.
How do I fix CVE-2020-7758?
Upgrade browserless-chrome to 1.43.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2020-7758 being exploited?
There is no known exploitation of CVE-2020-7758 in the wild and no public exploit code.
Sources
Also known as GHSA-8p9r-f949-699g, SNYK-JS-BROWSERLESSCHROME-1023657.