AskF5 Knowledge Base

Applies To:

Show Versions Show Versions

sol2232: checktrap.pl script may be vulnerable to remote command execution
Security AdvisorySecurity Advisory

Original Publication Date: 05/16/2007
Updated Date: 09/13/2010

Note: Versions that are not listed in this Solution have not been evaluated for vulnerability to this security advisory. For information about F5 Networks' security policy regarding evaluating older and unsupported versions of F5 Networks products, see SOL4602: Overview of F5 Networks security vulnerability response policy.

F5 Networks products and versions that have been evaluated for this Security Advisory

Product Affected Not Affected
BIG-IP / 3-DNS 4.6.0 - 4.6.2
4.5.0 - 4.5.11
4.6.3 - 4.6.4
4.5.12 - 4.5.14
BIG-IP LTM None 9.x
10.x
BIG-IP GTM None 9.x
10.x
BIG-IP ASM None 9.x
10.x
BIG-IP Link Controller None 9.x
10.x
BIG-IP WebAccelerator None 9.x
10.x
BIG-IP PSM None 9.x
10.x
BIG-IP WAN Optimization None 10.x
BIG-IP APM None 10.x
BIG-IP Edge Gateway None 10.x
BIG-IP SAM None 8.0.0
FirePass None 3.x
4.x
5.x
6.x
7.x
Enterprise Manager None 1.x
2.x
ARX None 2.x
3.x
4.x
5.x

The checktrap.pl script may be vulnerable to remote command execution.

F5 Networks Product Development tracked this issue as CR35371 and CR35372, and it was fixed in BIG-IP and 3-DNS version 4.5.12 for the 4.5 software branches and in version 4.6.3 for the 4.6 software branches.

Obtaining and installing patches

BIG-IP and 3-DNS versions 4.6.0 through 4.6.2

Important: The system will reboot as soon as it installs the patch. Install this patch only on a system that is in standby mode.

To download and install the patch, perform the following procedure:

  1. Open the F5 Networks Downloads page in a browser.
  2. Navigate to the BIG-IP >> BIG-IP v4.x >> BIG-IP 4.6.x section.
  3. Click checktrap and download the checktrap-4.6x-BIG_IP.im file.

    For information about how to download software, refer to SOL167: Downloading software from F5 Networks.

  4. Verify the MD5 checksum of the patch, by typing the following command:

    md5 checktrap-4.6x-BIG_IP.im

    Output similar to the following example should appear:

    0b4d7c354355c47d0fe06189ca737290 checktrap-4.6x-BIG_IP.im

  5. Install the patch by typing the following command:

    im checktrap-4.6x-BIG_IP.im

BIG-IP and 3-DNS versions 4.5.0 through 4.5.10

Important: The system will reboot as soon as it installs the patch. Install this patch only on a system that is in standby mode.

To download and install the patch, perform the following procedure:

  1. Open the F5 Networks Downloads page in a browser.
  2. Navigate to the BIG-IP >> BIG-IP v4.x >> BIG-IP 4.5.x section.
  3. Click checktrap and download the checktrap-4.5x-BIG_IP.im file.

    For information about how to download software, refer to SOL167: Downloading software from F5 Networks.

  4. Verify the MD5 checksum of the patch, by typing the following command:

    md5 checktrap-4.5x-BIG_IP.im

    Output similar to the following example should appear:

    0b4d7c354355c47d0fe06189ca737290 checktrap-4.5x-BIG_IP.im

  5. Install the patch by typing the following command:

    im checktrap-4.5x-BIG_IP.im
     

Workaround

To protect controllers that are configured with SNMP traps, upgrade to the most recent version of BIG-IP or 3-DNS.

If upgrading or applying a patch is not an immediate option, you can work around this issue by performing the following two procedures.

Note: This workaround will supply you with the same protection as applying the patch.

Disabling syslog messages

To disable syslog messages to the /var/run/trapper file, perform the following procedure:

  1. Using a text editor, edit the /etc/syslog.conf file.
  2. Look toward the bottom of the file for lines that appear similar to the following example:

    local0.* /var/run/trapper local1.* /var/run/trapper

  3. If they exist, comment them out so that they appear similar to the following example:

    # local0.* /var/run/trapper # local1.* /var/run/trapper

  4. Save the file.
  5. Restart syslogd by typing the following command:

    kill -HUP `pidof syslogd`

Enabling port lockdown

Enabling port lockdown on any exposed VLAN will prevent a remote attacker from sending arbitrary text to the syslog facility. To enable port lockdown, perform the following procedure:

  1. View the current port lockdown status for a specific VLAN by typing the following command:

    bigpipe vlan <vlan name> show |grep lockdown

    For example:

    bigpipe vlan internal show |grep lockdown

    The output will show lockdown disabled or lockdown enabled and will appear similar to the following example:

    port_lockdown Disabled

  2. If disabled, enable port lockdown on the VLAN by typing the following command:

    bigpipe vlan port_lockdown enable

    For example:

    bigpipe vlan internal port_lockdown enable

  3. Save the new setting by typing the following command:

    bigpipe base save

 

Was this resource helpful in solving your issue?




NOTE: Please do not provide personal information.



Incorrect answer. Please try again: Please enter the words to the right: Please enter the numbers you hear:

Additional Comments (optional)