
Salt recipe for shellshock (CVE-2014-6271)
======================
यह रेसिपी OS पैकेज से बैश को अपग्रेड करने का प्रयास करती है, और उन सिस्टमों पर बैश को कंपाइल करने का सहारा लेती है जहाँ कोई अपडेट उपलब्ध नहीं है।
हमारे लिए पुराने उबंटू/डेबियन पर काम करता है।
बैश इंस्टॉल स्क्रिप्ट यहाँ से: http://askubuntu.com/questions/528101/what-is-the-cve-2014-6271-bash-vulnerability-and-how-do-i-fix-it
इसे gitfs सॉल्ट फॉर्मूला के रूप में उपयोग किया जा सकता है:
fileserver_backend:
- roots
- git
gitfs_remotes:
- git://github.com/APSL/salt-shellshock.git
इसे चलाएँ:
$ sudo salt "oldubuntu" state.sls shellshock
बोनस: सॉल्ट से शेलशॉक का परीक्षण करें:
https://twitter.com/johan_moreau/status/515226448270213121
$ sudo salt -G 'kernel:Linux' cmd.run "env x='() { :;}; echo __bad' bash -c 'echo __good' 2>&1 |grep __"