Jump to content

Security test my site, please


Andy17

Recommended Posts

You still got me dude. :P Here is my code:

 

<?php

// Query here

$row = mysql_fetch_array($result);

$submitter = $row['submitter'];
$title = $row['title'];
$url = $row['url'];
$url = stripslashes(strip_tags(htmlspecialchars($url, ENT_QUOTES)));
$category = $row['category'];
$date = $row['date'];

// Just echoing it all out
echo '<b>Submitter:</b> ' . $submitter . '<br><br><b>Title:</b> ' . $title . '<br><br><b>Category:</b> ' . $category . '<br><br><b>Date:</b> ' . $date . '<br><br><center><img src="' . $url . '"></center>';

?>

 

Displays like this:

 

corey.JPG

Link to comment
Share on other sites

Fixed, thanks dude.

 

When I scanned with "SQL Injection Me", I got like 17 errors on some pages (when logged in and on some picture pages I think) that I didn't really know what meant (where the problems were). If someone would take a few minutes to look for it, I would very much appreciate it.

Link to comment
Share on other sites

×
×
  • 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.