Re:I think tumblr has a huge security hole
by drdaeman on Saturday March 19, 2011 @09:12AM
(#2343507)
I believe you are wrong. include()/require() would equally happily display any file's contents outside of `<?php ... ?>` scope (the case with "i?php"), within document root or not.
Re:I think tumblr has a huge security hole
by CWIZO on Saturday March 19, 2011 @10:07AM
(#2343605)
Off course, but in this case, passwords would only be exposed if the config file had a miss-typed opening PHP tag. If "test.php" had it, you wouldn't be able to see the contents of "test2.php".
Re:I think tumblr has a huge security hole
by CWIZO on Saturday March 19, 2011 @10:14AM
(#2343618)
Sure, I was replying for this hypothetical situation that you guys ware discussing, where they would store passwords in a different file outside of webroot ...
Edit: I've tested this: