SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Database)  >   MySQL Vendors:   MySQL.com, Oracle
(Red Hat Issues Fix) MySQL General Query Logging Function Lets Remote Authenticated Users Modify the 'my.cnf' File to Gain Elevated Privileges
SecurityTracker Alert ID:  1037168
SecurityTracker URL:  http://securitytracker.com/id/1037168
CVE Reference:   CVE-2016-6662   (Links to External Site)
Date:  Nov 2 2016
Impact:   Execution of arbitrary code via network, Modification of system information, Modification of user information, Root access via network, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  Exploit Included:  Yes  
Version(s): 5.5.52, 5.6.33, 5.7.15; and prior versions
Description:   A vulnerability was reported in MySQL. A remote authenticated user can gain elevated privileges.

A remote authenticated user with SELECT/FILE permissions can exploit a flaw in the MySQL general query logging function to modify or create a 'my.cnf' file and cause arbitrary code to be executed with elevated privileges on the target system when the MySQL service is subsequently restarted.

The vendor was notified on July 29, 2016.

The original advisory and demonstration exploit code is available at:

http://legalhackers.com/advisories/MySQL-Exploit-Remote-Root-Code-Execution-Privesc-CVE-2016-6662.html

Dawid Golunski of legalhackers.com reported this vulnerability.

Impact:   A remote authenticated user with SELECT/FILE permissions can gain elevated privileges on the target system.
Solution:   Red Hat has issued a fix.

The Red Hat advisory is available at:

https://rhn.redhat.com/errata/RHSA-2016-2130.html

Vendor URL:  rhn.redhat.com/errata/RHSA-2016-2130.html (Links to External Site)
Cause:   Access control error
Underlying OS:  Linux (Red Hat Enterprise)
Underlying OS Comments:  6, 6.6, 6.7, 7, 7.1, 7.2

Message History:   This archive entry is a follow-up to the message listed below.
Sep 12 2016 MySQL General Query Logging Function Lets Remote Authenticated Users Modify the 'my.cnf' File to Gain Elevated Privileges



 Source Message Contents

Subject:  [RHSA-2016:2130-01] Important: mysql55-mysql security update

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

=====================================================================
                   Red Hat Security Advisory

Synopsis:          Important: mysql55-mysql security update
Advisory ID:       RHSA-2016:2130-01
Product:           Red Hat Software Collections
Advisory URL:      https://rhn.redhat.com/errata/RHSA-2016-2130.html
Issue date:        2016-10-31
CVE Names:         CVE-2016-3492 CVE-2016-5612 CVE-2016-5616 
                   CVE-2016-5617 CVE-2016-5624 CVE-2016-5626 
                   CVE-2016-5629 CVE-2016-6662 CVE-2016-8283 
=====================================================================

1. Summary:

An update for mysql55-mysql is now available for Red Hat Software
Collections.

Red Hat Product Security has rated this update as having a security impact
of Important. A Common Vulnerability Scoring System (CVSS) base score,
which gives a detailed severity rating, is available for each vulnerability
from the CVE link(s) in the References section.

2. Relevant releases/architectures:

Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) - x86_64
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) - x86_64
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) - x86_64
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) - x86_64
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) - x86_64
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) - x86_64
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) - x86_64
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) - x86_64

3. Description:

MySQL is a multi-user, multi-threaded SQL database server. It consists of
the MySQL server daemon, mysqld, and many client programs.

The following packages have been upgraded to a newer upstream version:
mysql55-mysql (5.5.52).

Security Fix(es):

* It was discovered that the MySQL logging functionality allowed writing to
MySQL configuration files. An administrative database user, or a database
user with FILE privileges, could possibly use this flaw to run arbitrary
commands with root privileges on the system running the database server.
(CVE-2016-6662)

* This update fixes several vulnerabilities in the MySQL database server.
Information about these flaws can be found on the Oracle Critical Patch
Update Advisory page, listed in the References section. (CVE-2016-3492,
CVE-2016-5612, CVE-2016-5616, CVE-2016-5617, CVE-2016-5624, CVE-2016-5626,
CVE-2016-5629, CVE-2016-8283)

4. Solution:

For details on how to apply this update, which includes the changes
described in this advisory, refer to:

https://access.redhat.com/articles/11258

After installing this update, the MySQL server daemon (mysqld) will be
restarted automatically.

5. Bugs fixed (https://bugzilla.redhat.com/):

1375198 - CVE-2016-6662 mysql: general_log can write to configuration files, leading to privilege escalation
1386554 - CVE-2016-3492 mysql: unspecified vulnerability in subcomponent: Server: Optimizer (CPU October 2016)
1386561 - CVE-2016-5612 mysql: unspecified vulnerability in subcomponent: Server: DML (CPU October 2016)
1386562 - CVE-2016-5616 mysql: unspecified vulnerability in subcomponent: Server: MyISAM (CPU October 2016)
1386564 - CVE-2016-5617 mysql: unspecified vulnerability in subcomponent: Server: Error Handling (CPU October 2016)
1386566 - CVE-2016-5624 mysql: unspecified vulnerability in subcomponent: Server: DML (CPU October 2016)
1386568 - CVE-2016-5626 mysql: unspecified vulnerability in subcomponent: Server: GIS (CPU October 2016)
1386572 - CVE-2016-5629 mysql: unspecified vulnerability in subcomponent: Server: Federated (CPU October 2016)
1386585 - CVE-2016-8283 mysql: unspecified vulnerability in subcomponent: Server: Types (CPU October 2016)

6. Package List:

Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6):

Source:
mysql55-mysql-5.5.52-1.el6.src.rpm

x86_64:
mysql55-mysql-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-bench-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-debuginfo-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-devel-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-libs-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-server-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-test-5.5.52-1.el6.x86_64.rpm

Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6):

Source:
mysql55-mysql-5.5.52-1.el6.src.rpm

x86_64:
mysql55-mysql-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-bench-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-debuginfo-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-devel-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-libs-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-server-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-test-5.5.52-1.el6.x86_64.rpm

Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7):

Source:
mysql55-mysql-5.5.52-1.el6.src.rpm

x86_64:
mysql55-mysql-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-bench-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-debuginfo-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-devel-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-libs-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-server-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-test-5.5.52-1.el6.x86_64.rpm

Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6):

Source:
mysql55-mysql-5.5.52-1.el6.src.rpm

x86_64:
mysql55-mysql-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-bench-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-debuginfo-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-devel-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-libs-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-server-5.5.52-1.el6.x86_64.rpm
mysql55-mysql-test-5.5.52-1.el6.x86_64.rpm

Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7):

Source:
mysql55-mysql-5.5.52-1.el7.src.rpm

x86_64:
mysql55-mysql-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-bench-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-debuginfo-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-devel-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-libs-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-server-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-test-5.5.52-1.el7.x86_64.rpm

Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1):

Source:
mysql55-mysql-5.5.52-1.el7.src.rpm

x86_64:
mysql55-mysql-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-bench-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-debuginfo-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-devel-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-libs-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-server-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-test-5.5.52-1.el7.x86_64.rpm

Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2):

Source:
mysql55-mysql-5.5.52-1.el7.src.rpm

x86_64:
mysql55-mysql-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-bench-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-debuginfo-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-devel-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-libs-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-server-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-test-5.5.52-1.el7.x86_64.rpm

Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7):

Source:
mysql55-mysql-5.5.52-1.el7.src.rpm

x86_64:
mysql55-mysql-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-bench-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-debuginfo-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-devel-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-libs-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-server-5.5.52-1.el7.x86_64.rpm
mysql55-mysql-test-5.5.52-1.el7.x86_64.rpm

These packages are GPG signed by Red Hat for security.  Our key and
details on how to verify the signature are available from
https://access.redhat.com/security/team/key/

7. References:

https://access.redhat.com/security/cve/CVE-2016-3492
https://access.redhat.com/security/cve/CVE-2016-5612
https://access.redhat.com/security/cve/CVE-2016-5616
https://access.redhat.com/security/cve/CVE-2016-5617
https://access.redhat.com/security/cve/CVE-2016-5624
https://access.redhat.com/security/cve/CVE-2016-5626
https://access.redhat.com/security/cve/CVE-2016-5629
https://access.redhat.com/security/cve/CVE-2016-6662
https://access.redhat.com/security/cve/CVE-2016-8283
https://access.redhat.com/security/updates/classification/#important
http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html#AppendixMSQL
https://dev.mysql.com/doc/relnotes/mysql/5.5/en/news-5-5-51.html
https://dev.mysql.com/doc/relnotes/mysql/5.5/en/news-5-5-52.html

8. Contact:

The Red Hat security contact is <secalert@redhat.com>. More contact
details at https://access.redhat.com/security/team/contact/

Copyright 2016 Red Hat, Inc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iD8DBQFYF6lyXlSAg2UNWIIRAjYYAJ9jYzTBS2CelcVlc/1JdDwMjI3fSwCgvbwV
YeJT/rev8YuCjkZNuNpBU7Y=
=QoZm
-----END PGP SIGNATURE-----


-- 
Enterprise-watch-list mailing list
Enterprise-watch-list@redhat.com
https://www.redhat.com/mailman/listinfo/enterprise-watch-list
 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, SecurityGlobal.net LLC