Skip to content

Commit

Permalink
bug #4491 [security] Missing validation for accessing User groups fea…
Browse files Browse the repository at this point in the history
…ture

Signed-off-by: Marc Delisle <marc@infomarc.info>
  • Loading branch information
lem9 committed Jul 15, 2014
1 parent d143c54 commit 45550b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,6 +1,9 @@
phpMyAdmin - ChangeLog
======================

4.1.14.2 (not yet released)
- bug #4491 [security] Missing validation for accessing User groups feature

4.1.14.1 (2014-06-21)
- bug #4464 [security] XSS injection due to unescaped db/table name in navigation hiding

Expand Down
10 changes: 9 additions & 1 deletion server_user_groups.php
Expand Up @@ -20,6 +20,14 @@
$scripts = $header->getScripts();
$scripts->addFile('server_user_groups.js');

/**
* Only allowed to superuser
*/
if (! $GLOBALS['is_superuser']) {
$response->addHTML(PMA_Message::error(__('No Privileges'))->getDisplay());
exit;
}

$response->addHTML('<div>');
$response->addHTML(PMA_getHtmlForSubMenusOnUsersPage('server_user_groups.php'));

Expand Down Expand Up @@ -61,4 +69,4 @@
}

$response->addHTML('</div>');
?>
?>

0 comments on commit 45550b8

Please sign in to comment.