Parcourir la source

Fixes XSS bug in mailbox_display with malicious From: headers.
Thanks to sailfrog for finding this one!

tassium il y a 22 ans
Parent
commit
5e5cc2c2bc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      functions/mailbox_display.php

+ 1 - 1
functions/mailbox_display.php

@@ -155,7 +155,7 @@ function printMessageInfo($imapConnection, $t, $not_last=true, $key, $mailbox,
                 break;
             case 2: /* from */
                 echo html_tag( 'td',
-                               $italic . $bold . $flag . $fontstr . $senderName .
+                               $italic . $bold . $flag . $fontstr . htmlentities($senderName) .
                                $fontstr_end . $flag_end . $bold_end . $italic_end,
                                'left',
                                $hlt_color );