Changeset 829751
- Timestamp:
- 12/29/2013 01:23:24 PM (12 years ago)
- Location:
- 6scan-protection/trunk
- Files:
-
- 3 edited
-
admin/includes/common.php (modified) (1 diff)
-
modules/signatures/analyzer.php (modified) (2 diffs)
-
modules/signatures/update.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
6scan-protection/trunk/admin/includes/common.php
r828605 r829751 4 4 die( 'No direct access allowed' ); 5 5 6 define ( 'SIXSCAN_VERSION' , '3.0.5. 2' );6 define ( 'SIXSCAN_VERSION' , '3.0.5.3' ); 7 7 define ( 'SIXSCAN_HTACCESS_VERSION' , '1' ); 8 8 -
6scan-protection/trunk/modules/signatures/analyzer.php
r828605 r829751 100 100 'time' => $current_time)); 101 101 102 @file_put_contents( SIXSCAN_ANALYZER_LOG_FILEPATH , $data_log , FILE_APPEND );102 @file_put_contents( SIXSCAN_ANALYZER_LOG_FILEPATH , $data_log . "\n" , FILE_APPEND ); 103 103 104 104 if ( $analyze_action == 'block' ) … … 155 155 if ( sixscan_signatures_analyzer_is_env_flag_on( "sixscanstrangerequest" ) ){ 156 156 if ( in_array( 'waf_non_standard_req_disable' , $allowed_waf_rules ) && $is_waf_enabled ) 157 return array('block', ' non_getpost_request');158 else 159 $triggered_vuln_type = ' non_getpost_request';157 return array('block', 'request_type_' . $_SERVER['REQUEST_METHOD']); 158 else 159 $triggered_vuln_type = 'request_type_' . $_SERVER['REQUEST_METHOD']; 160 160 } 161 161 -
6scan-protection/trunk/modules/signatures/update.php
r828605 r829751 230 230 /* Escape the dot of current hostname for regexps */ 231 231 $current_hostname = str_replace( "." , "\." , $mixed_site_address[ 'host' ] ); 232 232 if ( substr( $current_hostname, 0, 4) === 'www.' ) 233 $current_hostname = substr($current_hostname, 4); 234 233 235 $vuln_urls = "#Broad-spectrum protection: User agent/referrer injections. XSS,RFI and SQLI prevention 234 236 RewriteCond %{REQUEST_METHOD} ^(OPTIONS|PUT|DELETE|TRACE|CONNECT|PATCH|TRACK|DEBUG) [NC]\n"; … … 246 248 RewriteCond %{REQUEST_METHOD} ^(POST) [NC] 247 249 RewriteCond %{HTTP_REFERER} !^$ 248 RewriteCond %{HTTP_REFERER} !^https?:// " . $current_hostname . " [NC]250 RewriteCond %{HTTP_REFERER} !^https?://(www.)?" . $current_hostname . " [NC] 249 251 RewriteRule .* - [E=sixscansecuritylog:1,E=sixscanwafcsrf:1] - 250 252
Note: See TracChangeset
for help on using the changeset viewer.