PT-2019-15014 · Phantomjs · Phantomjs
Published
2019-11-05
·
Updated
2022-05-24
·
CVE-2019-17221
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
PhantomJS versions 2.1.1 and earlier
Description
The issue allows for arbitrary file read, demonstrated by an XMLHttpRequest for a
file:// URI. It 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 to read 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.Recommendations
As a temporary workaround, consider disabling the
page.open() function until a patch is available.
Restrict access to the webpage module to minimize the risk of exploitation.
Avoid using the file:// URI in the affected API endpoint until the issue is resolved.
At the moment, there is no information about a newer version that contains a fix for this vulnerability.Exploit
Files Accessible to External Parties
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Phantomjs