[security] Fix control user SQL injection in pmd_pdf.php, see PMASA-2013-15

This commit is contained in:
Marc Delisle 2013-07-23 08:35:07 -04:00
parent 257bd7349c
commit 974d0dedee
2 changed files with 8 additions and 0 deletions

View File

@ -6,6 +6,7 @@ phpMyAdmin - ChangeLog
- [security] Fix stored XSS in navigation panel logo link, see PMASA-2013-9
- [security] Fix self-XSS in setup, trusted proxies validation, see PMASA-2013-9
- [security] Fix full path disclosure, see PMASA-2013-12
- [security] Fix control user SQL injection in pmd_pdf.php, see PMASA-2013-15
4.0.4.1 (2013-06-30)
- [security] Global variables scope injection vulnerability (see PMASA-2013-7)

View File

@ -8,6 +8,13 @@
require_once './libraries/common.inc.php';
require_once 'libraries/pmd_common.php';
/**
* Validate vulnerable POST parameters
*/
if (isset($_POST['scale']) && ! PMA_isValid($_POST['scale'], 'numeric')) {
die('Attack stopped');
}
/**
* Sets globals from $_POST
*/