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

[sercurity vulnerability] sql inject #118

Open
GatekeeperBuster opened this issue Apr 29, 2024 · 0 comments
Open

[sercurity vulnerability] sql inject #118

GatekeeperBuster opened this issue Apr 29, 2024 · 0 comments

Comments

@GatekeeperBuster
Copy link

Recently, our team has identified a security vulnerability that has led to SQL injection issues in the latest version of the project, which could result in severe information leakage risks.
The vulnerability entry is located in the method at src/main/java/com/youlai/mall/pms/controller/app/SpuController.java#32.
image

The developers, when operating SQL statements through the method at src/main/java/com/youlai/mall/pms/mapper/PmsSpuMapper.java#32,
image

concatenate the input queryParams parameter to ${queryParams.sortField} ${queryParams.sort}, which means that attackers can control the queryParams parameter to carry out SQL injection attacks.

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