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

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

                               ESB-2019.2556
         JSA10940 - 2019-07 Security Bulletin: Junos OS: Multiple
                        Vulnerabilities in OpenSSH
                               11 July 2019

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

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

Product:           Junos OS
Publisher:         Juniper Networks
Operating System:  Juniper
Impact/Access:     Execute Arbitrary Code/Commands -- Existing Account      
                   Increased Privileges            -- Existing Account      
                   Access Privileged Data          -- Existing Account      
                   Denial of Service               -- Remote/Unauthenticated
                   Access Confidential Data        -- Remote/Unauthenticated
Resolution:        Patch/Upgrade
CVE Names:         CVE-2016-10012 CVE-2016-10011 CVE-2016-10010
                   CVE-2016-10009 CVE-2016-6515 CVE-2016-6210
                   CVE-2015-8325 CVE-2015-6564 

Reference:         ASB-2018.0293
                   ASB-2015.0090
                   ESB-2019.2463
                   ESB-2018.3084

Original Bulletin: 
   http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10940

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

2019-07 Security Bulletin: Junos OS: Multiple Vulnerabilities in OpenSSH

Article ID:   JSA10940

Last Updated: 10 Jul 2019

Version:      8.0

Product Affected:
This issue affects all products and platforms running Junos OS
Problem:

Multiple vulnerabilities have been resolved in Junos OS by updating third party
software included with Junos OS or by fixing vulnerabilities found during
internal testing.

These issues potentially affect Juniper Networks Junos OS:

  o 12.3X48 versions prior to 12.3X48-D55;
  o 12.3 versions prior to 12.3R12-S13;
  o 15.1X49 versions prior to 15.1X49-D100;
  o 15.1 versions prior to 15.1F6-S12, 15.1R5-S4, 15.1R6-S1, 15.1R7;
  o 16.1 versions prior to 16.1R3-S4, 16.1R4-S3, 16.1R5;
  o 16.2 versions prior to 16.2R1-S4, 16.2R2;
  o 17.1 versions prior to 17.1R1-S2, 17.1R2;
  o 17.2 versions prior to 17.2R1.

Juniper SIRT is not aware of any malicious exploitation of these
vulnerabilities.

These issues were discovered during external security research.

Important security issues resolved include:

     CVE            CVSS                           Summary
                              The do_setup_env function in session.c in sshd in
                              OpenSSH through 7.2p2, when the UseLogin feature
               7.8 ( CVSS:3.0 is enabled and PAM is configured to read
CVE-2015-8325  /AV:L/AC:L/    .pam_environment files in user home directories,
               PR:L/UI:N/S:U/ allows local users to gain privileges by
               C:H/I:H/A:H )  triggering a crafted environment for the /bin/
                              login program, as demonstrated by an LD_PRELOAD
                              environment variable.
                              sshd in OpenSSH before 7.3, when SHA256 or SHA512
               5.9 ( CVSS:3.0 are used for user password hashing, uses BLOWFISH
               /AV:N/AC:H/    hashing on a static password when the username
CVE-2016-6210  PR:N/UI:N/S:U/ does not exist, which allows remote attackers to
               C:H/I:N/A:N )  enumerate users by leveraging the timing
                              difference between responses when a large
                              password is provided.
                              The auth_password function in auth-passwd.c in
               7.5 ( CVSS:3.0 sshd in OpenSSH before 7.3 does not limit
CVE-2016-6515  /AV:N/AC:L/    password lengths for password authentication,
               PR:N/UI:N/S:U/ which allows remote attackers to cause a denial
               C:N/I:N/A:H )  of service (crypt CPU consumption) via a long
                              string.
                              Use-after-free vulnerability in the
               4.8 ( CVSS:3.0 mm_answer_pam_free_ctx function in monitor.c in
               /AV:N/AC:H/    sshd in OpenSSH before 7.0 on non-OpenBSD
CVE-2015-6564  PR:N/UI:N/S:U/ platforms might allow local users to gain
               C:L/I:L/A:N )  privileges by leveraging control of the sshd uid
                              to send an unexpectedly early
                              MONITOR_REQ_PAM_FREE_CTX request.
               7.3 ( CVSS:3.0 Untrusted search path vulnerability in
               /AV:N/AC:L/    ssh-agent.c in ssh-agent in OpenSSH before 7.4
CVE-2016-10009 PR:N/UI:N/S:U/ allows remote attackers to execute arbitrary
               C:L/I:L/A:L )  local PKCS#11 modules by leveraging control over
                              a forwarded agent-socket.
               7.0 ( CVSS:3.0 sshd in OpenSSH before 7.4, when privilege
               /AV:L/AC:H/    separation is not used, creates forwarded
CVE-2016-10010 PR:L/UI:N/S:U/ Unix-domain sockets as root, which might allow
               C:H/I:H/A:H )  local users to gain privileges via unspecified
                              vectors, related to serverloop.c.
                              authfile.c in sshd in OpenSSH before 7.4 does not
               5.5 ( CVSS:3.0 properly consider the effects of realloc on
CVE-2016-10011 /AV:L/AC:L/    buffer contents, which might allow local users to
               PR:L/UI:N/S:U/ obtain sensitive private-key information by
               C:H/I:N/A:N )  leveraging access to a privilege-separated child
                              process.
                              The shared memory manager (associated with
                              pre-authentication compression) in sshd in
               7.8 ( CVSS:3.0 OpenSSH before 7.4 does not ensure that a bounds
CVE-2016-10012 /AV:L/AC:L/    check is enforced by all compilers, which might
               PR:L/UI:N/S:U/ allows local users to gain privileges by
               C:H/I:H/A:H )  leveraging access to a sandboxed
                              privilege-separation process, related to the
                              m_zback and m_zlib data structures.

Solution:

The following software releases have been updated to resolve this specific
issue: 12.3X48-D55, 12.3R12-S13, 15.1X49-D100, 15.1F6-S12, 15.1R5-S4,
15.1R6-S1, 15.1R7, 16.1R3-S4, 16.1R4-S3, 16.1R5, 16.2R1-S4, 16.2R2, 17.1R1-S2,
17.1R2, 17.2R1 and all subsequent releases.

Note: Juniper SIRT's policy is not to evaluate releases which are beyond End of
Engineering (EOE) or End of Life (EOL).

These issues are being tracked as PR 1208815 which are visible on the Customer
Support website.

Workaround:

There are no viable workarounds for these issues.

To reduce the risk of exploitation of these issues use access lists or firewall
filters to limit access to the device(s) to only trusted administrative
networks, hosts and users.

Implementation:
Software Releases, patches and updates are available at https://www.juniper.net
/support/downloads/ .

Modification History:

  o 2019-07-10: Initial Publication

Related Links:

  o KB16613: Overview of the Juniper Networks SIRT Quarterly Security Bulletin
    Publication Process

  o KB16765: In which releases are vulnerabilities fixed

  o KB16446: Common Vulnerability Scoring System (CVSS) and Juniper's Security
    Advisories

  o Report a Security Vulnerability - How to Contact the Juniper Networks
    Security Incident Response Team

CVSS Score:
5.9 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H)

Risk Level:
Medium

Risk Assessment:
Information for how Juniper Networks uses CVSS can be found at KB 16446 "Common
Vulnerability Scoring System (CVSS) and Juniper's Security Advisories."

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

iQIVAwUBXSbOaWaOgq3Tt24GAQhxaRAAnEq1DWGmGfVKYBS+zwyVFmTOdTXRCEzs
PAbECSdLaTiNcdo+kZb2fvTv6zrQleOf0xk6g7xGVYT+5+Y977rDFoD9t15Wbd6h
ymdL1dkHCQ9pLMlg7NVTDehsVDJLR+5kcrqHLfMabtN1gWy0Qcl/PCjzVXRSD03S
W6j14MoNcVm/l/yJ15yFeUbDlKE7p6bnL5nDdNig5awfhuqSMr2Mc3CreGJFmEHV
qc8bAB47GNM7VXl/RJ0P1IKZb/eqw7ArFn2sJfpjioWws0en2XSqcwWlQPyE2e49
gmBXXxg/1ni8zdTNPp1T1JYxh3y0CWUm/QiXetF+jmdCcUOHozNUOzEEo+vN84gJ
42W7P5dqn3ACKmPG9yn+cbZQO4NWRuXfVj76b2tvbx9THgHm+NGdKjnVZuB4KNu7
u3S8bzATJLp7LSUqnm8NdR9ghKTDxI/oasot4+um8mb9TGanL7WbfBOGhuhnZWlE
rZh7Jib2oVSBdkAn04cL3ZiZBtPQS4Yvd5YCzYFgxi+0JIu7rO4nLiDK1+aMOjIP
dL5KDrVfI7JQQjvyOi/WwuLHowXgCR2r6JwK7FLrAqlTkecUwnK0lQI4e5xQO9WQ
iNLMngU8iw8aguQbSRQFNjeidnmUM+VQgCR+OswuAJJx4vZ6riOr8g9aIdbCAfgx
JSpn0N9UaGo=
=Zeuk
-----END PGP SIGNATURE-----