Mar 8, 2012

HTS Realistic Mission 3


Solution to HACK THIS SITE . ORG Realistic Missions
From Dexter’s Lab
The realistic missions from the site Hackthissite.org is really very fascinating and overwhelming. I am considering you know a little bit about the programming things. If not then I am sorry for you because these things may seems too tough for you.

REALISTIC MISSION 3

DIRECTORY TRANSVERSAL METHOD
Reading the source code to a page is probably the first thing you should do just to get an idea of what the page is made of. After I read the source code I found this html comment:

"Note to the webmaster. This website has been hacked, but not totally destroyed. The old website is still up. I simply copied the old index.html file to oldindex.html and remade this one. Sorry about the inconvenience."

at the bottom. That's right the hacker was nice enough to tell us where he put the old site.

Since poems are saved and stored online we can assume that the hacker submitted the name of the poem to be:
../index.html

and the poem field is the code indicating the page has been hacked.

Why are we using "../" well if you remember in
 HTS Basic Level 9 directory transversal it means to go up one directory.

So what do we need to do...Well go to oldindex.html view the source and copy the code. Go to the submit page and in the "Name of the Poem" filed enter:
../index.html
and in the "Poem" field paste the source code and submit.
 

No comments:

Post a Comment