> For the complete documentation index, see [llms.txt](https://prosbcdocs.telcobridges.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prosbcdocs.telcobridges.com/tmedia-documentation/server-and-os-administration/shellshock-the-gnu-bash-injection-vulnerability.md).

# ShellShock : The GNU Bash Injection Vulnerability

On September 24 2014, a vulnerability named "ShellShock" in the Bash shell was publicly announced. ShellShock is registered in the Common Vulnerabilities and Exposures system as **CVE-2014-6271** and **CVE-2014-7169**. The vulnerability is related to the way in which shell functions are passed though environment variables. The vulnerability may allow an attacker to inject commands into a Bash shell, depending on how the shell is invoked. The Bash shell may be invoked by a number of processes including, but not limited to, telnet, SSH, DHCP, and scripts hosted on web servers.

## Affected Products

* TMG800, TMG3200, TMG7800-CTRL
* Tdev Linux server with (CentOS, RedHat, etc) running Toolpack software

## Details

The impact of this vulnerability on TelcoBridges products may vary depending on the attack vector. TelcoBridges performed tests using HTTP vectors and confirm that the ShellShock vulnerability **cannot** be exploited against Toolpack web portal. The ShellShock might be performed throughout an SSH attack vector, which require successful authentication to be exploited and may not result in any additional privileges granted to the user.

## Software Versions and Fixes

TelcoBridges CentOS 5 repository have been updated with the latest Bash version.

## Update procedure

### WebPortal - TMG unit or Linux server **with access to Internet** (i.e. with DNS configured)

1. login onto the WebPortal
2. Select the 'Hosts' section
3. Click on the hostname
4. Click on the 'Status' tab
5. Select 'Upgrade Linux packages' into the host 'Control Action'
6. Click on the 'Apply action' button
7. Repeat the process for all hosts listed

### Command line interface - TMG unit or Linux server **with access to Internet** (i.e. with DNS configured)

1. login with root account \[root\@TB011107 \~]# uname -m x86\_64 If the result is not "x86\_64", [please contact TelcoBridges](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/misc/contacting-telcobridges-technical-support/README.md) support, otherwise you can proceed with the method below.
2. update OS packages with yum yum clean all yum update

### TMG unit or Linux server **without access to Internet**

1. download [bash-3.2-33.el5\_11.4.x86\_64.rpm](http://repo.telcobridges.com/centos/5/updates/x86_64/RPMS/bash-3.2-33.el5_11.4.x86_64.rpm) to your PC
2. Using WinSCP or similar tool, upload the file to the TMG unit using the root account
3. login with root account
4. Install package yum localinstall bash-3.2-33.el5\_11.4.x86\_64.rpm **Note**: that operation might take a long time since yum will probably experience timeouts when trying to access the external repositories.

## How to verify if the vulnerability is fixed?

1. login with root account
2. execute the following test command env x='() { :;}; echo vulnerable' bash -c 'echo this is a test' **You should not see the 'vulnerable' string displayed**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://prosbcdocs.telcobridges.com/tmedia-documentation/server-and-os-administration/shellshock-the-gnu-bash-injection-vulnerability.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
