How to deal with bash loophole
Editor to share with you how to deal with bash loopholes, I hope you will gain something after reading this article, let's discuss it together!
Check to see if there are any bash vulnerabilities and execute them on the command line
# env echo this is a test'() {:;}; echo vulnerable' bash-c "echo this is a test"
If it appears
Vulnerable
This is a test
There is a bash loophole.
Simple solution:
# yum update bash
Test execution again by updating the bash package
# env echo this is a test'() {:;}; echo vulnerable' bash-c "echo this is a test"
As a result,
This is a test
Simple solution to openssl vulnerability
# yum update openssl
By updating the openssl package to the latest
After reading this article, I believe you have a certain understanding of "how to deal with bash vulnerabilities". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!