Get the App
SLTechnology News&Howtos  ›  Network Security  › 

How to deal with bash loophole

Shulou Source: shulou.com Published: 2022-05-31 23:45:02 10月03日 Update

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!

Tags: Vulnerabilities processing methods that is articles software software packages updates again commands done more knowledge results industry information information channels channels testing Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Tech Info Xiaomi Docker MySQL