kevinkorb Posted February 10, 2007 Share Posted February 10, 2007 Basically I have this code $myFile = $_GET['file']; include("/www/mySite.com/include_$myFile"); How would I access a file http://www.different_server.com/inject.txt into here? Is this possible? Thanks. Link to comment https://forums.phpfreaks.com/topic/37851-include-vulnerability-can-you-hack/ Share on other sites More sharing options...
hvle Posted February 10, 2007 Share Posted February 10, 2007 Chances are you will get parsing error because you're trying to include a html file over http. unless that file is a valid PHP script. Link to comment https://forums.phpfreaks.com/topic/37851-include-vulnerability-can-you-hack/#findComment-181195 Share on other sites More sharing options...
kevinkorb Posted February 10, 2007 Author Share Posted February 10, 2007 Chances are you will get parsing error because you're trying to include a html file over http. unless that file is a valid PHP script. Actually in PHP 4.3+ you can include http requests in includes unless allow_url_fopen is set to On. Link to comment https://forums.phpfreaks.com/topic/37851-include-vulnerability-can-you-hack/#findComment-181199 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.