ESB-2018.2686 - [Appliance] F5 Products: Multiple vulnerabilities 2018-09-10

Printable version
PGP/GPG verifiable version

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

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

                               ESB-2018.2686
                       Multiple PCRE vulnerabilities
                             10 September 2018

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

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

Product:           Big-IP
                   Big-IQ
                   Enterprise Manager
                   LineRate
                   Traffix SDC
Publisher:         F5 Networks
Operating System:  Network Appliance
Impact/Access:     Execute Arbitrary Code/Commands -- Remote/Unauthenticated
                   Access Privileged Data          -- Remote/Unauthenticated
                   Modify Arbitrary Files          -- Remote/Unauthenticated
                   Denial of Service               -- Remote/Unauthenticated
Resolution:        Patch/Upgrade
CVE Names:         CVE-2015-8395 CVE-2015-8394 CVE-2015-8392
                   CVE-2015-8391 CVE-2015-8390 CVE-2015-8389
                   CVE-2015-8388 CVE-2015-8387 CVE-2015-8386
                   CVE-2015-8385 CVE-2015-8384 CVE-2015-8383
                   CVE-2015-8382 CVE-2015-8381 CVE-2015-8380
                   CVE-2015-3217 CVE-2015-2328 CVE-2015-2327

Reference:         ASB-2016.0072
                   ASB-2016.0024
                   ESB-2016.0255
                   ESB-2015.2365.2

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

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

K20225390: Multiple PCRE vulnerabilities

Security Advisory  

Original Publication Date: Feb 05, 2016
Updated Date: Sep 06, 2018

Applies to (see versions):

  o Product: BIG-IQ
      - 4.X.X
  o Product: BIG-IP
      - 13.1.0, 13.0.1, 13.0.0, 12.1.3, 12.1.2, 12.1.1, 12.1.0, 12.0.0, 11.6.3,
        11.6.2, 11.6.1, 11.6.0, 11.5.6, 11.5.5, 11.5.4, 11.5.3, 11.5.2, 11.5.1,
        11.5.0, 11.4.1, 11.4.0, 11.3.0, 11.2.1, 11.2.0, 11.1.0, 11.0.0, 10.2.X,
        10.1.X
  o Product: F5 Silverline
      - 1.X.X
  o Product: Enterprise Manager
      - 3.X.X
  o Product: F5 MobileSafe
      - 1.X.X
  o Product: F5 WebSafe
      - 1.X.X
  o Product: Traffix SDC
      - 4.X.X, 3.X.X
  o Product: Legacy Products, FirePass, LineRate
      - 7.X.X, 6.1.X, 6.0.X, 2.X.X

Security Advisory Description

  o CVE-2015-8395

    PCRE before 8.38 mishandles certain references, which allows remote
    attackers to cause a denial of service or possibly have unspecified other
    impact via a crafted regular expression, as demonstrated by a JavaScript
    RegExp object encountered by Konqueror, a related issue to CVE-2015-8384
    and CVE-2015-8392.

  o CVE-2015-8394

    PCRE before 8.38 mishandles the (?() and (?(R) conditions, which allows
    remote attackers to cause a denial of service (integer overflow) or
    possibly have unspecified other impact via a crafted regular expression, as
    demonstrated by a JavaScript RegExp object encountered by Konqueror.

  o CVE-2015-8392

    PCRE before 8.38 mishandles certain instances of the (?| substring, which
    allows remote attackers to cause a denial of service (unintended recursion
    and buffer overflow) or possibly have unspecified other impact via a
    crafted regular expression, as demonstrated by a JavaScript RegExp object
    encountered by Konqueror, a related issue to CVE-2015-8384 and
    CVE-2015-8395.

  o CVE-2015-8391

    The pcre_compile function in pcre_compile.c in PCRE before 8.38 mishandles
    certain [: nesting, which allows remote attackers to cause a denial of
    service (CPU consumption) or possibly have unspecified other impact via a
    crafted regular expression, as demonstrated by a JavaScript RegExp object
    encountered by Konqueror.

  o CVE-2015-8390

    PCRE before 8.38 mishandles the [: and \\ substrings in character classes,
    which allows remote attackers to cause a denial of service (uninitialized
    memory read) or possibly have unspecified other impact via a crafted
    regular expression, as demonstrated by a JavaScript RegExp object
    encountered by Konqueror.

  o CVE-2015-8389

    PCRE before 8.38 mishandles the /(?:|a|){100}x/ pattern and related
    patterns, which allows remote attackers to cause a denial of service
    (infinite recursion) or possibly have unspecified other impact via a
    crafted regular expression, as demonstrated by a JavaScript RegExp object
    encountered by Konqueror.

  o CVE-2015-8388

    PCRE before 8.38 mishandles the /(?=di(?<=(?1))|(?=(.))))/ pattern and
    related patterns with an unmatched closing parenthesis, which allows remote
    attackers to cause a denial of service (buffer overflow) or possibly have
    unspecified other impact via a crafted regular expression, as demonstrated
    by a JavaScript RegExp object encountered by Konqueror.

  o CVE-2015-8387

    PCRE before 8.38 mishandles (?123) subroutine calls and related subroutine
    calls, which allows remote attackers to cause a denial of service (integer
    overflow) or possibly have unspecified other impact via a crafted regular
    expression, as demonstrated by a JavaScript RegExp object encountered by
    Konqueror.

  o CVE-2015-8386

    PCRE before 8.38 mishandles the interaction of lookbehind assertions and
    mutually recursive subpatterns, which allows remote attackers to cause a
    denial of service (buffer overflow) or possibly have unspecified other
    impact via a crafted regular expression, as demonstrated by a JavaScript
    RegExp object encountered by Konqueror.

  o CVE-2015-8385

    PCRE before 8.38 mishandles the /(?|(\k'Pm')|(?'Pm'))/ pattern and related
    patterns with certain forward references, which allows remote attackers to
    cause a denial of service (buffer overflow) or possibly have unspecified
    other impact via a crafted regular expression, as demonstrated by a
    JavaScript RegExp object encountered by Konqueror.

  o CVE-2015-8384

    PCRE before 8.38 mishandles the /(?J)(?'d'(?'d'\g{d}))/ pattern and related
    patterns with certain recursive back references, which allows remote
    attackers to cause a denial of service (buffer overflow) or possibly have
    unspecified other impact via a crafted regular expression, as demonstrated
    by a JavaScript RegExp object encountered by Konqueror, a related issue to
    CVE-2015-8392 and CVE-2015-8395.

  o CVE-2015-8383

    PCRE before 8.38 mishandles certain repeated conditional groups, which
    allows remote attackers to cause a denial of service (buffer overflow) or
    possibly have unspecified other impact via a crafted regular expression, as
    demonstrated by a JavaScript RegExp object encountered by Konqueror.

  o CVE-2015-8382

    The match function in pcre_exec.c in PCRE before 8.37 mishandles the /(?:
    ((abcd))|(((?:(?:(?:(?:abc|(?:abcdef))))b)abcdefghi)abc)|((*ACCEPT)))/
    pattern and related patterns involving (*ACCEPT), which allows remote
    attackers to obtain sensitive information from process memory or cause a
    denial of service (partially initialized memory and application crash) via
    a crafted regular expression, as demonstrated by a JavaScript RegExp object
    encountered by Konqueror, aka ZDI-CAN-2547.

  o CVE-2015-8381

    The compile_regex function in pcre_compile.c in PCRE before 8.38 and
    pcre2_compile.c in PCRE2 before 10.2x mishandles the /(?J:(?|(:(?|(?'R')(\
    k'R')|((?'R')))H'Rk'Rf)|s(?'R'))))/ and /(?J:(?|(:(?|(?'R')(\z(?|(?'R')(\
    k'R')|((?'R')))k'R')|((?'R')))H'Ak'Rf)|s(?'R')))/ patterns, and related
    patterns with certain group references, which allows remote attackers to
    cause a denial of service (heap-based buffer overflow) or possibly have
    unspecified other impact via a crafted regular expression, as demonstrated
    by a JavaScript RegExp object encountered by Konqueror.

  o CVE-2015-8380

    The pcre_exec function in pcre_exec.c in PCRE before 8.38 mishandles a //
    pattern with a \01 string, which allows remote attackers to cause a denial
    of service (heap-based buffer overflow) or possibly have unspecified other
    impact via a crafted regular expression, as demonstrated by a JavaScript
    RegExp object encountered by Konqueror.

  o CVE-2015-2328

    PCRE before 8.36 mishandles the /((?(R)a|(?1)))+/ pattern and related
    patterns with certain recursion, which allows remote attackers to cause a
    denial of service (segmentation fault) or possibly have unspecified other
    impact via a crafted regular expression, as demonstrated by a JavaScript
    RegExp object encountered by Konqueror.

  o CVE-2015-2327

    PCRE before 8.36 mishandles the /(((a\2)|(a*)\g<-1>))*/ pattern and related
    patterns with certain internal recursive back references, which allows
    remote attackers to cause a denial of service (segmentation fault) or
    possibly have unspecified other impact via a crafted regular expression, as
    demonstrated by a JavaScript RegExp object encountered by Konqueror.

  o CVE-2015-3217

    PCRE 7.8 and 8.32 through 8.37, and PCRE2 10.10 mishandle group empty
    matches, which might allow remote attackers to cause a denial of service
    (stack-based buffer overflow) via a crafted regular expression, as
    demonstrated by /^(?:(?(1)\\.|([^\\\\W_])?)+)+$/.

Impact

These vulnerabilities may allow remote attackers to cause a denial-of-service
(DoS) or possibly have unspecified other impact by way of a crafted regular
expression.

Important: When the BIG-IP ASM system is not provisioned, the attack vector
requires local user access and is considered a Low severity.

Security Advisory Status

F5 Product Development has assigned IDs 564111 and 565895 (BIG-IP), IDs 566040
and 566044 (BIG-IQ & Enterprise Manager), and ID 541509 (ARX) to this
vulnerability, and has evaluated the currently supported releases for potential
vulnerability. Additionally, BIG-IP iHealth may list Heuristic H570136 on the
Diagnostics > Identified > Low screen.

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         |
+---------------+----------------+-----------------+----------+----------------+
|               |                |13.0.0 - 13.1.0  |          |                |
|               |12.0.0 - 12.1.0 |12.1.1 - 12.1.3  |          |                |
|BIG-IP LTM     |11.6.0 - 11.6.1 |11.6.1 HF1 -     |Low       |PCRE library    |
|               |11.0.0 - 11.5.4 |11.6.3           |          |                |
|               |10.1.0 - 10.2.4 |11.5.4 HF2 -     |          |                |
|               |                |11.5.6           |          |                |
+---------------+----------------+-----------------+----------+----------------+
|               |                |13.0.0 - 13.1.0  |          |                |
|               |12.0.0 - 12.1.0 |12.1.1 - 12.1.3  |          |                |
|BIG-IP AAM     |11.6.0 - 11.6.1 |11.6.1 HF1 -     |Low       |PCRE library    |
|               |11.4.0 - 11.5.4 |11.6.3           |          |                |
|               |                |11.5.4 HF2 -     |          |                |
|               |                |11.5.6           |          |                |
+---------------+----------------+-----------------+----------+----------------+
|               |                |13.0.0 - 13.1.0  |          |                |
|               |12.0.0 - 12.1.0 |12.1.1 - 12.1.3  |          |                |
|BIG-IP AFM     |11.6.0 - 11.6.1 |11.6.1 HF1 -     |Low       |PCRE library    |
|               |11.3.0 - 11.5.4 |11.6.3           |          |                |
|               |                |11.5.4 HF2 -     |          |                |
|               |                |11.5.6           |          |                |
+---------------+----------------+-----------------+----------+----------------+
|               |                |13.0.0 - 13.1.0  |          |                |
|               |12.0.0 - 12.1.0 |12.1.1 - 12.1.3  |          |                |
|BIG-IP         |11.6.0 - 11.6.1 |11.6.1 HF1 -     |Low       |PCRE library    |
|Analytics      |11.0.0 - 11.5.4 |11.6.3           |          |                |
|               |                |11.5.4 HF2 -     |          |                |
|               |                |11.5.6           |          |                |
+---------------+----------------+-----------------+----------+----------------+
|               |                |13.0.0 - 13.1.0  |          |                |
|               |12.0.0 - 12.1.0 |12.1.1 - 12.1.3  |          |                |
|BIG-IP APM     |11.6.0 - 11.6.1 |11.6.1 HF1 -     |Low       |PCRE library    |
|               |11.0.0 - 11.5.4 |11.6.3           |          |                |
|               |10.1.0 - 10.2.4 |11.5.4 HF2 -     |          |                |
|               |                |11.5.6           |          |                |
+---------------+----------------+-----------------+----------+----------------+
|               |                |13.0.0 - 13.1.0  |          |                |
|               |12.0.0 - 12.1.0 |12.1.1 - 12.1.3  |          |                |
|BIG-IP ASM     |11.6.0 - 11.6.1 |11.6.1 HF1 -     |Medium    |PCRE library    |
|               |11.0.0 - 11.5.4 |11.6.3           |          |                |
|               |10.1.0 - 10.2.4 |11.5.4 HF2 -     |          |                |
|               |                |11.5.6           |          |                |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IP DNS     |12.0.0 - 12.1.0 |13.0.0 - 13.1.0  |Low       |PCRE library    |
|               |                |12.1.1 - 12.1.3  |          |                |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IP Edge    |11.0.0 - 11.3.0 |None             |Low       |PCRE library    |
|Gateway        |10.1.0 - 10.2.4 |                 |          |                |
+---------------+----------------+-----------------+----------+----------------+
|               |11.6.0 - 11.6.1 |11.6.1 HF1 -     |          |                |
|BIG-IP GTM     |11.0.0 - 11.5.4 |11.6.3           |Low       |PCRE library    |
|               |10.1.0 - 10.2.4 |11.5.4 HF2 -     |          |                |
|               |                |11.5.6           |          |                |
+---------------+----------------+-----------------+----------+----------------+
|               |                |13.0.0 - 13.1.0  |          |                |
|               |12.0.0 - 12.1.0 |12.1.1 -  |          |                |
|BIG-IP Link    |11.6.0 - 11.6.1 |12.1.3           |          |                |
|Controller     |11.0.0 - 11.5.4 |11.6.1 HF1 -     |Low       |PCRE library    |
|               |10.1.0 - 10.2.4 |11.6.3           |          |                |
|               |                |11.5.4 HF2 -     |          |                |
|               |                |11.5.6           |          |                |
+---------------+----------------+-----------------+----------+----------------+
|               |                |13.0.0 - 13.1.0  |          |                |
|               |                |12.1.1 -  |          |                |
|               |12.0.0 - 12.1.0 |12.1.3           |          |                |
|BIG-IP PEM     |11.6.0 - 11.6.1 |11.6.1 HF1 -     |Low       |PCRE library    |
|               |11.3.0 - 11.5.4 |11.6.3           |          |                |
|               |                |11.5.4 HF2 -     |          |                |
|               |                |11.5.6           |          |                |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IP PSM     |11.0.0 - 11.4.1 |None             |Low       |PCRE library    |
|               |10.1.0 - 10.2.4 |                 |          |                |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IP         |11.0.0 - 11.3.0 |None             |Low       |PCRE library    |
|WebAccelerator |10.1.0 - 10.2.4 |                 |          |                |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IP WOM     |11.0.0 - 11.3.0 |None             |Low       |PCRE library    |
|               |10.1.0 - 10.2.4 |                 |          |                |
+---------------+----------------+-----------------+----------+----------------+
|Enterprise     |3.0.0 - 3.1.1   |None             |Low       |PCRE library    |
|Manager        |                |                 |          |                |
+---------------+----------------+-----------------+----------+----------------+
|FirePass       |None            |7.0.0            |Not       |None            |
|               |                |6.0.0 - 6.1.0    |vulnerable|                |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IQ Cloud   |4.0.0 - 4.5.0   |None             |Low       |PCRE library    |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IQ Device  |4.2.0 - 4.5.0   |None             |Low       |PCRE library    |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IQ Security|4.0.0 - 4.5.0   |None             |Low       |PCRE library    |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IQ ADC     |4.5.0           |None             |Low       |PCRE library    |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IQ         |                |                 |          |                |
|Centralized    |4.6.0           |None             |Low       |PCRE library    |
|Management     |                |                 |          |                |
+---------------+----------------+-----------------+----------+----------------+
|BIG-IQ Cloud   |                |                 |          |                |
|and            |1.0.0           |None             |Low       |PCRE library    |
|Orchestration  |                |                 |          |                |
+---------------+----------------+-----------------+----------+----------------+
|LineRate       |2.5.0 - 2.6.1   |None             |Low       |PCRE library    |
+---------------+----------------+-----------------+----------+----------------+
|F5 WebSafe     |None            |1.0.0            |Not       |None            |
|               |                |                 |vulnerable|                |
+---------------+----------------+-----------------+----------+----------------+
|Traffix SDC    |4.0.0 - 4.4.0   |None             |Low       |PCRE library    |
|               |3.3.2 - 3.5.1   |                 |          |                |
+---------------+----------------+-----------------+----------+----------------+

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.

Mitigation for the BIG-IP ASM system

You can turn off the following list of features to mitigate these
vulnerabilities on the BIG-IP ASM system:

  o Disable attack signatures that contain PCRE. You can run the following
    command in the Advanced shell (bash) on the BIG-IP ASM system to determine
    the list of attack signatures that contain PCRE:

    Note: Root access to bash is required to run the following command.

    mysql -u root -p$(perl -MPassCrypt -nle 'print PassCrypt::decrypt_password
    ($_)' /var/db/mysqlpw) -e 'select sig_id, sig_name, rule from
    PLC.NEGSIG_SIGNATURES where rule like "%pcre%";'

    Once you have determined the list of affected attack signatures, you can
    disable an attack signature by performing the following procedure:

     1. Log in to the BIG-IP ASM Configuration utility.
     2. Navigate to Security > Application Security > Attack Signatures.
     3. Locate the affected attack signature.

        You can use the Advanced Filter option to search for the attack
        signature you want.

     4. Click the name of the affected signature.
     5. Clear the Enabled check box.
     6. Click Update.
     7. To effect the change to the affected security policy, click Apply
        Policy.
     8. Repeat steps 3 through 7 for the remaining affected attack signatures.
  o If it is enabled, disable the Exception Patterns setting for the BIG-IP ASM
    Data Guard feature (it is disabled by default). To disable this setting,
    perform the following procedure:
     1. Log in to the BIG-IP ASM Configuration utility.
     2. Navigate to Security > Application Security > Data Guard.
     3. Clear the Exception Patterns setting.
     4. Click Save.
  o If you have enabled them, disable other BIG-IP ASM features that use PCRE:

    Note: The following features are not enabled by default.

      - All user input type parameters, for example, decimal, float, phone,
        etc.
      - Dynamic parameters extraction that uses regular expression.
      - Dynamic session in URL and dynamic flows.

Supplemental Information

  o K9970: Subscribing to email notifications regarding F5 products
  o K4602: Overview of the F5 security vulnerability response policy
  o K9957: Creating a custom RSS feed to view new and updated documents

- --------------------------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

iQIVAwUBW5YI82aOgq3Tt24GAQizyBAAxGPcGYP3qogyd38OMuKAV6OR3n97kAtF
xS5wGvFHe844VbOOJOrzpG8eqvRHKOu9JO7fTN1eTul6ZqRE8c3rIaa/sz3sZ3On
dLh/KkPolcA08XPa644CxwY2MO567GY46i9U5QJtd+NNc50LAREvv1bkySTL5nGD
pEj6Uhz3pmvng1Ad/OqO553umNV78RfctcYwYggpe0joVUWG33YyybwRapd2P7vj
mXhNjMTz9IdJG5XoBmejuo7uLwDHPNtnef/4Z2Gkan2Q9aNaxo1aJ/FU047TtKFD
Omak34Sk8907YP4EMwlQmSoMopuC3u6NS4PR9asZzR+B/FFxOeoeww/3rzwYzbAZ
rwIAgxEvNDcMY1FMq32XpvR9dH/UXkhp8/xQGEuTpI7IEDgOhQjkjIOAUxxUWuyh
1D91ko+oOd0Zoei6X7uzcqMAvGcMTBADlgnF7OXNAbqcUO54tZ0i7ouzNRv4S+iO
J0Usb2dc7TxocsDtjcBp4PdGFUae1osPjFXKQlKSzraiwHOHRvS9uKrwawBfSwMV
osWCuNHmdYmyIILloDvGLOYK/W6biwXMeZEFaIrv1ciua3wHDR0R4gfpRvl43UM0
RdFCo8rPwsZiiu2YR8suDAGaeZfie/x9HVx35KuEnCH6xaIBUZCgZp80pGR3pbkd
WeKSYTbaXKs=
=2OcZ
-----END PGP SIGNATURE-----

« Back to bulletins