phpBMS

Changeset 704 for trunk/phpbms/include

Show
Ignore:
Timestamp:
01/01/10 23:10:02 (2 years ago)
Author:
brieb
Message:
  • Fixed several SQL injection vulnerabilities
  • Fixed several XSS vulnerabilities due to PHP_SELF and REQUREST_URI
  • Fixed severa path disclosure errors
Location:
trunk/phpbms/include
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/include/fields.php

    r703 r704  
    8282    function startForm($pageTitle){ 
    8383 
    84         ?><form action="<?php echo str_replace("&","&amp;",$this->action) ?>" method="<?php echo $this->method?>" name="<?php echo $this->name?>" <?php 
     84        ?><form action="<?php echo htmlentities($this->action) ?>" method="<?php echo $this->method?>" name="<?php echo $this->name?>" <?php 
    8585                if($this->onsubmit !== NULL) { ?>onsubmit="<?php echo $this->onsubmit?>" <?php } 
    8686                if(isset($this->enctype)) echo ' enctype="'.$this->enctype.'" '; 
  • trunk/phpbms/include/imports.php

    r515 r704  
    457457                        function startForm($pageTitle, $pageType, $numberOfRecords = 0){ 
    458458 
    459                                 ?><form action="<?php echo str_replace("&","&amp;",$this->action) ?>" method="<?php echo $this->method?>" name="<?php echo $this->name?>" onsubmit="<?php echo $this->onsubmit?>" <?php 
     459                                ?><form action="<?php echo htmlentities($this->action) ?>" method="<?php echo $this->method?>" name="<?php echo $this->name?>" onsubmit="<?php echo $this->onsubmit?>" <?php 
    460460                                        if(isset($this->enctype)) echo ' enctype="'.$this->enctype.'" '; 
    461461                                        if(isset($this->id)) echo ' id="'.$this->id.'" '; 
  • trunk/phpbms/include/search_class.php

    r703 r704  
    304304                                 if($this->numrows==RECORD_LIMIT or $this->recordoffset!=0){ 
    305305                                    //if you max the record limit or are already offsetiing get the true count 
    306                                          
     306 
    307307                                        $truecountstatement = " 
    308308                                                SELECT 
     
    587587 
    588588                ?> 
    589 <form name="search" id="search" method="post" action="<?php echo $_SERVER["PHP_SELF"]?>?id=<?php echo $this->thetabledef["uuid"]?>" onsubmit="setSelIDs(this);return true;"> 
     589<form name="search" id="search" method="post" action="<?php echo htmlentities($_SERVER["PHP_SELF"])?>?id=<?php echo $this->thetabledef["uuid"]?>" onsubmit="setSelIDs(this);return true;"> 
    590590<input id="tabledefid" name="tabledefid" type="hidden" value="<?php echo $this->thetabledef["id"]?>" /> 
    591591<input id="theids" name="theids" type="hidden" value="" /> 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.