Fix phpBB (privmsg.php) XSS

Per Fixare:

aprire phpBB2/privmsg.php

trovare questo codice:

if (!($to_userdata = $db->sql_fetchrow($result)))
{
$error = TRUE;
$error_msg = $lang['No_such_user'];

sostituirlo con questo:

if ( !($result = $db->sql_query($sql)) )
         {
            $error = TRUE;
            $error_msg = $lang['No_such_user'];
         }

         if (!($to_userdata = $db->sql_fetchrow($result)))
         {
            $error = TRUE;
            echo "Spiacente, l'utente non esiste.";
            exit;
         }
      }
      else
      {
         $error = TRUE;
         die("Devi specificare uno username");
}

Michele

Crediti: Vincy

Leggi anche:

Switch to our mobile site