Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z bezpieczeństwem phpprobid
Sebastian_st
post
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 9.03.2009

Ostrzeżenie: (0%)
-----


Witam wszystkich. To mój pierwszy post
Mam duży problem. Tydzień temu kupiłem PHP PRO BID system aukcyjny. Wszystko było ok. tydzień pracy z serwisem aż tu nagle dziś wyskoczył alert bezpieczeństwa Norton Protection Center.

"
Zablokowano podejrzaną stronę internetową


Użytkownik podjął próbę dostępu do:

​http:​//www​.www.​hyper​marke​t.pl/​admin​/logi​n.php


Ze względów bezpieczeństwa ta strona internetowa została zablokowana i zgłoszona do sprawdzenia. Przejdź do witryny firmy Symantec zawierającej dodatkowe informacje na temat wyłudzania danych i zabezpieczeń internetowych."

Do tej pory nie było ani razu z tym problemu.
Usunąłem całość z serwera (łącznie z bazą danych) i zainstalowałem ponownie. Chyba z 4 razy. Nic to nie dało.
Aha, serwer mam w nazwa.pl

foto ze strony
http://www.hypermarket.pl/images/block.jpg

a to kod PHP admin/login.php

  1. <?
  2.  
  3.  
  4. define ('IN_ADMIN', 1);
  5.  
  6. include_once ('../includes/global.php');## PHP Pro Bid v6.00 generate the admin pin value
  7. $session->set('admin_pin_value', md5(rand(2,99999999)));
  8. $generated_pin = generate_pin($session->value('admin_pin_value'));
  9.  
  10. $pin_image_output = show_pin_image($session->value('admin_pin_value'), $generated_pin, '../');
  11.  
  12. $template->set('pin_image_output', $pin_image_output);
  13. $template->set('admin_pin_value', $session->value('admin_pin_value'));
  14.  
  15. $template_output = $template->process('login.tpl.php');
  16.  
  17. echo $template_output;
  18. ?>
  19.  
  20. <?
  21.  
  22.  
  23. define ('IN_ADMIN', 1);
  24.  
  25. include_once ('../includes/global.php');## PHP Pro Bid v6.00 generate the admin pin value
  26. $session->set('admin_pin_value', md5(rand(2,99999999)));
  27. $generated_pin = generate_pin($session->value('admin_pin_value'));
  28.  
  29. $pin_image_output = show_pin_image($session->value('admin_pin_value'), $generated_pin, '../');
  30.  
  31. $template->set('pin_image_output', $pin_image_output);
  32. $template->set('admin_pin_value', $session->value('admin_pin_value'));
  33.  
  34. $template_output = $template->process('login.tpl.php');
  35.  
  36. echo $template_output;
  37. ?>
  38.  
  39. a to login.tpl.php
  40.  
  41. <?
  42. #################################################################
  43. ## PHP Pro Bid v6.03                                                            ##
  44. ##-------------------------------------------------------------##
  45. ## Copyright ?2007 PHP Pro Software LTD. All rights reserved.    ##
  46. ##-------------------------------------------------------------##
  47. #################################################################
  48.  
  49. if ( !defined('INCLUDED') ) { die("Access Denied"); }
  50. ?>
  51.  
  52. <?=$header_registration_message;?>
  53. <br>
  54. <?=$invalid_login_message;?>
  55. <table width="80%" border="0" cellpadding="5" cellspacing="5" align="center" class="contentfont">
  56.   <tr valign="top">
  57.      <td width="50%" align="center" class="border c2"><p><b>
  58.            <?=MSG_NEW_TO;?>
  59.            <?=$setts['sitename'];?>?</b><br>
  60.            <br>
  61.            <?=MSG_REGISTRATION_MSG;?>
  62.         <form action="register.php" method="post">
  63.            <input name="submit" type="submit" class="buttons" value="<?=MSG_REGISTER_FOR_ACCOUNT;?>">
  64.         </form>
  65.         </p>
  66.      </td>
  67.      <td width="50%" align="center" class="border c2"><b>
  68.         <?=MSG_ALREADY_A;?>
  69.         <?=$setts['sitename'];?>
  70.         <?=MSG_USER?>?
  71.         </b><br>
  72.         <form action="<?=($setts['enable_enhanced_ssl']) ? $setts['site_path_ssl'] : SITE_PATH;?>login.php" method="post">
  73.         <input type="hidden" name="operation" value="submit">
  74.         <input type="hidden" name="redirect" value="<?=$redirect;?>">
  75.             <table width="100%" border="0" cellpadding="2" cellspacing="2" align="center">
  76.               <tr>
  77.                  <td align="right"><?=MSG_USERNAME?></td>
  78.                  <td><input name="username" type="text" id="username"></td>
  79.               </tr>
  80.               <tr>
  81.                  <td align="right"><?=MSG_PASSWORD?></td>
  82.                  <td><input name="password" type="password" id="password"></td>
  83.               </tr>
  84.               <tr>
  85.                  <td colspan="2" align="center"><input name="form_login_proceed" type="submit" id="form_login_proceed" value="<?=MSG_LOGIN_TO_MEMBERS_AREA;?>"></td>
  86.               </tr>
  87.            </table>
  88.         </form>
  89.         <a href="<?=SITE_PATH;?>retrieve_password.php">
  90.         <?=MSG_LOST_PASSWORD;?>
  91.         </a> </td>
  92.   </tr>
  93. </table>

pozdrawiam
Sebastian
Powód edycji: Dodałem bbCode (ociu)
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 20:56