Author |
Message |
Dauthus
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/42520917428009cb57e55.jpg)
Joined: Oct 07, 2003
Posts: 211
|
Posted:
Sun Jul 16, 2006 1:53 pm |
|
Clicking on the link to report suspected cheating bans the user. Here's the email:
I checked this myself and it does ban the user. I know the problem is in the "&surl=http://" section of the code.
I guess what I am asking here is if I can keep adding modules to the XSS attack in the following manner:
Code:// Check for XSS attack
if( eregi("http\:\/\/", $name) OR eregi("http\:\/\/", $file) OR eregi("http\:\/\/", $libpath)
// Added protection for gallery2 module
//OR stristr($nsnst_const['query_string'], "http://")
OR ( stristr($nsnst_const['query_string'], "http://") AND !stristr($nsnst_const['query_string'], "modules.php?name=gallery2"))
// END gallery2 protection
// ADD MS Topsites protection
OR ( stristr($nsnst_const['query_string'], "http://") AND !stristr($nsnst_const['query_string'], "modules.php?name=MS_TopSites"))
// END MS Topsites protection
OR ( stristr($nsnst_const['query_string'], "cmd=") AND !stristr($nsnst_const['query_string'], "&cmd") )
OR ( stristr($nsnst_const['query_string'], "exec") AND !stristr($nsnst_const['query_string'], "execu") )
OR stristr($nsnst_const['query_string'],"concat") AND !stristr($nsnst_const['query_string'], "../") ) {
block_ip($blocker_row);
}
}
|
Is it OK to just keep adding modules as they are needed? |
_________________ Only registered users can see links on this board! Get registered or login!
Vivere disce, cogita mori |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
Site Admin
![](modules/Forums/images/avatars/41f0b40a419280935f3a0.gif)
Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Sun Jul 16, 2006 6:17 pm |
|
Looks like it's trying VERY hard to prevent more than just XSS. I guess you can keep adding... |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
Former Moderator in Good Standing
![](modules/Forums/images/avatars/803d73f6452557b947721.jpg)
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Sun Jul 16, 2006 11:17 pm |
|
Now does MS_Topsites need to be passing the full URL at all? It would be best to rewrite it if possible using ID numbers |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jul 17, 2006 4:54 am |
|
To clarify, I think evaders99 means to change MS_Topsites. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
Sells PC To Pay For Divorce
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined:
Posts: 5661
|
Posted:
Mon Jul 17, 2006 5:45 am |
|
lol....but http://majestic12.co.uk/bot.php isnt a user..
thats a very annoying bot .
however the banning part does happen....last week a member got banned after rating a site... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nagahosting
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/7aa2c4294738bb8da66a8.jpg)
Joined: Nov 03, 2007
Posts: 52
Location: Nagalim
|
Posted:
Fri Dec 28, 2007 7:53 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Dec 29, 2007 2:49 am |
|
That is because you are using parenthesis in the video name. Just remove those parenthesis.
This also happens on the Downloads module |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nagahosting
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Dec 30, 2007 6:19 am |
|
Oh thank you so much evaders99 I will check that out:) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|