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 17, 2014
1 parent 29a1f56 commit 395265e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -16,6 +16,7 @@ phpMyAdmin - ChangeLog
- bug #4486 [security] XSS injection due to unescaped table comment
- bug #4488 [security] XSS injection due to unescaped table name (triggers)
- bug #4492 [security] XSS in AJAX confirmation messages
- bug #4491 [security] Missing validation for accessing User groups feature

4.2.5.0 (2014-06-26)
- bug #4467 shell_exec() has been disabled for security reasons
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 395265e

Please sign in to comment.