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

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

                               ESB-2020.0066
           phpMyAdmin fixes SQL injection in user accounts page
                              8 January 2020

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

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

Product:           phpMyAdmin
Publisher:         phpMyAdmin
Operating System:  Windows
                   UNIX variants (UNIX, Linux, OSX)
Impact/Access:     Execute Arbitrary Code/Commands -- Remote with User Interaction
Resolution:        Patch/Upgrade
CVE Names:         CVE-2020-5504  

Original Bulletin: 
   https://www.phpmyadmin.net/security/PMASA-2020-1/

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

Announcement-ID: PMASA-2020-1
Date: 2020-01-05

Summary

SQL injection in user accounts page

Description

A SQL injection flaw has been discovered in the user accounts page. A malicious
user could inject custom SQL in place of their own username when creating
queries to this page. An attacker must have a valid MySQL account to access the
server.

Severity

We consider this vulnerability to be serious

Affected Versions

phpMyAdmin 4.x versions prior to 4.9.4 are affected, at least as old as 4.0.0.
phpMyAdmin 5.x version 5.0.0 is affected.

Solution

4.8, 4.9: upgrade to version 4.9.4 or newer. 5.x: upgrade to version 5.0.1 or
newer. Or apply the patch below. Older versions: https://gist.github.com/
ibennetch/4c1b701f4b766e4dd5556e8e26200b6b

References

Thanks to CSW Research Labs for reporting this vulnerability

Assigned CVE ids: CVE-2020-5504

CWE ids: CWE-661

Patches

The following commits have been made to fix this issue:

  * c86acbf3ed49f69cf38b31879886dd5eb86b6983

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

iQIVAwUBXhVonWaOgq3Tt24GAQjhPw/9HN2LAz8Pb5JI6LaebTE9G4VczfsDiuRE
g1VrL3Lbfy/gsuxyKRLpDKbroqW0nf0qHcJ/deyXQNaO5Wn7zNB2Iz5IRaRcHmP3
TNMx7s1bWsj9Vo19QJbPOE3rdLdPs8+OJH6UE2oQHsPzk7vfkNYMFvK5RSb4dvuf
cfSyZdty+RBfWuEWbKmhcrYBOMyLknen10+KMCzKzTb/77k9+RunglpAQUK6uqKd
EdWC+isAoflFwveRNr2iEC5EOfNXcAEey1zVKiE3xftMX/Zo6g1/WPDoz3NkdMYr
lHnmFZJ5JCbiXAAeVBhoLz6FaBE/a33wRjMkgHqxYqv9+7W2i0C/F5MxhQyfJunr
b6CrQZK+snep9pXLlcs6WpE+vlPi7hjg2cTJfNcFW824NCEvuT9BsKE7Wv4XpNzt
QKSigYDDLwby5pPTWutT0s7iktgMylL8s0jfAp04LIWTpas572gwWX4ga6d2FTgx
p47ZYOJOFb7abfcvcX/oUD1p6RpysBbvnxJncsvKeo/bvQc7naCK/O56BuMS4ahb
I+T+jyNP/wc5mlXwRno6Fis9Zwg+8AtaXv3NLgc/s3rroHEoPI7OCMi5jXhsgRvm
UeMXeaiBNvgNv2n66WftVGbXNovQGbKfIulcNlbDvrQKIeaDp5E0EDsxo1ZTFcZI
dAPdM0LaX1o=
=jFBn
-----END PGP SIGNATURE-----