金蝶K3财务软件系统任意文件上传demo测试成功

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

### 简要描述: 最近公司也买了这系统,对系统测试了下发现存在漏洞,官网demo同样存在这漏洞。 财务系统如果对外了被拿权限了确实很麻烦。 ### 详细说明: 漏洞地址 ``` http://**.**.**.**/k3cloud/ ``` 漏洞代码如下 ``` public void ProcessRequest(HttpContext context) { try { context.Response.ContentType = "text/plain"; string physicalPath = context.Request.Headers["filefolder"]; if (string.IsNullOrEmpty(physicalPath)) { physicalPath = context.Server.MapPath("UploadFiles"); } else { physicalPath = PathUtils.GetPhysicalPath(physicalPath); } if (!Directory.Exists(physicalPath)) { Directory.CreateDirectory(physicalPath); } HttpFileCollection files = context.Request.Files; int count = files.Count; if (count > 0) { for (int i = 0; i < count; i++) { HttpPostedFile file = files[i]; if ((file != null) && (file.ContentLength > 0)) { string filename = physicalPath + "/" + file.FileName; file.SaveAs(filename); } } context.Response.Write("0"); } else { string str3 = context.Request.Headers["Name"].ToString(); if (string.IsNullOrWhiteSpace(str3)) { str3 = "null"; } FileStream...

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