Linux System Bash Vulnerability Fixing Method

  

The Linux official built-in Bash newly discovered a very serious security vulnerability (click to view the vulnerability reference), and the hacker can use the Bash vulnerability to completely control the target system and launch an attack. It is recommended that Linux users fix this vulnerability as soon as possible!

Affected Systems •CentOS•Debian•Redhat•Ubuntu

Detection Methods

Use this command: env x='() { :;}; ' bash -c "echo this is a test"

If the output vulnerable this is a test

, this vulnerability exists.

After repairing, it will output


bash: warning: x: ignoring function definition attempt bash: error importing function definition for `x' this is a test

Solutions

Red Hat

This problem can be solved by updating bash and rebooting the system: yum update bash needs to be restarted after the update.

Ubuntuapt-get update apt-get install bash

Ubuntu does not require a reboot.

Copyright © Windows knowledge All Rights Reserved