LanceT Posted February 14, 2007 Share Posted February 14, 2007 I see a lot of message boards being hacked and defaced by third-parties. So i'm scared because I don't really know anything about PHP security and if these big message board scripts can get hacked, then how can I protect my script? Any general tips I should follow? Link to comment https://forums.phpfreaks.com/topic/38435-php-hacking-and-defacing/ Share on other sites More sharing options...
artacus Posted February 14, 2007 Share Posted February 14, 2007 Well a lot of those get hacked because their source code is freely available so if there is a page that is vulnerable to cross site scripting or sql injection its easier to find. Then, once a vulnerability is found, its easy to search for other sites using that software and hack them. So those are two strikes you won't have against you. But to answer your question, don't trust anything that comes from the user (cookies, get, post, etc) Link to comment https://forums.phpfreaks.com/topic/38435-php-hacking-and-defacing/#findComment-184387 Share on other sites More sharing options...
LanceT Posted February 15, 2007 Author Share Posted February 15, 2007 Well a lot of those get hacked because their source code is freely available so if there is a page that is vulnerable to cross site scripting or sql injection its easier to find. Then, once a vulnerability is found, its easy to search for other sites using that software and hack them. So those are two strikes you won't have against you. But to answer your question, don't trust anything that comes from the user (cookies, get, post, etc) alright that's good to hear. What I am currently doing to check if the passwords match is first check if the set cookie's username matches the database username as well as the set cookie's password matches the database's password before allowing a user to have any access to confidential pages. Is this a good way to prevent hacking? Link to comment https://forums.phpfreaks.com/topic/38435-php-hacking-and-defacing/#findComment-185046 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.