3 ms·
okay, let me make this little table. "VULN" denotes the test above (with sh rather than bash) detecting a vulnerable situation, "OK" means the test detects no v
by claudius 12y ago
okay, let me make this little table. "VULN" denotes the test above (with sh rather than bash) detecting a vulnerable situation, "OK" means the test detects no vulnerability.
sh → bash | bash vulnerable | VULN
sh → bash | bash fixed | OK
sh → dash | bash vulnerable | OK
sh → dash | bash fixed | OK
Why do you want to only test the first but not the third case? You can perfectly well have /bin/sh linked to dash and still be vulnerable, because e.g. dhclient calls a Bash script.
- muyuu 12y agoIt's not that you shouldn't test other things, but as one single test this was much better than calling directly to bash.