TurboMail邮件系统任意文件读取漏洞(需管理权限)

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

### 简要描述: TurboMail邮件系统处理日志文件时未对文件路径进行判断,导致可读取服务器上的任意文件。 ### 详细说明: 邮件后台管理进行“WEB日志查看”时存在任意文件读取漏洞。 漏洞代码位于TomcatLogAjax.class,其中getLog函数读取web服务器日志文件的源代码实现如下: publicstatic void getLog(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ MailSession ms = WebUtil.getms(request,response); if (ms == null) { AjaxUtil.ajaxFail(request, response,"info.nologin", null); return; } UserInfo userinfo = ms.userinfo; if (userinfo == null) { AjaxUtil.ajaxFail(request, response,"info.loginfail", null); return; } String logPath = getLogPath(); String subType =WebUtil.getParameter(request, true, "subType"); if ((subType != null) &&("getLogList".equals(subType))) { getLogList(request, response, logPath); return; } StringsLogFile = WebUtil.getParameter(request, true, "logFile"); …..//此处省略N行 try{ FiletempFile = new File(logPath + SysConts.FILE_SEPARATOR + sLogFile); //漏洞点,直接拼接 if (!tempFile.exists()) { AjaxUtil.ajaxFail(request, response,"info.ajax.fail", null);...

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