PMASA-2013-15

Announcement-ID: PMASA-2013-15

Date: 2013-07-28

Updated: 2013-08-06

Summary

SQL injection vulnerabilities, producing a privilege escalation (control user).

Description

Due to a missing validation of parameters passed to schema_export.php and pmd_pdf.php, it was possible to inject SQL statements that would run with the privileges of the control user. This gives read and write access to the tables of the configuration storage database, and if the control user has the necessary privileges, read access to some tables of the mysql database.

Severity

We consider these vulnerabilities to be serious.

Mitigation factor

These vulnerabilities can be triggered only by someone who logged in to phpMyAdmin, as the usual token protection prevents non-logged-in users from accessing the required form. Moreover, a control user must have been created and configured as part of the phpMyAdmin configuration storage installation.

Affected Versions

Versions 3.5.x (prior to 3.5.8.2) and 4.0.x (prior to 4.0.4.2) are affected.

Solution

Upgrade to phpMyAdmin 3.5.8.2 or 4.0.4.2 or apply the patches below.

References

Thanks to 0x721427D8 working with Beyond Security's SecuriTeam Secure Disclosure program for reporting these vulnerabilities.

Assigned CVE ids: CVE-2013-5003

CWE ids: CWE-661 CWE-89 CWE-269

Patches

The following commits have been made to fix this issue:

The following commits have been made on the 3.5 branch to fix this issue:

More information

For further information and in case of questions, please contact the phpMyAdmin team. Our website is phpmyadmin.net.

Announcements