- Код: Выделить всё
##############################################################
## MOD Title: Anti-Net-Worm.Perl.Santy
## MOD Author: Xpert < xpert@phpbbguru.net > http://www.phpbbguru.net
## MOD Description: This mod will protect your community from generationg heavy traffic
## while worms' vulnerabibities scanning.
## MOD Version: 1.1.0
##
## Installation Level: Easy
## Installation Time: 1 Minute
## Files To Edit (1): common.php
##
## Included Files (0): (n/a)
##############################################################
## For Security Purposes, Please Check: http://www.phpbbguru.net/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbbguru.net/mods/
##############################################################
## Author Notes:
##
## Everyone knows that phpBB 2.0.10 contains "highlight vulnerability" and there is
## a number of exploits for this version and a number of worms that use the vulnerability.
## When the worm starts to scan your community, it may cause heavy load & big traffic.
## I've got such a problem and i hope the solution is here.
##
## Special thanks to chyduskam < chuduskam@debilarius.ru > for his help while developing this mod.
##
##############################################################
## MOD History:
##
## 2004-12-28 - Version 1.1.0
## - Changed strpos to strstr because it's more universal
## Thanks to The_Master
##
## 2004-12-28 - Version 1.0.0
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
common.php
#
#-----[ FIND ]------------------------------------------
#
//
// addslashes to vars if magic_quotes_gpc is off
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// [begin] Anti-Net-Worm.Perl.Santy mod
if ( strstr(urlencode($HTTP_GET_VARS['highlight']), '%2527') != FALSE )
{
die('Anti-Net-Worm.Perl.Santy mod');
}
// [end] Anti-Net-Worm.Perl.Santy mod
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Мод предназначен для защиты от червей, эксплуатирующих критическую уязвимость, обнаруженную в phpBB версии 2.0.10. Оборотная сторона действия данных червей - даже если форум у вас обновлен и все уязвимости закрыты, сканирование, которое произвдит червь, способно вызвать большую нагрузку на сервер и (возможно) перерасход трафика. Данный мод проверяет входные данные, и если они кажутся ему подозрительными, скрипт прекращает свою работу; делается это на самом раннем этапе и поэтому относительно исходного варианта нагрузка минимальна.







