phpBMS

Changeset 728 for trunk/phpbms/include

Show
Ignore:
Timestamp:
01/07/10 12:45:17 (2 years ago)
Author:
brieb
Message:
  • Fixed possible security loopholes in search screen (SQL Manipulation)
Location:
trunk/phpbms/include
Files:
2 modified

Legend:

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

    r703 r728  
    102102        */ 
    103103        foreach($theids as $theid) 
    104             $_SESSION["passedjoinwhere"] .= " OR ".$therecord["fromtable"].".id = ".$theid; 
     104            $_SESSION["passedjoinwhere"] .= " OR ".$therecord["fromtable"].".id = ".((int) $theid); 
    105105 
    106106        $_SESSION["passedjoinwhere"] = substr($_SESSION["passedjoinwhere"], 3); 
  • trunk/phpbms/include/search_class.php

    r720 r728  
    8181                                        searchroleid, 
    8282                                        advsearchroleid, 
    83                                         viewsqlroleid 
     83                                        viewsqlroleid, 
     84                                        editroleid, 
     85                                        addroleid 
    8486                                FROM 
    85                                         tabledefs inner join modules on tabledefs.moduleid = modules.uuid 
     87                                        tabledefs INNER JOIN modules on tabledefs.moduleid = modules.uuid 
    8688                                WHERE 
    8789                                        tabledefs.uuid= '".$id."'"; 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.