CVE-2019-17221 PhantomJS Arbitrary File Read
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- Ubuntu
Description
PhantomJS through 2.1.1 has an arbitrary file read vulnerability, as demonstrated by an XMLHttpRequest for a file:// URI. The vulnerability exists in the page.open() function of the webpage module, which loads a specified URL and calls a given callback. An attacker can supply a specially crafted HTML file, as user input, that allows reading arbitrary files on the filesystem. For example, if page.render() is the function callback, this generates a PDF or an image of the targeted file. NOTE: this product is no longer developed.
Upgrade path
5 packages: 2 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/phantomjs(Ubuntu 16.04) | = 1.9.0-1; = 2.0.0+dfsg-1; = 2.1.1+dfsg-1; All versions | No fix listed | No fix yet |
| ubuntu/phantomjs(Ubuntu 18.04) | = 2.1.1+dfsg-2; All versions | No fix listed | No fix yet |
| ubuntu/phantomjs(Ubuntu 20.04) | = 2.1.1+dfsg-2; = 2.1.1+dfsg-2ubuntu1; All versions | No fix listed | No fix yet |
| npm phantomjs(npm) | <= 2.1.1 | after 2.1.1 | Fixed |
| phantomjs | <= 2.1.1 | after 2.1.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm phantomjs(npm) | <= 2.1.1 | No fix listed |
| phantomjs | <= 2.1.1 | No fix listed |
| ubuntu/phantomjs(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/phantomjs(Ubuntu:16.04) | = 1.9.0-1 | No fix listed |
| ubuntu/phantomjs(Ubuntu:16.04) | = 2.0.0+dfsg-1 | No fix listed |
| ubuntu/phantomjs(Ubuntu:16.04) | = 2.1.1+dfsg-1 | No fix listed |
| ubuntu/phantomjs(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/phantomjs(Ubuntu:18.04) | = 2.1.1+dfsg-2 | No fix listed |
| ubuntu/phantomjs(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/phantomjs(Ubuntu:20.04) | = 2.1.1+dfsg-2 | No fix listed |
| ubuntu/phantomjs(Ubuntu:20.04) | = 2.1.1+dfsg-2ubuntu1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- web.archive.org
- github.com
- www.darkmatter.ae exploit issue-tracking third-party-advisory
- github.com product
- ubuntu.com issue-tracking
- www.cve.org issue-tracking