FineCMS v1.8任意文件下载

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

### 简要描述: 代码审计是个技术活,需要很好的耐心.. o(︶︿︶)o ### 详细说明: 出现问题的版本是FineCMS V1.8.0 最新版。 1.顺藤摸瓜 漏洞文件:controllers/ApiController.php downAction方法 ``` public function downAction() { $data= fn_authcode(base64_decode($this->get('file')), 'DECODE'); $file= isset($data['finecms']) && $data['finecms'] ? $data['finecms'] : ''; if (empty($file)) $this->msg(lang('a-mod-213')); if (strpos($file, ':/')) {//远程文件 header("Location: $file"); } else {//本地图片 if (!is_file($file)) $this->msg(lang('a-mod-214') . '(#' . $file . ')');; // $file = '../../../etc/passwd' header('Pragma: public'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); header('Cache-Control: no-store, no-cache, must-revalidate'); header('Cache-Control: pre-check=0, post-check=0, max-age=0'); header('Content-Transfer-Encoding: binary'); header('Content-Encoding: none'); header('Content-type: ' . strtolower(trim(substr(strrchr($file, '.'), 1, 10)))); header('Content-Disposition: attachment; filename="' . basename($file) . '"');...

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