CVE-2018-14732
Webpack.js Webpack-dev-server vulnerability
An issue was discovered in lib/Server.js in webpack-dev-server before 3.1.6. Attackers are able to steal developer's code because the origin of requests is not checked by the WebSocket server, which is used for HMR (Hot Module Replacement). Anyone can receive the HMR message sent by the WebSocket server via a ws://127.0.0.1:8080/ connection from any origin.
Affected products
Webpack-dev-server. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Webpack.js Webpack-dev-server runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/webpack/webpack-dev-server/commit/f18e5adf123221a1015be63e1ca2491ca45b8d10 · Patch
- blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20Messages · Exploit
- github.com/webpack/webpack-dev-server/issues/1445 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2018-14732
- cve.org/CVERecord?id=CVE-2018-14732
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.