From 9fb3426e26f9ae0e0ff620a66a9d75fca543a302 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 20 Jul 2013 13:30:14 +0000 Subject: [PATCH] Wrappers like data://, tcp:// et cetera now blacklisted --- libs/lib_detector.php | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/libs/lib_detector.php b/libs/lib_detector.php index 8064ce9..8c1e22d 100644 --- a/libs/lib_detector.php +++ b/libs/lib_detector.php @@ -56,23 +56,20 @@ function initCrackerTrackerArrays () { '$_request', '$_get', '$request', '$get', '.system', 'HTTP_PHP', '&aim', '%20getenv', 'getenv%20', 'new_password', '&icq', '/self/', '/environ', '/shadow', '/gshadow', '/etc/', '/passwd', 'HTTP_USER_AGENT', 'HTTP_HOST', 'wget%20', 'uname\x20-', 'uname%20-', 'bin/id', '/bin/', '/chgrp', - '/chown', '/usr/bin', 'g\+\+', 'bin/python', 'bin/tclsh', 'bin/nasm', 'perl%20', 'traceroute%20', - 'ping%20', 'bin/xterm', 'lsof%20', '.conf', 'motd%20', 'HTTP/1.', '.inc.php', '.lib.php', '.class.php', - 'config.php', 'file\://', 'window.open', 'javascript\://', 'img src', 'img%20src', '.jsp', - 'ftp.exe', 'xp_enumdsn', 'xp_availablemedia', 'xp_filelist', 'xp_cmdshell', 'nc.exe', '.htpasswd', - 'servlet', '/etc/passwd', 'wwwacl', '~root', '~ftp', '.js', '.jsp', '.history', 'bash_history', + '/chown', '/chmod', 'chown%20', 'chmod%20', 'chgrp%20', '/usr/bin', 'g++', 'c++', 'bin/python', + 'bin/tclsh', 'bin/nasm', 'perl%20', 'traceroute%20', 'ping%20', 'bin/xterm', 'lsof%20', '.conf', + 'motd%20', 'HTTP/1.', '.inc.php', '.lib.php', '.class.php', 'config.php', 'file\://', 'file://', + 'window.open', 'javascript\://', 'img src', 'img%20src', '.jsp', 'ftp.exe', 'xp_enumdsn', + 'xp_availablemedia', 'xp_filelist', 'xp_cmdshell', 'nc.exe', '.htpasswd', 'servlet', + '/etc/passwd', 'wwwacl', '~root', '~ftp', '.js', '.jsp', '.history', 'bash_history', '.bash_history', '~nobody', 'server-info', 'server-status', 'reboot%20', 'halt%20', 'powerdown%20', '/home/ftp', '/home/www', 'secure_site, ok', 'chunked', 'org.apache', '/servlet/con', '', 'sql=', - 'div style=', 'overflow: auto', 'height: 1px', 'cc%20', 'admin_action=', 'path=', 'starhack', 'busca', - // @TODO These two lines may block DokuWiki searches for e.g. http_request2_response - 'action=http', 'page=http', 'module=http', 'op=http', 'id=http', - 'action%3Dhttp', 'page%3Dhttp', 'module%3Dhttp', 'op%3Dhttp', 'id%3Dhttp', '/groups', - '../../','..//', 'directory=http', 'dir=http', + 'select from', 'drop%20', '.system', 'getenv', 'http_', '_php', 'php_', 'phpinfo()', '\', 'sql=', + 'div style=', 'overflow: auto', 'height: 1px', 'cc%20', 'path=', 'starhack', 'busca', 'uol.com', '=http://', '=https://','=ftp://','=file://','_SESSION','CFG_ROOT','/proc/', ',0x', '(0x', '=%7BQUOT%7D', '=%5C', 'DOCUMENT_ROOT', '_SERVER','=%22http','=%22ftp','=%22file','=%27http','=%27ftp', - '=%27file' + '../../','..//', '=%27file', 'data://', 'tcp://', 'udp://', 'raw://' ); // Block these words found in POST requests -- 2.39.5