Changeset 6765

Show
Ignore:
Timestamp:
09/17/08 11:42:10 (3 months ago)
Author:
p_lindheimer
Message:

fixed #3209 Merged revisions 6764 via svnmerge from
http://svn.freepbx.org/freepbx/branches/2.5

........

r6764 | p_lindheimer | 2008-09-17 11:29:39 -0700 (Wed, 17 Sep 2008) | 1 line


fixes #3209 Reports SECURITY VULNERABILITY by forcing all access to the CDR Reports section to flow through config.php

........

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.4

    • Property svnmerge-integrated changed from /freepbx/branches/2.3:1-4129,4131,4133-4134,4136-4995,5088,5135,5140,5194 /freepbx/branches/2.5:1-6424,6563 /freepbx/trunk:1-5453,5736,5739,5748,5750,5758,5760,5765,5771,5773,5779,5782,5819,5827,5836,5838,5965,5974,6045,6056,6144,6215,6220,6226,6321-6322 to /freepbx/branches/2.3:1-4129,4131,4133-4134,4136-4995,5088,5135,5140,5194 /freepbx/branches/2.5:1-6424,6563,6764 /freepbx/trunk:1-5453,5736,5739,5748,5750,5758,5760,5765,5771,5773,5779,5782,5819,5827,5836,5838,5965,5974,6045,6056,6144,6215,6220,6226,6321-6322
  • freepbx/branches/2.4/amp_conf/bin/retrieve_conf

    r6145 r6765  
    330330        } 
    331331} 
     332// Now also make sure to symlink the CDR images which is not a proper module 
     333// 
     334symlink_subdirs( $amp_conf['AMPWEBROOT'].'/admin/cdr/'); 
    332335 
    333336// create an object of the extensions class 
  • freepbx/branches/2.4/amp_conf/htdocs/admin/cdr/about.php

    r3052 r6765  
    3535                <title>Asterisk CDR</title> 
    3636                <meta http-equiv="Content-Type" content="text/html"> 
    37                 <link rel="stylesheet" type="text/css" media="print" href="/css/print.css"> 
    38                 <SCRIPT LANGUAGE="JavaScript" SRC="./encrypt.js"></SCRIPT> 
     37                <link rel="stylesheet" type="text/css" media="print" href="common/print.css"> 
     38                <SCRIPT LANGUAGE="JavaScript" SRC="common/encrypt.js"></SCRIPT> 
    3939                <style type="text/css" media="screen"> 
    40                         @import url("css/layout.css"); 
    41                         @import url("css/content.css"); 
    42                         @import url("css/docbook.css"); 
     40                        @import url("common/layout.css"); 
     41                        @import url("common/content.css"); 
     42                        @import url("common/docbook.css"); 
    4343                </style> 
    4444                <meta name="MSSmartTagsPreventParsing" content="TRUE"> 
  • freepbx/branches/2.4/amp_conf/htdocs/admin/cdr/call-comp.php

    r5360 r6765  
    252252<!-- ** ** ** ** ** Part for the research ** ** ** ** ** --> 
    253253        <center> 
    254         <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php echo $current_page?>"> 
     254        <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?handler=cdr&s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php echo $current_page?>"> 
    255255        <INPUT TYPE="hidden" NAME="posted" value=1> 
    256256                <table class="bar-status" width="75%" border="0" cellspacing="1" cellpadding="2" align="center"> 
     
    517517</td></tr></tbody></table> 
    518518        <br> 
    519         <IMG SRC="graph_stat.php?min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" ALT="Stat Graph"> 
     519        <IMG SRC="common/graph_stat.php?min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" ALT="Stat Graph"> 
    520520 
    521521<?php  }else{ ?> 
  • freepbx/branches/2.4/amp_conf/htdocs/admin/cdr/call-daily-load.php

    r5360 r6765  
    225225<!-- ** ** ** ** ** Part for the research ** ** ** ** ** --> 
    226226        <center> 
    227         <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php echo $current_page?>"> 
     227        <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?handler=cdr&s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php echo $current_page?>"> 
    228228        <INPUT TYPE="hidden" NAME="posted" value=1> 
    229229                <table class="bar-status" width="75%" border="0" cellspacing="1" cellpadding="2" align="center"> 
     
    477477</td></tr></tbody></table> 
    478478        <br> 
    479         <IMG SRC="graph_statbar.php?min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" ALT="Stat Graph"> 
     479        <IMG SRC="common/graph_statbar.php?min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" ALT="Stat Graph"> 
    480480 
    481481 
     
    485485<br/> 
    486486        <center>Select the hour interval to see the details 
    487         <FORM METHOD=POST ACTION="graph_hourdetail.php?posted=<?php echo $posted?>&min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" target="superframe">             
     487        <FORM METHOD=POST ACTION="common/graph_hourdetail.php?posted=<?php echo $posted?>&min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" target="superframe">              
    488488        <!-- ** ** ** ** ** HOURLY LOAD ** ** ** ** ** --> 
    489489                <table class="bar-status" width="60%" border="0" cellspacing="1" cellpadding="2" align="center"> 
     
    534534<br> 
    535535<center> 
    536     <iframe name="superframe" src="graph_hourdetail.php?posted=<?php echo $posted?>&min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" BGCOLOR=white  width=770 height=800 marginWidth=0 marginHeight=0  frameBorder=0  scrolling=yes> 
     536    <iframe name="superframe" src="common/graph_hourdetail.php?posted=<?php echo $posted?>&min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" BGCOLOR=white   width=770 height=800 marginWidth=0 marginHeight=0  frameBorder=0  scrolling=yes> 
    537537 
    538538    </iframe> 
  • freepbx/branches/2.4/amp_conf/htdocs/admin/cdr/call-last-month.php

    r5360 r6765  
    231231<!-- ** ** ** ** ** Part for the research ** ** ** ** ** --> 
    232232        <center> 
    233         <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php echo $current_page?>"> 
     233        <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?handler=cdr&s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php echo $current_page?>"> 
    234234        <INPUT TYPE="hidden" NAME="posted" value=1> 
    235235                <table class="bar-status" width="75%" border="0" cellspacing="1" cellpadding="2" align="center"> 
     
    493493<?php  if ($posted==1){ ?> 
    494494        <center> 
    495         <IMG SRC="graph_pie.php?min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&months_compare=<?php echo $months_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" ALT="Stat Graph"> 
     495        <IMG SRC="common/graph_pie.php?min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&months_compare=<?php echo $months_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&srctype=<?php echo $srctype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" ALT="Stat Graph"> 
    496496        </center> 
    497497<?php  } ?> 
  • freepbx/branches/2.4/amp_conf/htdocs/admin/cdr/call-log.php

    r5360 r6765  
    324324<!-- ** ** ** ** ** Part for the research ** ** ** ** ** --> 
    325325        <center> 
    326         <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php echo $current_page?>"> 
     326        <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?handler=cdr&s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php echo $current_page?>"> 
    327327        <INPUT TYPE="hidden" NAME="posted" value=1> 
    328328        <INPUT TYPE="hidden" NAME="current_page" value=0>        
     
    588588                    <center><strong>  
    589589                    <?php  if (strtoupper($FG_TABLE_COL[$i][4])=="SORT"){?> 
    590                     <a href="<?php  echo $_SERVER['PHP_SELF']."?s=1&t=$t&stitle=$stitle&atmenu=$atmenu&current_page=$current_page&order=".$FG_TABLE_COL[$i][1]."&sens="; if ($sens=="ASC"){echo"DESC";}else{echo"ASC";}  
     590                    <a href="<?php  echo $_SERVER['PHP_SELF']."?handler=cdr&s=1&t=$t&stitle=$stitle&atmenu=$atmenu&current_page=$current_page&order=".$FG_TABLE_COL[$i][1]."&sens="; if ($sens=="ASC"){echo"DESC";}else{echo"ASC";}  
    591591                                        echo "&posted=$posted&Period=$Period&frommonth=$frommonth&fromstatsmonth=$fromstatsmonth&tomonth=$tomonth&tostatsmonth=$tostatsmonth&fromday=$fromday&fromstatsday_sday=$fromstatsday_sday&fromstatsmonth_sday=$fromstatsmonth_sday&today=$today&tostatsday_sday=$tostatsday_sday&tostatsmonth_sday=$tostatsmonth_sday&dsttype=$dsttype&srctype=$srctype&clidtype=$clidtype&channel=$channel&resulttype=$resulttype&dst=$dst&src=$src&clid=$clid";?>">  
    592592                    <span class="liens"><?php  } ?> 
     
    714714                  <TD align="right"><SPAN style="COLOR: #ffffff; FONT-SIZE: 11px"><B>  
    715715                    <?php if ($current_page>0){?> 
    716                     <img src="images/fleche-g.gif" width="5" height="10"> <a href="<?php echo $_SERVER['PHP_SELF']?>?s=1&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php  echo ($current_page-1)?><?php  if (!is_null($letter) && ($letter!="")){ echo "&letter=$letter";}  
     716                    <img src="images/fleche-g.gif" width="5" height="10"> <a href="<?php echo $_SERVER['PHP_SELF']?>?handler=cdr&s=1&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php  echo ($current_page-1)?><?php  if (!is_null($letter) && ($letter!="")){ echo "&letter=$letter";}  
    717717                                        echo "&posted=$posted&Period=$Period&frommonth=$frommonth&fromstatsmonth=$fromstatsmonth&tomonth=$tomonth&tostatsmonth=$tostatsmonth&fromday=$fromday&fromstatsday_sday=$fromstatsday_sday&fromstatsmonth_sday=$fromstatsmonth_sday&today=$today&tostatsday_sday=$tostatsday_sday&tostatsmonth_sday=$tostatsmonth_sday&dsttype=$dsttype&srctype=$srctype&clidtype=$clidtype&channel=$channel&resulttype=$resulttype&dst=$dst&src=$src&clid=$clid&channel=$channel&resulttype=$resulttype&dst=$dst&src=$src&clid=$clid&userfieldtype=$userfieldtype&userfield=$userfield&accountcodetype=$accountcodetype&accountcode=$accountcode&duration1=$duration1&duration1type=$duration1type&duration2=$duration2&duration2type=$duration2type";?>">  
    718718                    Previous </a> -  
     
    720720                    <?php echo ($current_page+1);?> / <?php  echo $nb_record_max;?>  
    721721                    <?php if ($current_page<$nb_record_max-1){?> 
    722                     - <a href="<?php echo $_SERVER['PHP_SELF']?>?s=1&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php  echo ($current_page+1)?><?php  if (!is_null($letter) && ($letter!="")){ echo "&letter=$letter";}  
     722                    - <a href="<?php echo $_SERVER['PHP_SELF']?>?handler=cdr&s=1&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>&current_page=<?php  echo ($current_page+1)?><?php  if (!is_null($letter) && ($letter!="")){ echo "&letter=$letter";}  
    723723                                        echo "&posted=$posted&Period=$Period&frommonth=$frommonth&fromstatsmonth=$fromstatsmonth&tomonth=$tomonth&tostatsmonth=$tostatsmonth&fromday=$fromday&fromstatsday_sday=$fromstatsday_sday&fromstatsmonth_sday=$fromstatsmonth_sday&today=$today&tostatsday_sday=$tostatsday_sday&tostatsmonth_sday=$tostatsmonth_sday&dsttype=$dsttype&srctype=$srctype&clidtype=$clidtype&channel=$channel&resulttype=$resulttype&dst=$dst&src=$src&clid=$clid&channel=$channel&resulttype=$resulttype&dst=$dst&src=$src&clid=$clid&userfieldtype=$userfieldtype&userfield=$userfield&accountcodetype=$accountcodetype&accountcode=$accountcode&duration1=$duration1&duration1type=$duration1type&duration2=$duration2&duration2type=$duration2type";?>">  
    724724                    Next </a> <img src="images/fleche-d.gif" width="5" height="10">  
     
    869869<br/> 
    870870<table width="60%"><tr><td> 
    871 <a href="export_pdf.php" target="_blank"><img src="./images/pdf.png    " border="0"/></a> <a href="export_pdf.php" target="_blank">Export PDF file</a> 
     871<a href="config.php?handler=cdr_export_pdf" target="_blank"><img src="./images/pdf.png " border="0"/></a> <a href="config.php?handler=cdr_export_pdf" target="_blank">Export PDF file</a> 
    872872</td> 
    873873<td> 
    874 <a href="export_csv.php" target="_blank" ><img src="./images/excel.png" border="0"/></a> <a href="export_csv.php" target="_blank">Export CSV file</a> 
     874<a href="config.php?handler=cdr_export_csv" target="_blank" ><img src="./images/excel.png" border="0"/></a> <a href="config.php?handler=cdr_export_csv" target="_blank">Export CSV file</a> 
    875875</td></tr></table> 
    876876 
  • freepbx/branches/2.4/amp_conf/htdocs/admin/cdr/cdr.php

    r4993 r6765  
    5050                <title>Asterisk CDR</title> 
    5151                <meta http-equiv="Content-Type" content="text/html"> 
    52                 <link rel="stylesheet" type="text/css" media="print" href="/css/print.css"> 
    53                 <SCRIPT LANGUAGE="JavaScript" SRC="./encrypt.js"></SCRIPT> 
     52                <link rel="stylesheet" type="text/css" media="print" href="common/print.css"> 
     53                <SCRIPT LANGUAGE="JavaScript" SRC="common/encrypt.js"></SCRIPT> 
    5454                <style type="text/css" media="screen"> 
    55                         @import url("css/layout.css"); 
    56                         @import url("css/content.css"); 
    57                         @import url("css/docbook.css"); 
     55                        @import url("common/layout.css"); 
     56                        @import url("common/content.css"); 
     57                        @import url("common/docbook.css"); 
    5858                </style> 
    5959                <meta name="MSSmartTagsPreventParsing" content="TRUE"> 
  • freepbx/branches/2.4/amp_conf/htdocs/admin/cdr/lib/defines.php

    r2614 r6765  
    33require_once('DB.php'); // PEAR 
    44 
     5if (!function_exists('parse_amportal_conf')) { 
    56function parse_amportal_conf($filename) { 
    67        $file = file($filename); 
     
    1112        } 
    1213        return $conf; 
     14} 
    1315} 
    1416 
  • freepbx/branches/2.4/amp_conf/htdocs/admin/config.php

    r5775 r6765  
    3636if (isset($_REQUEST['handler'])) { 
    3737        switch ($_REQUEST['handler']) { 
     38                case 'cdr': 
     39                        include('cdr/cdr.php'); 
     40                        break; 
     41                case 'cdr_export_csv': 
     42                        include('cdr/export_csv.php'); 
     43                        break; 
     44                case 'cdr_export_pdf': 
     45                        include('cdr/export_pdf.php'); 
     46                        break; 
    3847                case 'reload': 
    3948                        /** AJAX handler for reload event 
  • freepbx/branches/2.4/amp_conf/htdocs/admin/views/reports.php

    r5361 r6765  
    1414$template['content'] .=  
    1515        '<div id="reportframe">'. 
    16         '<iframe width="97%" height="2000" frameborder="0" align="top" scrolling="auto" src="cdr/cdr.php?s='.$display.($display=='1' ? '&posted=1' : '').'"></iframe>'. 
     16        '<iframe width="97%" height="2000" frameborder="0" align="top" scrolling="auto" src="config.php?handler=cdr&s='.$display.($display=='1' ? '&posted=1' : '').'"></iframe>'. 
    1717        '</div>'; 
    1818 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads