Changeset 6699

Show
Ignore:
Timestamp:
09/12/08 08:06:35 (3 months ago)
Author:
sasargen
Message:

basic fix of #3184 for ARI in 2.5

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.5/amp_conf/htdocs/recordings/includes/main.conf.php

    r6595 r6699  
    6868 
    6969# 
    70 # Admin only account 
     70# Admin only account - change defaults to prevent unauthorized access to call recordings 
    7171# 
    7272$ARI_ADMIN_USERNAME = "admin"; 
     
    7979 
    8080# 
    81 # Authentication password to unlock cookie password 
     81# Authentication password to unlock cookie password and voicemail links 
    8282#   This must be all continuous and only letters and numbers 
     83#   Change this password to prevent unauthorized access to voicemail and call recordings 
    8384# 
    8485$ARI_CRYPT_PASSWORD = "z1Mc6KRxA7Nw90dGjY5qLXhtrPgJOfeCaUmHvQT3yW8nDsI2VkEpiS4blFoBuZ"; 
  • freepbx/branches/2.5/amp_conf/htdocs/recordings/misc/audio.php

    r6456 r6699  
    1919  $path = $crypt->decrypt($_GET['recording'],$ARI_CRYPT_PASSWORD); 
    2020 
    21   // strip ".." from path for security 
    22   $path = preg_replace('/\.\./','',$path); 
     21  // strip ".." from path and retrieve absolute path from filesystem for security 
     22  $path = realpath(preg_replace('/\.\./','',$path)); 
    2323   
    2424  // See if the file exists 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads