74CMS设计缺陷可能导致任意用户密码重置

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

### 简要描述: 74CMS存在设计缺陷,导致可重置任意用户密码 ### 详细说明: 文件/user/user_getpass.php ``` //找回密码第2步 elseif ($act=='get_pass') { $captcha=get_cache('captcha'); $postcaptcha = trim($_POST['postcaptcha']); if($captcha['verify_getpwd']=='1' && empty($postcaptcha)) { showmsg("请填写验证码",1); } if ($captcha['verify_getpwd']=='1' && strcasecmp($_SESSION['imageCaptcha_content'],$postcaptcha)!=0) { showmsg("验证码错误",1); } $postusername=trim($_POST['username'])?trim($_POST['username']):showmsg('请输入用户名!',1); if (empty($_POST['email']) || !preg_match("/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/",$_POST['email'])) { showmsg('电子邮箱格式错误!',1); } require_once(QISHI_ROOT_PATH.'include/fun_user.php'); $userinfo=get_user_inusername($postusername); if (empty($userinfo) || $userinfo['email']<>$_POST['email']) { showmsg('用户名或注册邮箱填写错误',1); } else { $mailconfig=get_cache('mailconfig'); $arr['username']=$userinfo['username']; $arr['password']=rand(100000,999999); if...

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