Kirby CMS <= V2.1.0 文件上传漏洞

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

##1.漏洞分析 漏洞程序下载地址: http://download.getkirby.com/files/kirby-2.1.0.zip panel/app/controllers/api/files.php 220行 ```php if(strtolower($file->extension()) == kirby()->option('content.file.extension', 'txt')) { throw new Exception('Content files cannot be uploaded'); } else if(strtolower($file->extension()) == 'php' or in_array($file->mime(), f::$mimes['php'])) { throw new Exception('PHP files cannot be uploaded'); } else if(strtolower($file->extension()) == 'html' or $file->mime() == 'text/html') { throw new Exception('HTML files cannot be uploaded'); } else if(strtolower($file->extension()) == 'exe' or $file->mime() == 'application/x-msdownload') { throw new Exception('EXE files cannot be uploaded'); } else if(strtolower($file->filename()) == '.htaccess') { throw new Exception('htaccess files cannot be uploaded'); } else if(str::startsWith($file->filename(), '.')) { throw new Exception('Invisible files cannot be uploaded'); ... 返回后缀函数,很简单的绕过 static public function extension($file,...

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