Show
Ignore:
Timestamp:
01/19/11 11:23:45 (2 years ago)
Author:
p_lindheimer
Message:

closes #4749 avoids Asterisk Security Vulnerability by setting a max on outbound CIDs that came in from the system and can cause overflow issues

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.8/core/functions.inc.php

    r10824 r11015  
    14591459          $ext->add($tcontext,$tcustom,'',new ext_gosubif('$["${PREFIX_TRUNK_${DIAL_TRUNK}}" != ""]','sub-flp-${DIAL_TRUNK},s,1')); 
    14601460          $ext->add($tcontext,$tcustom,'',new ext_set('OUTNUM', '${OUTPREFIX_${DIAL_TRUNK}}${DIAL_NUMBER}'));  // OUTNUM is the final dial number 
     1461 
     1462          // Address Security Vulnerability in many earlier versions of Asterisk from an external source tranmitting a 
     1463          // malicious CID that can cause overflows in the Asterisk code. 
     1464          // 
     1465          $ext->add($tcontext, $tcustom, '', new ext_set('CALLERID(number)','${CALLERID(number):0:40}')); 
     1466          $ext->add($tcontext, $tcustom, '', new ext_set('CALLERID(name)','${CALLERID(name):0:40}')); 
     1467 
    14611468          $ext->add($tcontext,$tcustom,'',new ext_dial('${EVAL(${TDIAL_STRING})}','300,${DIAL_TRUNK_OPTIONS}')); 
    14621469          $ext->add($tcontext,$tcustom,'hangit',new ext_hangup()); 
     
    14771484 
    14781485          $ext->add($tcontext,$texten,'',new ext_dial('${TDIAL_STRING}/${OUTNUM}','300,${DIAL_TRUNK_OPTIONS}')); 
     1486          // Address Security Vulnerability in many earlier versions of Asterisk from an external source tranmitting a 
     1487          // malicious CID that can cause overflows in the Asterisk code. 
     1488          // 
     1489          $ext->add($tcontext, $texten, '', new ext_set('CALLERID(number)','${CALLERID(number):0:40}')); 
     1490          $ext->add($tcontext, $texten, '', new ext_set('CALLERID(name)','${CALLERID(name):0:40}')); 
     1491 
    14791492          $ext->add($tcontext,$texten,'hangit',new ext_hangup()); 
    14801493        } 
     
    22812294      $ext->add($context, $exten, '', new ext_macro('hangupcall')); 
    22822295      $ext->add($context, $exten, '', new ext_congestion(20)); 
    2283       $ext->add($context, $exten, 'continue', new ext_noop('Using CallerID ${CALLERID(all)}')); 
     2296 
     2297      // Address Security Vulnerability in many earlier versions of Asterisk from an external source tranmitting a 
     2298      // malicious CID that can cause overflows in the Asterisk code. 
     2299      // 
     2300      $ext->add($context, $exten, 'continue', new ext_set('CALLERID(number)','${CALLERID(number):0:40}')); 
     2301      $ext->add($context, $exten, '', new ext_set('CALLERID(name)','${CALLERID(name):0:40}')); 
     2302 
     2303      $ext->add($context, $exten, '', new ext_noop('Using CallerID ${CALLERID(all)}')); 
    22842304      $ext->add($context, 'h', '', new ext_macro('hangupcall')); 
    22852305       
  • modules/branches/2.8/core/module.xml

    r10827 r11015  
    44  <category>Basic</category> 
    55  <name>Core</name> 
    6   <version>2.8.0.7</version> 
     6  <version>2.8.0.8</version> 
    77  <publisher>FreePBX</publisher> 
    88  <license>GPLv2+</license> 
     
    1010  <canuninstall>no</canuninstall> 
    1111  <changelog> 
     12    *2.8.0.8* #4749 (Avoid Asterisk Security Vulnerability) 
    1213    *2.8.0.7* #4689, #4697, #4730 
    1314    *2.8.0.6* #4634, #4453, #4563