- Joined
- Jul 8, 2005
- Messages
- 5,711
- Likes received
- 39
- Thanks received
- 34
I was thinking more along the lines of people I have seen doing.
?page=../templates/index2.php
then it just does an include($_GET['page'])
To display a new page from one document. Easily abusable. Thats what I thought was happening in this case.
My point was that even if you make a drop down list to select pages and then use POST you can still abuse the process by tinkering with the page html. Add a new option to the dropdown that links to a remote site and then submit the form via POST. As easily to abuse as your suggestion, and doesn't take much longer to do.
The only way to get round the abuse is to verify what is in $_GET['page'] / $_POST['page'] / $_REQUEST['page'] before you use it in the rest of your code.
)