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

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

                               ESB-2020.4493
 BIG-IP system may respond with the NXDOMAIN status when it receives a DNS
                query of a certain type on a CNAME wide IP
                             18 December 2020

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

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

Product:           BIG-IP System
Publisher:         F5 Networks
Operating System:  Network Appliance
Impact/Access:     Reduced Security -- Remote/Unauthenticated
Resolution:        Patch/Upgrade

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

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

K23022557: The BIG-IP system may respond with the NXDOMAIN status when it
receives a DNS query of a certain type on a CNAME wide IP

Original Publication Date: 07 Mar, 2017
Latest   Publication Date: 17 Dec, 2020

Security Advisory Description

The BIG-IP system may respond with the NXDOMAIN status when it receives a DNS
query on a CNAME wide IP. This issue occurs when all of the following
conditions are met:

  o The BIG-IP system is configured with a CNAME wide IP.

    For example:

    test.example.com

  o The BIG-IP system is also configured with a DNS Express (DNSX) zone, but it
    does not have a record for the CNAME wide IP.
  o The BIG-IP system receives a DNS query of type MX or ANY for the CNAME wide
    IP.

Impact

DNS cache resolvers that receive the response with the NXDOMAIN status use that
response for the entire domain name. As a result, DNS clients that use these
DNS cache resolvers for DNS queries of type A/AAAA may receive responses with
the NXDOMAIN status until the cache expires.

Symptoms

As a result of this issue, you may encounter one or more of the following
symptoms:

  o BIG-IP iHealth lists Heuristic H645784 on the Diagnostics > Identified >
    Medium screen.
  o A DNS cache resolver receives a DNS response with the NXDOMAIN status when
    querying the BIG-IP system for an MX record or ANY records of a CNAME wide
    IP.
  o A DNS client receives DNS responses with NXDOMAIN when querying an affected
    DNS cache resolver for A/AAAA records.

Security Advisory Status

Status

F5 Product Development has assigned ID 644192 to this issue. F5 has confirmed
that this issue exists in the products listed in the Applies to (see versions)
box, located in the upper-right corner of this article. For information about
releases or hotfixes that resolve this issue, refer to the following table:

+------------------+-----------------+----------------------------------------+
|Type of Fix       |Fixes Introduced |Related Articles                        |
|                  |In               |                                        |
+------------------+-----------------+----------------------------------------+
|Release           |15.1.2           |K2200: Most recent versions of F5       |
|                  |                 |software                                |
+------------------+-----------------+----------------------------------------+
|Point release/    |14.1.3.1         |K9502: BIG-IP hotfix and point release  |
|hotfix            |                 |matrix                                  |
+------------------+-----------------+----------------------------------------+

Security Advisory Recommended Actions

Workaround

To work around this issue, you can either create a TXT resource record for the
CNAME wide IP in ZoneRunner, or create an iRule that replaces the NXDOMAIN
status with a NOERROR status before sending out the response. To do so, perform
either of the following procedures:

  o Creating a TXT resource record in ZoneRunner
  o Creating an iRule to replace the DNS response status

Creating a TXT resource record in ZoneRunner

To create a TXT resource record for the CNAME wide IP in ZoneRunner, perform
the following procedure:

Impact of workaround: Performing the following procedure should not have a
negative impact on your system.

 1. Log in to the Configuration utility.
 2. Navigate to one of the following locations:
       BIG-IP 11.5.0 and later

        DNS > Zones > ZoneRunner > Zone List

       BIG-IP 11.4.0 through 11.4.1

        Global Traffic > ZoneRunner > Zone List

 3. Click on the zone name of the affected CNAME wide IP. For example, if the
    affected CNAME wide IP is test.example.com, the zone name should be
    example.com.

    Note: If the zone of the affected CNAME wide IP does not exist, you may
    have to create one before proceeding to the next step. For more information
    about creating a zone, refer to the Using ZoneRunner to Configure DNS Zones
    chapter of the BIG-IP DNS Services: Implementations manual. For information
    about how to locate F5 product manuals, refer to K12453464: Finding product
    documentation on AskF5.

 4. Click the Resource Records tab.
 5. Click Create.
 6. In the Name setting, type the affected CNAME wide IP.

    For example:

    test.example.com

 7. For the TTL setting, enter your desired value in seconds.
 8. For the Type setting, select TXT.
 9. In the Text setting, type your desired text.
10. To save the changes, click Finished.

Creating an iRule to replace the DNS response status

To create an iRule to replace the DNS response status, perform the following
procedure:

Impact of workaround: The following iRule may not apply to all environments. F5
recommends authoring an iRule that works best for your application environment.
Additionally, adding an iRule increases the resources used by the associated
virtual server. Depending on the type and volume of the connections, the iRule
may introduce noticeable latency. F5 recommends testing any such changes in an
appropriate environment.

 1. Log in to the Configuration utility.
 2. Navigate to one of the following locations:
       BIG-IP 11.5.0 and later

        DNS > Delivery > iRules > iRule List

       BIG-IP 11.4.0 through 11.4.1

        Local Traffic > iRules > iRule List

 3. Click Create.
 4. In the Name setting, type a name for the iRule.

    For example:

    K23022557workaround

 5. In the Definition setting, type an iRule similar to the following example,
    replacing test.example.com with the affected CNAME wide IP:

    when DNS_RESPONSE {
    if { [DNS::question name] eq "test.example.com" } {
    if { [DNS::header rcode] eq "NXDOMAIN" } {
    DNS::header rcode NOERROR
    DNS::authority clear
    return
    }
    }
    }

 6. To save the iRule. click Finished.
 7. Navigate to one of the following locations:
       BIG-IP 11.5.0 and later

        DNS > Delivery > Listeners > Listener List

       BIG-IP 11.4.0 through 11.4.1

        Local Traffic > Virtual Servers > Virtual Server List

 8. Click the GTM/DNS listener. Typically the name of this listener ends in
    _gtm.
 9. Click the Resources tab.
10. In the iRules section. click Manage.
11. From the Available box, select the iRule you created in Steps 3 through 6.
12. To move the iRule to the Enabled box, click <<.
13. To save the changes, click Finished.

Acknowledgements

F5 would like to acknowledge Ray Krebs, Sam Cohoon, and Erik Espinoza of eBay
Inc. for bringing this issue to our attention, and for following the highest
standards of responsible disclosure.

Supplemental Information

o K41942608: Overview of AskF5 security advisory articles
  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

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

iQIVAwUBX9wupuNLKJtyKPYoAQjWpxAAm1RAwpNJlLCfLWbxSbovnR0E/AV1GhjP
LVSkxJNsw94cCIcxdss9bKUQDV923D0HKWjm0bLms9VK77Z4zXDGmkoyVZkmP5qA
lkbvWlU1rTxaydXjdq1zuR4/MvNyILOX2smsp4W8mBVvbUNcjHOR4rUuhNgMEIHg
THUfCAjpmi2kB39aVaBiXy1J2UmDq5FV85+0AVxkoj5ww6wgttbhtsLJ7K8xJYmR
WlA9xu6sy6lkV8eek8NGYi6BjImJ1IJrDFb0vKyVJhg0SnnGBpaXaJ7SjuJhcMnP
S0rOWjO14t2kp/oluxBtQ5sbwGWNCWkQ/YhLliOzX7u379rgKDCAUsGKJxH/7xbF
DPZ9ogZS35Bkj7Aqxc2r7px1rHd+mPQj1oByHlMXVQb656NlL/lcUm8lkQ8DKkvv
KcKkwv4Io/oc0j5fUJjM/mgeRvKJPQwY2dojAamH0dsUTd13+A0pEdA45+N71f3n
54jQg6ccJ/ylLxnKVyjIevUT8mgPLFQ0Bl3dYyqiu18/fdgOqgy32FMbW7Y9Ypj1
Oc/11YF7/NfptKin3ZF1vvMj8pEu++fycdiB0QfkmOEvL4mGgsTjlzYGGRQBG3un
3baPISbQ3i5VH3hOrvJWtEQNefq+7tZJAJqn5ZKbRY5e8rul1bDi4k8OY6nHYX5i
P7sZorIRqK0=
=7Lnl
-----END PGP SIGNATURE-----