Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Allowing Unwanted Query String Variables


Kahless - 9:54 pm on Jan 30, 2010 (gmt 0)


They can specify all the extra values they like and it'll make no difference - so why 404 it?

I was concerned they could use the url for some nefarious purpose I am not familiar with. So as long as my app is ignoring it I am ok then so something like this is not a concern?

test.com?id=233&f=http://www.someothersite.com/dosomething

But something like this I still have to 404 and strip <script>bad code</script> I assume?

test.com?id=233&f=http://www.othersite.com/dosomething<script>bad code</script>


Thread source:: http://www.webmasterworld.com/php/4071164.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com