[Securitate] O posibilă problemă SQL
Scris: 20-Mar-2004, 10:50:41
phpBB.com a primit o notificare prin care le este adus la cunoştinţă faptul ca fişierul search.php este oarecum “defect”. Sub aceasta circustanţa s-a observat că versiunile phpBB 2.0.x sunt oferite pe tava persoanelor rau voitoare; parola SQL obţinându-se relativ usor de către acestia. Administratorii de forumuri phpBB 2.0.x îşi pot face modificările prezentate mai jos pentru a scapa de acest incovenient.
În cel mai scurt timp vom face un nou update al tuturor arhivelor phpBB 2.0.7, astfel încât noile instalari si upgrate-uri vor fi imune.
Pentru a scăpa de acest bug deschide fişierul search.php cu orice editor de text şi urmăreşte următorii paşi.
Cauta:
Dupa, Adauga:
Cauta:
Dupa, Adauga:
Pentru a fixa problema redirectionararii:
Deschide fisierul login.php
Cauta:
Inlocuieste aceasta linie cu:
Cauta:
Inlocuieste aceasta linie cu:
Cauta:
Inlocuieste aceasta linie cu:
Cauta:
Dupa, Adauga:
Cauta:
Inlocuieste aceasta linie cu:
Deschide fisierul privmsg.php
Cauta:
Dupa, Adauga:
Cauta:
Dupa, Adauga:
Salveasa aceste modificari si inlocuieste fisierele de pe server cu acestea.
În cel mai scurt timp vom face un nou update al tuturor arhivelor phpBB 2.0.7, astfel încât noile instalari si upgrate-uri vor fi imune.
Pentru a scăpa de acest bug deschide fişierul search.php cu orice editor de text şi urmăreşte următorii paşi.
Cauta:
Cod: Selectaţi tot
$show_results = ( isset($HTTP_POST_VARS['show_results']) ) ? $HTTP_POST_VARS['show_results'] : 'posts';
Cod: Selectaţi tot
$show_results = ($show_results == 'topics') ? 'topics' : 'posts';
Cod: Selectaţi tot
$store_vars = array('search_results', 'total_match_count', 'split_search', 'sort_by', 'sort_dir', 'show_results', 'return_chars');
Cod: Selectaţi tot
$search_results = '';
Deschide fisierul login.php
Cauta:
Cod: Selectaţi tot
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : "index.$phpEx";
Cod: Selectaţi tot
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
Cod: Selectaţi tot
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : '';
Cod: Selectaţi tot
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : '';
Cod: Selectaţi tot
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : "";
Cod: Selectaţi tot
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "";
Cod: Selectaţi tot
$url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']);
Cod: Selectaţi tot
$url = str_replace('&', '&', $url);
Cod: Selectaţi tot
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : "index.$phpEx";
Cod: Selectaţi tot
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
Cauta:
Cod: Selectaţi tot
message_die(GENERAL_ERROR, 'Could not query private messages', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
Cod: Selectaţi tot
$i = 0;
Cod: Selectaţi tot
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
Cod: Selectaţi tot
$i++;