People who are coding PHP user systems and not thinking about security, you need to think about it more lmao.
For instance, make sure you include some sort of hash for the logout.
My example (Sorry whoever coded this) will be HabbCrazy:
http://www.habbcrazy.net/bth_v4/bth_logout.php
This is a small example and not really dangerous. I could make a directory on a site called http://mysite.com/preview and tell people it's a preview, but it could actually log them out of habbcrazy. All it takes is
at the top of the page. This is for educational purposes by the way guys, hence why I am not going to post any exploits I have found in places.Code:<img src="http://www.habbcrazy.net/bth_v4/bth_logout.php" style="display:none;">
But all you need to do is add a hash. Notice the vBulletin logout.
The malicious site could also link to http://www.habbcrazy.net/bth_v4/shout_do.php?act=send
That sends a blank message to their shoutbox. Obviously the user that was linked to the potentially malicious site would do it.
Now, imagine they did
Now, I don't know if HabbCrazy has an automatic blocker, but if it didn't, the user who goes on the potentially malicious site will have just posted 10 BLANK shouts to the shoutbox and get banned.Code:<img src="http://www.habbcrazy.net/bth_v4/shout_do.php?act=send"> <img src="http://www.habbcrazy.net/bth_v4/shout_do.php?act=send"> <img src="http://www.habbcrazy.net/bth_v4/shout_do.php?act=send"> <img src="http://www.habbcrazy.net/bth_v4/shout_do.php?act=send"> <img src="http://www.habbcrazy.net/bth_v4/shout_do.php?act=send"> <img src="http://www.habbcrazy.net/bth_v4/shout_do.php?act=send"> <img src="http://www.habbcrazy.net/bth_v4/shout_do.php?act=send"> <img src="http://www.habbcrazy.net/bth_v4/shout_do.php?act=send"> <img src="http://www.habbcrazy.net/bth_v4/shout_do.php?act=send"> <img src="http://www.habbcrazy.net/bth_v4/shout_do.php?act=send">
This is obvious to some of us but unknown to alot.
Hashes are a good way to secure sites. Do not rely on $_SERVER["SERVER_NAME"] or whatever.
Oh, to conclude: I'm really sorry for using HabbCrazy as an example. There are much worse systems out there. Whoever coded the system had to do loads of work and did a good job. Just missed a few things.
Note: If admins / mods find this as talking about hacking or whatever, then please delete this threadI am just trying to educate some people.





I am just trying to educate some people.

Reply With Quote




