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

[vulnerability] SQL Injection Vulnerability in AdminGoodsController.java #548

Open
xiao-maqiang opened this issue Jun 23, 2024 · 0 comments

Comments

@xiao-maqiang
Copy link

SQL injection vulnerability in linlinjava litemall v.1.8.0 allows a remote attacker to obtain sensitive information via the goodsId, goodsSn, name parameters of the AdminGoodscontroller.java component.
1.Steps to reproduce (复现步骤)
访问商品管理,点击查询,抓取数据包
`GET /admin/goods/list?page=1&limit=20&sort=add_time&order=desc HTTP/1.1
Host: localhost:8083
X-Litemall-Admin-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIxNjc0MjI4Nzc2NzU1NjYyODQ4Iiwicm5TdHIiOiJ2MnhZQjlKTVVYTzVvU1prUHVIdVRmUG5Kc250dFdYcSJ9.vcCJsv50XMYtg5dkjdvvfEqRBv5M6mntbBfHYz24zLQ
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
X-Litemall-TenantId: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ0aGlzIGlzIGxpdGUtbWFsbC1wbHVzIHRva2VuIiwiYXVkIjoiTUlOSS1BUFAiLCJ0ZW5hbnRJZCI6IjAiLCJpc3MiOiJMaXRlLW1hbGwtcGx1cyIsImV4cCI6MTcxOTIyMDUzNCwiaWF0IjoxNzE5MTM0MTM0fQ.uMpPiijOq53ImOdyjEreoxmamrA0xqznDs1XZbvvum8
Accept: /
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Connection: close

`
image

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