Remote Code Execution Affecting curling package, versions *
Snyk CVSS
Attack Complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Threat Intelligence
Exploit Maturity
Proof of concept
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-CURLING-1060043
- published 14 Jan 2021
- disclosed 14 Jan 2021
- credit Alexey Solovyev
How to fix?
There is no fixed version for curling
.
Overview
curling is a node wrapper for curl with a very simple api.
Affected versions of this package are vulnerable to Remote Code Execution. The regular expression in run()
in lib/curl-transport.js does not perform proper validation. Combined with curl, this can lead to the injection of arbitrary commands.
PoC
const curling = require('curling');
curling.run('file:///etc/passwd -o ./index.js', function(d, payload){console.log(payload)});