Changeset 7609
- Timestamp:
- 05/02/09 11:59:29 (4 years ago)
- Files:
-
- modules/branches/2.6/weakpasswords/functions.inc.php (modified) (2 diffs)
- modules/branches/2.6/weakpasswords/module.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.6/weakpasswords/functions.inc.php
r7525 r7609 13 13 14 14 function weakpasswords_get_config($engine) { 15 switch($engine) {16 case "asterisk":15 switch($engine) { 16 case "asterisk": 17 17 // Clear all weak password notifications 18 18 $nt = notifications::create($db); … … 26 26 $weak = weakpasswords_get_users(); 27 27 if(sizeof($weak) > 0) { 28 $extended_text = _("Warning: The use of SIP/IAX passwords that are weak can allow hackers to make brute force registrations and possibly make calls through your PBX. It is strongly recommended, you choose strong secrets.")."<br>";28 $extended_text = _("Warning: The use of weak SIP/IAX passwords can compromise this system resulting in toll theft of your telephony service. You should change the reported devices and trunks to use strong secrets.")."<br /><br />"; 29 29 $count = 0; 30 30 foreach($weak as $details) { 31 $extended_text .= sprintf(_("%s %s has a weak secret of %s:%s<br>"), $details['deviceortrunk'], $details['name'], $details['secret'], $details['message']);31 $extended_text .= sprintf(_("%s: %s / secret: %s => %s<br>"), $details['deviceortrunk'], $details['name'], $details['secret'], $details['message']); 32 32 $count++; 33 33 } 34 $nt->add_security("weakpasswords", "all", $count." "._("extensions/trunks has weak secrets"),$extended_text); 35 36 34 if ($count == 1) { 35 $nt->add_security("weakpasswords", "all", $count." "._("extension/trunk has weak secret"),$extended_text); 36 } else { 37 $nt->add_security("weakpasswords", "all", $count." "._("extensions/trunks have weak secrets"),$extended_text); 38 } 37 39 } 38 40 break; modules/branches/2.6/weakpasswords/module.xml
r7525 r7609 2 2 <rawname>weakpasswords</rawname> 3 3 <name>Weak Password Detection</name> 4 <version>2.5.0. 1</version>5 <type> setup</type>6 <category> Internal Options & Configuration</category>4 <version>2.5.0.2</version> 5 <type>tool</type> 6 <category>System Administration</category> 7 7 <changelog> 8 *2.5.0.2* changes to warning msg, moved to Tools tab, System Administration 8 9 *2.5.0.1* Consolidated individual security notices to a single notice with all details in extended text 9 10 *2.5.0.0* Initial release
