Skip to content

Commit

Permalink
Fix #11239: XSS on view_user_page.php with user Real Name field
Browse files Browse the repository at this point in the history
User real names aren't sanitised before display on view_user_page.php
thus this leads to an XSS vulnerability.
  • Loading branch information
davidhicks committed Dec 1, 2009
1 parent 93f36d2 commit 15b0752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions view_user_page.php
Expand Up @@ -64,7 +64,7 @@
<?php echo lang_get( 'username' ) ?>
</td>
<td width="75%">
<?php echo $u_username ?>
<?php echo string_display_line( $u_username ) ?>
</td>
</tr>

Expand Down Expand Up @@ -98,7 +98,7 @@
if ( ! ( $t_can_manage || $t_can_see_realname ) ) {
print error_string(ERROR_ACCESS_DENIED);
} else {
echo $u_realname;
echo string_display_line( $u_realname );
}
?>
</td>
Expand Down

0 comments on commit 15b0752

Please sign in to comment.