Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql injection exists in Sales Management-Sales Orders-Add-Upload attachments(depotItem/importItemExcel接口存在SQL注入) #111

Open
Tr0ses opened this issue Aug 17, 2024 · 0 comments

Comments

@Tr0ses
Copy link

Tr0ses commented Aug 17, 2024

The repetition process of the vulnerability(漏洞的复现过程)

Structure or grab a packet in/depotItem importItemExcel interfaces to upload an excel file

(构造或者抓取一个数据包,在 /depotItem/importItemExcel 接口处上传一个excel文件)

数据包
The contents of the "C:\Users\hp\Desktop\test.xls" file are
(其中的"C:\Users\hp\Desktop\test.xls"文件内容为)
'1') oR sleep(0.05)--
文件内容
Sending packets can find that there is a delay in the page
(发送数据包可以发现页面会有延迟)
Snipaste_2024-08-17_19-33-32
Change the sleep function time to delay sending changes, indicating that SQL injection exists
(修改sleep函数时间,延迟发送变化,说明存在SQL注入)
Snipaste_2024-08-17_19-34-55
Snipaste_2024-08-17_19-36-07

Utilization condition(利用条件)

The interface requires login to access, but the code in the project leads to the use of "/jshERP-boot/doc.html/... % 3 b/depotItem/importItemExcel "this url for unauthorized access

(该接口需要登陆后才能访问,但是项目中的代码导致可以使用 "/jshERP-boot/doc.html/..%3b/depotItem/importItemExcel" 这样的url进行未授权访问)

Affected versions, operating systems, and browser information(受影响的版本、操作系统,以及浏览器信息)

  • jshERP v3.3
  • OS:Windows/Linux/macOS
  • Browser: Chrome、Firefox、Safair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant