Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
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 applicationsThere is no fixed version for curling
.
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.
const curling = require('curling');
curling.run('file:///etc/passwd -o ./index.js', function(d, payload){console.log(payload)});