CVE-2016-10661: Insecure Download of Resources in phantomjs-cheniu
Summary
CVE-2016-10661: Downloads Resources over HTTP in phantomjs-cheniu. Affects phantomjs-cheniu versions < 2.0.1. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
phantomjs-cheniu is an npm package that is a fork of Medium's phantomjs-prebuilt package. It is used for headless website testing and automation. The package allows users to run PhantomJS, a headless WebKit browser, programmatically. However, versions of phantomjs-cheniu prior to 2.0.1 insecurely download an executable over an unencrypted HTTP connection.
Vulnerability Detail
The vulnerability in phantomjs-cheniu arises from the insecure download of an executable over an unencrypted HTTP connection. This means that if an attacker has a privileged network position, they can intercept the response and replace the executable with a malicious one. This could lead to code execution on the system running phantomjs-cheniu. The vulnerability has a high severity rating and is classified under CWE-311.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
In summary, phantomjs-cheniu versions prior to 2.0.1 have a vulnerability that allows for the insecure download of an executable. There is currently no patch available, but the best mitigation is to install the Medium version of phantomjs-prebuilt. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for phantomjs-cheniu →
FAQ
phantomjs-cheniu is an npm package that allows users to run PhantomJS, a headless WebKit browser, programmatically.
The vulnerability allows an attacker to replace the downloaded executable with a malicious one, potentially leading to code execution on the system running phantomjs-cheniu.
No, there is currently no patch available for this vulnerability.
The recommended mitigation is to install the Medium version of phantomjs-prebuilt.
You can install the Medium version of phantomjs-prebuilt by running the following command: npm i phantomjs-prebuilt