The site basically uses a querystring item to load text from a .txt file, eg:
- Code: Select all
http://example.org/info.php?title=foobar
will load the txt file "files/foobar.txt" and display it inside the page.
I can load the robots.txt file into the page like so:
- Code: Select all
http://example.org/info.php?title=../robots
I think the include code probably looks something like this:
- Code: Select all
include("files/" . $_GET["title"] . ".txt");
Could anything malicious be done here, or am I barking up the wrong tree?
He also has a mailing list form on another page, this is obviously doing an insert SQL operation and I'm guessing it may be suseptable to SQL injection.. what kind of injection could be used within this insert statement that could cause problems for my friend?






