ESPCMS 全版验证码破解验证码等于虚设(可导致爆破等附解密exp)

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

### 简要描述: ESPCMS 全版!验证码破解!验证码等于虚设(可导致爆破等) ### 详细说明: 先看验证码生成的方法!只是生成了一个6位随机数 然后加密保存到cookie中!关键点在于加密函数eccode 竟然采用的是默认的key ``` $fun = new functioninc(); $seccode = rand(100000, 999999); $secode = $fun->accept('secode', 'R'); if ($secode == 'ecisp_seccode') { $secode_name = 'ecisp_seccode'; } else { $secode_name = 'ecisp_home_seccode'; } $fun->setcookie($secode_name, $fun->eccode($seccode . "\t" . time(), 'ENCODE')); ``` 文件/public/class_function.php加密函数 ``` function eccode($string, $operation = 'DECODE', $key = '@LFK24s224%@safS3s%1f%', $mcrype = true) { $result = null; if ($operation == 'ENCODE') { for ($i = 0; $i < strlen($string); $i++) { $char = substr($string, $i, 1); $keychar = substr($key, ($i % strlen($key)) - 1, 1); $char = chr(ord($char) + ord($keychar)); $result.=$char; } $result = base64_encode($result); $result = str_replace(array('+', '/', '='), array('-', '_', ''), $result); } elseif ($operation == 'DECODE') { $data = str_replace(array('-', '_'), array('+', '/'),...

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