Ignore:
Timestamp:
2008/11/08 08:29:40 (15 years ago)
Author:
takegami
Message:

EC-CUBE2.3.1,2.3.2の脆弱性を修正
r17698,r17678,r17679,r17680,r17682,r17684,r17685

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php

    r17519 r17700  
    6565        // GETでページを指定されている場合には指定ページに戻す 
    6666        if (isset($_GET['page'])) { 
    67             $ParentPage = $_GET['page']; 
     67            $ParentPage = htmlspecialchars($_GET['page'],ENT_QUOTES); 
    6868        } 
    6969        $this->ParentPage = $ParentPage; 
     
    124124                    $deliv_count = $objQuery->count("dtb_other_deliv", "customer_id=?", array($objCustomer->getValue('customer_id'))); 
    125125                    if ($deliv_count < DELIV_ADDR_MAX or isset($_POST['other_deliv_id'])){ 
    126                         $this->lfRegistData($_POST,$arrRegistColumn, $objCustomer); 
     126                        if(strlen($_POST['other_deliv_id'] != 0)){ 
     127                            $deliv_count = $objQuery->count("dtb_other_deliv","customer_id=? and other_deliv_id = ?" ,array($objCustomer->getValue('customer_id'), $_POST['other_deliv_id'])); 
     128                            if ($deliv_count == 0) { 
     129                                SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 
     130                            }else{ 
     131                                $this->lfRegistData($_POST,$arrRegistColumn, $objCustomer);                                 
     132                            } 
     133                        }else{ 
     134                            $this->lfRegistData($_POST,$arrRegistColumn, $objCustomer);                             
     135                        } 
    127136                    } 
    128                     $this->tpl_onload = "fnUpdateParent('". $this->getLocation($_POST['ParentPage']) ."'); window.close();"; 
     137                        if( $_POST['ParentPage'] == MYPAGE_DELIVADDR_URL || $_POST['ParentPage'] == URL_DELIV_TOP ){ 
     138                            $this->tpl_onload = "fnUpdateParent('". $this->getLocation($_POST['ParentPage']) ."'); window.close();"; 
     139                        }else{ 
     140                            SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 
     141                        } 
    129142                } 
    130143                break; 
Note: See TracChangeset for help on using the changeset viewer.