大汉版通所属部分系统文件任意文件上传漏洞

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

### 简要描述: 任意类型文件上传,可getshell。影响到jact、jsearch、JCMS相关版本,不好一一统计。 ### 详细说明: 受影响的系统版本是WebService中存在一个receivefile操作的,一般在wsInfo服务中。 (注:不同产品不同版本代码可能会有所不同) 0x1 jsearch ``` public String receivefile(String strLoginId, String strPwd, String strKey, DataHandler handler, String filename, int iState) { String result = ""; InputStream input = null; FileOutputStream fos = null; String str1; try { result = verifyUserAndPass(strLoginId, strPwd, strKey); if (!(result.equals(""))) { str1 = result; return str1; } String path = Constants.getTempPath(); java.io.File dir = new java.io.File(path); if (!(dir.exists())) { try { dir.mkdirs(); } catch (Exception e) { str1 = setError("A00", "目录不存在"); if (input != null) try { input.close(); } catch (IOException localIOException2) { } if (fos != null) try { fos.close(); } catch (IOException localIOException3) { } return str1; } } //关键代码从这里开始,可以看到handler和filename参数都是来自用户定义,从而可以向服务器写入任意文件。 input = handler.getInputStream(); fos = new FileOutputStream(new...

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