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:
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:
and in the “Poem” field paste the source code and submit.