FineCMS任意用户密码重置

- AV AC AU C I A
发布: 2025-04-13
修订: 2025-04-13

### 简要描述: FineCMS任意用户密码重置 ### 详细说明: finecms最新版2.3.0,官方2014年4月18号更新。 finecms在密码找回功能处存在设计缺陷,导致可重置任意用户密码。 来看看密码找回的代码: ``` /** * 找回密码 */ public function find() { $step = max(1, (int)$this->input->get('step')); $error = ''; if (IS_POST) { switch ($step) { case 1: if ($uid = get_cookie('find')) { $this->member_msg( lang('m-093'), dr_member_url('login/find', array('step' => 2, 'uid' => $uid)), 1 ); } else { $name = $this->input->post('name', TRUE); $name = in_array($name, array('email', 'phone')) ? $name : 'email'; $value = $this->input->post('value', TRUE); $data = $this->db ->select('uid,username,randcode') ->where($name, $value) ->limit(1) ->get('member') ->row_array(); if ($data) { $randcode = rand(1000, 9999); if ($name == 'email') { $this->load->helper('email'); if (!$this->sendmail($value, lang('m-014'), dr_lang('m-187', $data['username'], $randcode, $this->input->ip_address()))) { $this->member_msg(lang('m-189')); } set_cookie('find', $data['uid'], 300); $this->db ->where('uid',...

0%
暂无可用Exp或PoC
当前有0条受影响产品信息