Jump to content

Hack website user....


talor123

Recommended Posts

sort of same deel as my last post...

if anyone has the time , could you give a shot at trying obtain password for this account on my website.

no need to go overboard..  ive already tryed to use php injections like  the  include  function n all that.. i cant get it so far...

 

 

http://talor.freehostia.com/

 

username: betty

 

 

 

again.. if you find any faults on my site .. please tell me... thank you

Link to comment
Share on other sites

  • 4 months later...

your variables aren't sanitized properly use this:

 

<?php

function clean($var){

$var=mysql_real_escape_string(trim(strip_tags($var)));
$var=htmlspecialchars($var,ENT_QUOTES);
// or return $var; if running PHP4
return filter_var($var,FILTER_SANITIZE_STRING); 
}
?>

Link to comment
Share on other sites

<?php
//**********loops all $_POST variables and cleans them automatically*************///
if(get_magic_quotes_gpc())
{
//clean XSS/SQL injection
function clean($var) {

$var=strip_tags(trim(mysqli_real_escape_string($var)));//changed $text to $var my bad
$var=htmlspecialchars($var,ENT_QUOTES);
return $var;
}

array_walk_recursive($_POST,'clean');
} 
?>

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.