Changeset 1389771
- Timestamp:
- 04/07/2016 10:25:30 PM (10 years ago)
- Location:
- gauntlet-security
- Files:
-
- 4 added
- 16 edited
- 1 copied
-
tags/1.4.0 (copied) (copied from gauntlet-security/trunk)
-
tags/1.4.0/README.txt (modified) (4 diffs)
-
tags/1.4.0/admin/assets/css/admin.css (modified) (1 diff)
-
tags/1.4.0/admin/assets/js/admin.js (modified) (1 diff)
-
tags/1.4.0/admin/includes/classes/gus_DirectoryIndexing.php (modified) (1 diff)
-
tags/1.4.0/admin/includes/classes/gus_HidePhpVersion.php (added)
-
tags/1.4.0/admin/includes/classes/gus_PhpVersion.php (added)
-
tags/1.4.0/admin/includes/classes/gus_SslAdmin.php (modified) (2 diffs)
-
tags/1.4.0/admin/includes/classes/gus_StrayFiles.php (modified) (3 diffs)
-
tags/1.4.0/admin/includes/classes/gus_TestRunner.php (modified) (2 diffs)
-
tags/1.4.0/gauntlet-security.php (modified) (1 diff)
-
trunk/README.txt (modified) (4 diffs)
-
trunk/admin/assets/css/admin.css (modified) (1 diff)
-
trunk/admin/assets/js/admin.js (modified) (1 diff)
-
trunk/admin/includes/classes/gus_DirectoryIndexing.php (modified) (1 diff)
-
trunk/admin/includes/classes/gus_HidePhpVersion.php (added)
-
trunk/admin/includes/classes/gus_PhpVersion.php (added)
-
trunk/admin/includes/classes/gus_SslAdmin.php (modified) (2 diffs)
-
trunk/admin/includes/classes/gus_StrayFiles.php (modified) (3 diffs)
-
trunk/admin/includes/classes/gus_TestRunner.php (modified) (2 diffs)
-
trunk/gauntlet-security.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gauntlet-security/tags/1.4.0/README.txt
r1256325 r1389771 2 2 Contributors: cbergen 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RGTZ39B4M83SA 4 Tags: security, secure, vulnerability, exploit, hacks, audit, scanner, virus, multisite, network, gauntlet, checklist, protection 4 Tags: security, secure, vulnerability, exploit, hacks, audit, scanner, virus, multisite, network, gauntlet, checklist, protection, security hardening 5 5 Requires at least: 3.4 6 Tested up to: 4. 3.17 Stable tag: 1. 3.06 Tested up to: 4.5 7 Stable tag: 1.4.0 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 25 25 * Prevent access to any stray files which could be useful to attackers 26 26 * Rename or move the content directory 27 * Keep PHP up-to-date 27 28 * Disable dangerous PHP functions 28 29 * Disable allow_url_include and allow_url_fopen PHP flags 30 * Turn off the display of PHP errors 31 * Don't advertise the PHP version you are running 29 32 * Use a strong database password 30 33 * Change the default database table prefix 31 34 * Keep WordPress up-to-date 32 * Turn off the display of PHP errors33 35 * Turn off file editing in the control panel 34 36 * Set security keys in WP-Config file … … 53 55 * Apache web server 54 56 * WordPress 3.4 minimum 55 * PHP 5.2 minimum57 * PHP 5.2.7 minimum 56 58 57 59 = Disclaimer = … … 107 109 == Changelog == 108 110 111 = 1.4.0 = 112 * New test: Keep PHP up-to-date 113 * New test: Don't advertise the PHP version you are running 114 * Enhancement: Remove deprecated WordPress function, force_ssl_login 115 * Enhancement: Improve colour-coding on plugin check 116 * Enhancement: Add stray file check for "error_log" files 117 * Tested on WordPress 4.5 118 109 119 = 1.3.0 = 110 120 * Enhancement: Add compatibility with WordPress Multisite installs -
gauntlet-security/tags/1.4.0/admin/assets/css/admin.css
r1040048 r1389771 327 327 color:#7F7F7F; 328 328 } 329 329 /* 330 Override critical colours on plugin check 331 */ 332 .gus_PluginAudit table .critical td .okay{ 333 color:#444; 334 } 330 335 331 336 -
gauntlet-security/tags/1.4.0/admin/assets/js/admin.js
r1040048 r1389771 24 24 ['gus_StrayFiles', 'slow'], 25 25 ['gus_WpContentLocation', 2], 26 ['gus_PhpVersion', 2], 26 27 ['gus_PhpFunctions', 2], 27 28 ['gus_PhpAllowUrl', 2], 29 ['gus_PhpDisplayErrors', 2], 30 ['gus_HidePhpVersion', 2], 28 31 ['gus_DbPassword', 2], 29 32 ['gus_WpTable', 2], 30 33 ['gus_WpVersion', 2], 31 ['gus_PhpDisplayErrors', 2],32 34 ['gus_FileEditing', 2], 33 35 ['gus_KeysAndSalts', 2], -
gauntlet-security/tags/1.4.0/admin/includes/classes/gus_DirectoryIndexing.php
r998103 r1389771 62 62 When directory indexing is left on, visitors can navigate to a directory on your site 63 63 and (if there's no index file) view a listing of all the files inside. This information 64 can be useful to hackers who are target ting your site and want to understand the structure64 can be useful to hackers who are targeting your site and want to understand the structure 65 65 and contents of the server. 66 66 -
gauntlet-security/tags/1.4.0/admin/includes/classes/gus_SslAdmin.php
r998103 r1389771 3 3 class gus_SslAdmin extends gus_TestBase 4 4 { 5 private $force_ssl_login = false;6 7 5 protected function main_check() 8 6 { 9 if( force_ssl_login() )10 {11 $this->force_ssl_login = true;12 }13 14 /*15 Even if FORCE_SSL_LOGIN is true,16 if FORCE_SSL_ADMIN is not set, there will be security issues.17 18 https://core.trac.wordpress.org/ticket/10267#comment:2019 20 TODO: This may not be true in WP v.4. The functionality of21 FORCE_SSL_LOGIN may become the same as FORCE_SSL_ADMIN.22 */23 24 7 if( force_ssl_admin() ) 25 8 { … … 54 37 protected function result_text() 55 38 { 56 /*57 FORCE_SSL_ADMIN is not set but FORCE_SSL_LOGIN is: Boo58 */59 if( $this->pass !== 'pass' && $this->force_ssl_login == true )60 {61 return <<<EOD62 63 <p>This site enforces SSL for the login page but not for the general64 admin area. While the act of logging65 in is encrypted, any of the logged-in users' cookies will still be66 accessible over regular HTTP.</p>67 68 <div class='subtests'>69 <table>70 <tbody>71 <tr>72 <td>FORCE_SSL_LOGIN</td>73 <td>true</td>74 </tr>75 <tr>76 <td>FORCE_SSL_ADMIN</td>77 <td><span class="error">false</span></td>78 </tr>79 </tbody>80 </table>81 </div>82 83 EOD;84 }85 86 39 /* 87 40 Neither FORCE_SSL_ADMIN nor FORCE_SSL_LOGIN is set: Boo -
gauntlet-security/tags/1.4.0/admin/includes/classes/gus_StrayFiles.php
r1115774 r1389771 390 390 $description = 'Logs'; 391 391 392 // Common git locations: WP root and Active theme root 393 $common_paths = array(); 392 // Common locations: content directory, plugins directory, and active theme directory 393 $common_paths = array( 394 ABSPATH . 'error_log', 395 WP_CONTENT_DIR . '/error_log', 396 WP_CONTENT_DIR . '/plugins/error_log', 397 get_stylesheet_directory() . '/error_log', 398 ); 394 399 395 400 // Find existing files … … 412 417 'url_blocked' => $url_blocked 413 418 ) ); 419 if($description !== '') 420 { 421 $description = ''; 422 } 414 423 } 415 424 … … 418 427 $this->run_sub_test( array( 419 428 'description' => $description, 420 'path' => 'eg: debug.log ',429 'path' => 'eg: debug.log, error_log', 421 430 'path_exists' => false, 422 431 'url_blocked' => true -
gauntlet-security/tags/1.4.0/admin/includes/classes/gus_TestRunner.php
r1040048 r1389771 19 19 20 20 // PHP configuration 21 $this->tests[] = array('gus_PhpVersion', 'PHP'); 21 22 $this->tests[] = array('gus_PhpFunctions', 'PHP'); 22 23 $this->tests[] = array('gus_PhpAllowUrl', 'PHP'); 24 $this->tests[] = array('gus_PhpDisplayErrors', 'PHP'); 25 $this->tests[] = array('gus_HidePhpVersion', 'PHP'); 23 26 24 27 // Database … … 28 31 // WordPress configuration 29 32 $this->tests[] = array('gus_WpVersion', 'WordPress'); 30 $this->tests[] = array('gus_PhpDisplayErrors', 'WordPress');31 33 $this->tests[] = array('gus_FileEditing', 'WordPress'); 32 34 $this->tests[] = array('gus_KeysAndSalts', 'WordPress'); -
gauntlet-security/tags/1.4.0/gauntlet-security.php
r1256325 r1389771 7 7 * Author: Cornelius Bergen, Matchbox Creative 8 8 * Author URI: http://matchboxcreative.com 9 * Version: 1. 3.09 * Version: 1.4.0 10 10 * Text Domain: gauntlet 11 11 */ -
gauntlet-security/trunk/README.txt
r1256325 r1389771 2 2 Contributors: cbergen 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RGTZ39B4M83SA 4 Tags: security, secure, vulnerability, exploit, hacks, audit, scanner, virus, multisite, network, gauntlet, checklist, protection 4 Tags: security, secure, vulnerability, exploit, hacks, audit, scanner, virus, multisite, network, gauntlet, checklist, protection, security hardening 5 5 Requires at least: 3.4 6 Tested up to: 4. 3.17 Stable tag: 1. 3.06 Tested up to: 4.5 7 Stable tag: 1.4.0 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 25 25 * Prevent access to any stray files which could be useful to attackers 26 26 * Rename or move the content directory 27 * Keep PHP up-to-date 27 28 * Disable dangerous PHP functions 28 29 * Disable allow_url_include and allow_url_fopen PHP flags 30 * Turn off the display of PHP errors 31 * Don't advertise the PHP version you are running 29 32 * Use a strong database password 30 33 * Change the default database table prefix 31 34 * Keep WordPress up-to-date 32 * Turn off the display of PHP errors33 35 * Turn off file editing in the control panel 34 36 * Set security keys in WP-Config file … … 53 55 * Apache web server 54 56 * WordPress 3.4 minimum 55 * PHP 5.2 minimum57 * PHP 5.2.7 minimum 56 58 57 59 = Disclaimer = … … 107 109 == Changelog == 108 110 111 = 1.4.0 = 112 * New test: Keep PHP up-to-date 113 * New test: Don't advertise the PHP version you are running 114 * Enhancement: Remove deprecated WordPress function, force_ssl_login 115 * Enhancement: Improve colour-coding on plugin check 116 * Enhancement: Add stray file check for "error_log" files 117 * Tested on WordPress 4.5 118 109 119 = 1.3.0 = 110 120 * Enhancement: Add compatibility with WordPress Multisite installs -
gauntlet-security/trunk/admin/assets/css/admin.css
r1040048 r1389771 327 327 color:#7F7F7F; 328 328 } 329 329 /* 330 Override critical colours on plugin check 331 */ 332 .gus_PluginAudit table .critical td .okay{ 333 color:#444; 334 } 330 335 331 336 -
gauntlet-security/trunk/admin/assets/js/admin.js
r1040048 r1389771 24 24 ['gus_StrayFiles', 'slow'], 25 25 ['gus_WpContentLocation', 2], 26 ['gus_PhpVersion', 2], 26 27 ['gus_PhpFunctions', 2], 27 28 ['gus_PhpAllowUrl', 2], 29 ['gus_PhpDisplayErrors', 2], 30 ['gus_HidePhpVersion', 2], 28 31 ['gus_DbPassword', 2], 29 32 ['gus_WpTable', 2], 30 33 ['gus_WpVersion', 2], 31 ['gus_PhpDisplayErrors', 2],32 34 ['gus_FileEditing', 2], 33 35 ['gus_KeysAndSalts', 2], -
gauntlet-security/trunk/admin/includes/classes/gus_DirectoryIndexing.php
r998103 r1389771 62 62 When directory indexing is left on, visitors can navigate to a directory on your site 63 63 and (if there's no index file) view a listing of all the files inside. This information 64 can be useful to hackers who are target ting your site and want to understand the structure64 can be useful to hackers who are targeting your site and want to understand the structure 65 65 and contents of the server. 66 66 -
gauntlet-security/trunk/admin/includes/classes/gus_SslAdmin.php
r998103 r1389771 3 3 class gus_SslAdmin extends gus_TestBase 4 4 { 5 private $force_ssl_login = false;6 7 5 protected function main_check() 8 6 { 9 if( force_ssl_login() )10 {11 $this->force_ssl_login = true;12 }13 14 /*15 Even if FORCE_SSL_LOGIN is true,16 if FORCE_SSL_ADMIN is not set, there will be security issues.17 18 https://core.trac.wordpress.org/ticket/10267#comment:2019 20 TODO: This may not be true in WP v.4. The functionality of21 FORCE_SSL_LOGIN may become the same as FORCE_SSL_ADMIN.22 */23 24 7 if( force_ssl_admin() ) 25 8 { … … 54 37 protected function result_text() 55 38 { 56 /*57 FORCE_SSL_ADMIN is not set but FORCE_SSL_LOGIN is: Boo58 */59 if( $this->pass !== 'pass' && $this->force_ssl_login == true )60 {61 return <<<EOD62 63 <p>This site enforces SSL for the login page but not for the general64 admin area. While the act of logging65 in is encrypted, any of the logged-in users' cookies will still be66 accessible over regular HTTP.</p>67 68 <div class='subtests'>69 <table>70 <tbody>71 <tr>72 <td>FORCE_SSL_LOGIN</td>73 <td>true</td>74 </tr>75 <tr>76 <td>FORCE_SSL_ADMIN</td>77 <td><span class="error">false</span></td>78 </tr>79 </tbody>80 </table>81 </div>82 83 EOD;84 }85 86 39 /* 87 40 Neither FORCE_SSL_ADMIN nor FORCE_SSL_LOGIN is set: Boo -
gauntlet-security/trunk/admin/includes/classes/gus_StrayFiles.php
r1115774 r1389771 390 390 $description = 'Logs'; 391 391 392 // Common git locations: WP root and Active theme root 393 $common_paths = array(); 392 // Common locations: content directory, plugins directory, and active theme directory 393 $common_paths = array( 394 ABSPATH . 'error_log', 395 WP_CONTENT_DIR . '/error_log', 396 WP_CONTENT_DIR . '/plugins/error_log', 397 get_stylesheet_directory() . '/error_log', 398 ); 394 399 395 400 // Find existing files … … 412 417 'url_blocked' => $url_blocked 413 418 ) ); 419 if($description !== '') 420 { 421 $description = ''; 422 } 414 423 } 415 424 … … 418 427 $this->run_sub_test( array( 419 428 'description' => $description, 420 'path' => 'eg: debug.log ',429 'path' => 'eg: debug.log, error_log', 421 430 'path_exists' => false, 422 431 'url_blocked' => true -
gauntlet-security/trunk/admin/includes/classes/gus_TestRunner.php
r1040048 r1389771 19 19 20 20 // PHP configuration 21 $this->tests[] = array('gus_PhpVersion', 'PHP'); 21 22 $this->tests[] = array('gus_PhpFunctions', 'PHP'); 22 23 $this->tests[] = array('gus_PhpAllowUrl', 'PHP'); 24 $this->tests[] = array('gus_PhpDisplayErrors', 'PHP'); 25 $this->tests[] = array('gus_HidePhpVersion', 'PHP'); 23 26 24 27 // Database … … 28 31 // WordPress configuration 29 32 $this->tests[] = array('gus_WpVersion', 'WordPress'); 30 $this->tests[] = array('gus_PhpDisplayErrors', 'WordPress');31 33 $this->tests[] = array('gus_FileEditing', 'WordPress'); 32 34 $this->tests[] = array('gus_KeysAndSalts', 'WordPress'); -
gauntlet-security/trunk/gauntlet-security.php
r1256325 r1389771 7 7 * Author: Cornelius Bergen, Matchbox Creative 8 8 * Author URI: http://matchboxcreative.com 9 * Version: 1. 3.09 * Version: 1.4.0 10 10 * Text Domain: gauntlet 11 11 */
Note: See TracChangeset
for help on using the changeset viewer.