-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2017.2672
K74759095: SafeNet External Network HSM script vulnerability CVE-2017-6165
                              24 October 2017

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           F5 products
Publisher:         F5 Networks
Operating System:  Network Appliance
Impact/Access:     Access Privileged Data -- Existing Account
Resolution:        Patch/Upgrade
CVE Names:         CVE-2017-6165  

Original Bulletin: 
   https://support.f5.com/csp/article/K74759095

- --------------------------BEGIN INCLUDED TEXT--------------------

K74759095: SafeNet External Network HSM script vulnerability CVE-2017-6165

Security Advisory

Original Publication Date: Oct 20, 2017

Security Advisory Description

On VIPRION platforms only, the script which synchronizes SafeNet External
Network HSM configuration elements between blades in a clustered deployment
will log the HSM partition password in cleartext to the "/var/log/ltm" log
file. (CVE-2017-6165)

Impact

An attacker with access to the logged password may be able to cause disruption
of service or have other impacts on the HSM partition.

Security Advisory Status

F5 Product Development has assigned ID 580026 (BIG-IP) to this vulnerability,
and has evaluated the currently supported releases for potential vulnerability.

To determine if your release is known to be vulnerable, the components or
features that are affected by the vulnerability, and for information about
releases or hotfixes that address the vulnerability, refer to the following
table:

+---------------+----------------+-----------------+----------+----------------+
|               |Versions known  |Versions known to|          |Vulnerable      |
|Product        |to be vulnerable|be not vulnerable|Severity  |component or    |
|               |                |                 |          |feature         |
+---------------+----------------+-----------------+----------+----------------+
|               |12.0.0 - 12.1.2 |13.0.0*          |          |                |
|               |11.6.0 - 11.6.1 |12.1.2 HF1*      |          |                |
|BIG-IP LTM     |HF1             |11.6.1 HF2*      |High      |safenet-sync.sc |
|               |11.5.1 HF6 -    |11.5.5*          |          |script          |
|               |11.5.4          |11.0.0 - 11.5.1  |          |                |
|               |                |HF5              |          |                |
+---------------+----------------+-----------------+----------+----------------+
|               |12.0.0 - 12.1.2 |13.0.0*          |          |                |
|               |11.6.0 - 11.6.1 |12.1.2 HF1*      |          |                |
|BIG-IP AAM     |HF1             |11.6.1 HF2*      |High      |safenet-sync.sc |
|               |11.5.1 HF6 -    |11.5.5*          |          |script          |
|               |11.5.4          |11.4.0 - 11.5.1  |          |                |
|               |                |HF5              |          |                |
+---------------+----------------+-----------------+----------+----------------+
|               |12.0.0 - 12.1.2 |13.0.0*          |          |                |
|               |11.6.0 - 11.6.1 |12.1.2 HF1*      |          |                |
|BIG-IP AFM     |HF1             |11.6.1 HF2*      |High      |safenet-sync.sc |
|               |11.5.1 HF6 -    |11.5.5*          |          |script          |
|               |11.5.4          |11.3.0 - 11.5.1  |          |                |
|               |                |HF5              |          |                |
+---------------+----------------+-----------------+----------+----------------+
|               |12.0.0 - 12.1.2 |13.0.0*          |          |                |
|               |11.6.0 - 11.6.1 |12.1.2 HF1*      |          |                |
|BIG-IP         |HF1             |11.6.1 HF2*      |High      |safenet-sync.sc |
|Analytics      |11.5.1 HF6 -    |11.5.5*          |          |script          |
|               |11.5.4          |11.0.0 - 11.5.1  |          |                |
|               |                |HF5              |          |                |
+---------------+----------------+-----------------+----------+----------------+
|               |12.0.0 - 12.1.2 |13.0.0*          |          |                |
|               |11.6.0 - 11.6.1 |12.1.2 HF1*      |          |                |
|BIG-IP APM     |HF1             |11.6.1 HF2*      |High      |safenet-sync.sc |
|               |11.5.1 HF6 -    |11.5.5*          |          |script          |
|               |11.5.4          |11.0.0 - 11.5.1  |          |                |
|               |                |HF5              |          |                |
+---------------+----------------+-----------------+----------+----------------+
|               |12.0.0 - 12.1.2 |13.0.0*          |          |                |
|               |11.6.0 - 11.6.1 |12.1.2 HF1*      |          |                |
|BIG-IP ASM     |HF1             |11.6.1 HF2*      |High      |safenet-sync.sc |
|               |11.5.1 HF6 -    |11.5.5*          |          |script          |
|               |11.5.4          |11.0.0 - 11.5.1  |          |                |
|               |                |HF5              |          |                |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IP DNS     |12.0.0 - 12.1.2 |13.0.0*          |High      |safenet-sync.sc |
|               |                |12.1.2 HF1*      |          |script          |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IP Edge    |None            |11.0.0 - 11.3.0  |Not       |None            |
|Gateway        |                |                 |vulnerable|                |
+---------------+----------------+-----------------+----------+----------------+
|               |11.6.0 - 11.6.1 |11.6.1 HF2*      |          |                |
|BIG-IP GTM     |HF1             |11.5.5*          |High      |safenet-sync.sc |
|               |11.5.1 HF6 -    |11.0.0 - 11.5.1  |          |script          |
|               |11.5.4          |HF5              |          |                |
+---------------+----------------+-----------------+----------+----------------+
|               |12.0.0 - 12.1.2 |13.0.0*          |          |                |
|               |11.6.0 - 11.6.1 |12.1.2 HF1*      |          |                |
|BIG-IP Link    |HF1             |11.6.1 HF2*      |High      |safenet-sync.sc |
|Controller     |11.5.1 HF6 -    |11.5.5*          |          |script          |
|               |11.5.4          |11.0.0 - 11.5.1  |          |                |
|               |                |HF5              |          |                |
+---------------+----------------+-----------------+----------+----------------+
|               |12.0.0 - 12.1.2 |13.0.0*          |          |                |
|               |11.6.0 - 11.6.1 |12.1.2 HF1*      |          |                |
|BIG-IP PEM     |HF1             |11.6.1 HF2*      |High      |safenet-sync.sc |
|               |11.5.1 HF6 -    |11.5.5*          |          |script          |
|               |11.5.4          |11.3.0 - 11.5.1  |          |                |
|               |                |HF5              |          |                |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IP PSM     |None            |11.0.0 - 11.4.1  |Not       |None            |
|               |                |                 |vulnerable|                |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IP         |None            |11.0.0 - 11.3.0  |Not       |None            |
|WebAccelerator |                |                 |vulnerable|                |
+---------------+----------------+-----------------+----------+----------------+
|               |12.0.0 - 12.1.2 |13.0.0           |          |safenet-sync.sc |
|BIG-IP Websafe |11.6.0 - 11.6.1 |12.1.2 HF1*      |High      |script          |
|               |HF1             |11.6.1 HF2*      |          |                |
+---------------+----------------+-----------------+----------+----------------+
|ARX            |None            |6.0.0 - 6.4.0    |Not       |None            |
|               |                |                 |vulnerable|                |
+---------------+----------------+-----------------+----------+----------------+
|Enterprise     |None            |3.0.0 - 3.1.1    |Not       |None            |
|Manager        |                |                 |vulnerable|                |
+---------------+----------------+-----------------+----------+----------------+
|FirePass       |None            |7.0.0            |Not       |None            |
|               |                |6.0.0 - 6.1.0    |vulnerable|                |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IQ Cloud   |None            |4.0.0 - 4.5.0    |Not       |None            |
|               |                |                 |vulnerable|                |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IQ Device  |None            |4.2.0 - 4.5.0    |Not       |None            |
|               |                |                 |vulnerable|                |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IQ Security|None            |4.0.0 - 4.5.0    |Not       |None            |
|               |                |                 |vulnerable|                |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IQ ADC     |None            |4.5.0            |Not       |None            |
|               |                |                 |vulnerable|                |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IQ         |                |                 |Not       |                |
|Centralized    |None            |4.6.0            |vulnerable|None            |
|Management     |                |                 |          |                |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IQ Cloud   |                |                 |Not       |                |
|and            |None            |1.0.0            |vulnerable|None            |
|Orchestration  |                |                 |          |                |
+---------------+----------------+-----------------+----------+----------------+
|LineRate       |None            |2.5.0 - 2.6.1    |Not       |None            |
|               |                |                 |vulnerable|                |
+---------------+----------------+-----------------+----------+----------------+
|F5 WebSafe     |None            |1.0.0            |Not       |None            |
|               |                |                 |vulnerable|                |
+---------------+----------------+-----------------+----------+----------------+
|Traffix SDC    |None            |4.0.0 - 4.4.0    |Not       |None            |
|               |                |3.3.2 - 3.5.1    |vulnerable|                |
+---------------+----------------+-----------------+----------+----------------+

* Upgrading an affected system to a fixed version will not eliminate any
existing exposure. In addition to upgrading to a fixed version, you should also
perform the mitigation steps listed in the following Security Advisory
Recommended Actions section.

Security Advisory Recommended Actions

If you are running a version listed in the Versions known to be vulnerable
column, you can eliminate this vulnerability by upgrading to a version listed
in the Versions known to be not vulnerable column. If the table lists only an
older version than what you are currently running, or does not list a
non-vulnerable version, then no upgrade candidate currently exists.

To mitigate this vulnerability, you can remove any affected messages from the /
var/log/ltm log file that appear similar to the following examples:

/bin/sh /usr/bin/safenet-sync.sh -p <PASSWORD> ==> /usr/bin/bigstart restart
pkcs11d
/bin/sh /usr/bin/safenet-sync.sh -p <PASSWORD> ==> /usr/bin/bigstart restart
tmm
/bin/sh /usr/bin/safenet-sync.sh -p <PASSWORD> ==> /usr/bin/bigstart restart
pkcs11d
/bin/sh /usr/bin/safenet-sync.sh -p <PASSWORD> ==> /usr/bin/bigstart restart
tmm

In addition to the current /var/log/ltm file, you should also delete or scrub
any ltm log files that have been rotated (ltm.1.gz, ltm.2.gz,etc.), and any
other files that may contain affected ltm log files, such as qkview files, or
log files that have been backed up to an alternate location.

Important: If you believe the password may have been compromised, you can
change the password on the Safenet HSM device and in the BIG-IP configuration.
To do so refer to K16350062: Changing the SafeNet HSM partition password.

Supplemental Information

  o BIG-IP System and SafeNet Luna SA HSM: Implementation guide
  o The About external HSMs and LTM chapter of the BIG-IP Platform FIPS
    Administration guide
    Note: For information about how to locate F5 product manuals, refer to
    K12453464: Finding product documentation on AskF5.
  o K9970: Subscribing to email notifications regarding F5 products
  o K9957: Creating a custom RSS feed to view new and updated documents
  o K4602: Overview of the F5 security vulnerability response policy
  o K4918: Overview of the F5 critical issue hotfix policy
  o K167: Downloading software and firmware from F5
  o K13123: Managing BIG-IP product hotfixes (11.x - 13.x)

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBWe6XCox+lLeg9Ub1AQhIug//eljpsAU+NSH5nje/tAk1NVHoaRIMn8FR
dm3415UskGQNmpMgXDKytIcNdc7VoT3V4kYp3HUETPBP+HTy3OwWHX7n27TaDiyr
G2Wb6dhfMVq7O7lSfbVTr8mpfjYkxwJp8uWVnrAiKQX0tUcCXZuHvmp2O1PeSPjs
lYdg/cZ60UY7dEcpZvjyJDTpPAS1jIAaGcrJiSoMexq5/KTXtwPpZdsoKPSq1zqq
twpZFWduA/ft14w+Lt6gzK4U+PHdzWwNUxcDhhTpEwF4EhjlYVVk3+DrOsCS4yV/
Xs70MrpVe90Bwfi3D7hq7Kx8x2AU4wQlz8fAPR2YS8VaBDddH99oASkwxVf6tv6y
uyOdTbrw7bAQpNl9RfkS9GPvqw9mezti0/Gg54UiS51nF0HxQSNVVsqZTJyywiWo
FIAjzHYzrL62vvnwgdjMCesufpuN7FAJCUQiTZ3mqitAUj8lPSPaFQXT4Uhs8JdM
khoTcsURvmeeBIW89rMLbYggmZlEKCmG8/DOlt4tLFVT1mnTX1IFHHq1zKSOcUJx
EO7bXfrrP0iEXaYWz2mxQV35z/MZ/J9owGo3B6B0bT1HRLKhwbj7W0vaJaFK73s2
woACiMvt8la2dlXNN/ltvsdmSImF4Zvu3JH3Vu42mrj8g+Go6E5hp7AVyDcS6j/K
ok6n/CMqUVI=
=zEZI
-----END PGP SIGNATURE-----