Skip to content

Commit

Permalink
Fix User CP email persistent XSS
Browse files Browse the repository at this point in the history
  • Loading branch information
dvz committed May 21, 2023
1 parent a68bfe3 commit d6a57e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usercp.php
Expand Up @@ -4197,6 +4197,8 @@
$avatar_username = htmlspecialchars_uni($mybb->user['username']);
eval("\$avatar = \"".$templates->get("usercp_currentavatar")."\";");

$mybb->user['email'] = htmlspecialchars_uni($mybb->user['email']);

$usergroup = htmlspecialchars_uni($groupscache[$mybb->user['usergroup']]['title']);
if($mybb->user['usergroup'] == 5 && $mybb->settings['regtype'] != "admin")
{
Expand Down

0 comments on commit d6a57e4

Please sign in to comment.