Jump to content

Image "Scraper" Site


drath

Recommended Posts

Google Imagizer

http://googleimagizer.info/

 

Everything seems to be working, put I am guessing there might be ways you can break the search results with code or something. The method of detecting broken images also seems a little slow sometimes, and sometimes it won't detect a broken image at all (don't know why). I don't think the PHP code itself is slow, just the specific image hosts. That code is as follows:

 

if(!file($link)) {
$broken++;
echo "<div class=\"imgblock\">Image appears to be broken at <a href=\"$imageurl\">$imageurl</a></div>";
} else {
echo "<div class=\"imgblock\"><img src=\"$imageurl\" alt=\"$searchquery\" /><br/><a href=\"$imageurl\">$imageurl</a></div>";
}

 

Other than that, I don't see any problems with the system. I'm basically just looking for people to test, and give me criticism.

Link to comment
Share on other sites

Vulnerability description

This script is possibly vulnerable to Cross Site Scripting (XSS) attacks.

 

Cross site scripting (also referred to as XSS) is a vulnerability that allows an attacker to send malicious code (usually in the form of Javascript) to another user. Because a browser cannot know if the script should be trusted or not, it will execute the script in the user context allowing the attacker to access any cookies or session tokens retained by the browser.

 

 

How to fix this vulnerability

Your script should filter metacharacters from user input. trim() and strip_tags() ;)'

files affected: /index.php

 

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.