변경 파일 목록
총 1개
Component (1)
Member.phpMember/변경 파일 코드
추가삭제
변경 전Member.php
| $session = \App::getInstance('session'); | |
| $mall = $session->get(SESSION_GLOBAL_MALL); | |
| gd_isset($param['findIdFl'], 'email'); | |
| if ($param['findIdFl'] === 'email') { | |
| if (Validator::email($param['userEmail'], true) === false) { | |
변경 후Member.php
| $session = \App::getInstance('session'); | |
| $mall = $session->get(SESSION_GLOBAL_MALL); | |
| gd_isset($param['findIdFl'], 'email'); | |
| // findIdFl 은 SQL 컬럼명 위치에 결합되어 값 바인딩으로 방어 불가 → 허용 컬럼 화이트리스트로 차단 | |
| if (!in_array($param['findIdFl'], ['email', 'cellPhone'], true)) { | |
| throw new \Exception(__('회원정보를 찾을 수 없습니다.')); | |
| } | |
| if ($param['findIdFl'] === 'email') { | |
| if (Validator::email($param['userEmail'], true) === false) { | |