You may have heard about the latest vulnerability that is set to affect a majority of devices that run Mac OS X or Linux: LINK
Note: This does not affect devices running Microsoft Windows (for once!). Gobbledegook warning from this point onwards though!
If you are not interested in the technical details, but wish to test your system for vulnerability, simply fire up Bash (which is the the default shell for Mac OS X and Linux) and type the following:
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
If the system is vulnerable, the output will be:
vulnerable
this is a test
Note that although the vulnerability may exist it does not mean your system is affected, but that the likelihood of being exploited is very high. As such, the remedy is to install any fixes/patches that your system vendor/provider will provide (or push down) to your device. These are meant to 'patch' your device against the said vulnerability. Once this is done, running the same test should result in the following:
An unaffected (or patched) system will output:
bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'
this is a test
If you have got down this far then you certainly are keen, so well done :approve:
Note: This does not affect devices running Microsoft Windows (for once!). Gobbledegook warning from this point onwards though!
If you are not interested in the technical details, but wish to test your system for vulnerability, simply fire up Bash (which is the the default shell for Mac OS X and Linux) and type the following:
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
If the system is vulnerable, the output will be:
vulnerable
this is a test
Note that although the vulnerability may exist it does not mean your system is affected, but that the likelihood of being exploited is very high. As such, the remedy is to install any fixes/patches that your system vendor/provider will provide (or push down) to your device. These are meant to 'patch' your device against the said vulnerability. Once this is done, running the same test should result in the following:
An unaffected (or patched) system will output:
bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'
this is a test
If you have got down this far then you certainly are keen, so well done :approve: