3 ms·
$ x='() { :;}; echo vulnerable' bash -c 'echo test' vulnerable test $ pacman -Syu ... $ x='() { :;}; echo vulnerable' bash -c 'echo test'
by chjj 12y ago
$ x='() { :;}; echo vulnerable' bash -c 'echo test'
vulnerable
test
$ pacman -Syu
...
$ x='() { :;}; echo vulnerable' bash -c 'echo test'
bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'
test
Benefits of using an OS with a real package manager.
- tinco 12y agoJust don't turn it off after you've ran `pacman -Syu`, it will never boot again ;)
- thevdude 12y agoI know you're just teasing, but I've got a machine with an arch install from over two years ago that's still running great. Just did an -Syyu to get bash updated.
- antocv 12y agoThe trick is to keep up with the updates, do pacman -Syu every two weeks or so, and not wait months.
- alexbecker 12y agoAfter it happened 5 times in a row, I finally just aliased pacman -Syu to "breakX".