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

orderBy存在sql注入问题 #4853

Closed
SxLiuYu opened this issue Sep 26, 2022 · 3 comments
Closed

orderBy存在sql注入问题 #4853

SxLiuYu opened this issue Sep 26, 2022 · 3 comments

Comments

@SxLiuYu
Copy link

SxLiuYu commented Sep 26, 2022

当前使用版本(必填,否则不予处理)

3.5.1

该问题是如何引起的?(确定最新版也有问题再提!!!)

3.4.3.1 版本通过替换空格等能作为空格的符号来修复 sql 注入,但存在绕过,使用/**/作为空格是可以继续执行 sql 语句的

重现步骤(如果有就写完整)

QueryWrapper wrapper = new QueryWrapper<>();
wrapper.orderBy(true, true, "id;delete//from//test;");
1664198395862

报错信息

表被清空

@SxLiuYu
Copy link
Author

SxLiuYu commented Sep 26, 2022

3.5.2 版本同样存在这个问题

@huayanYu
Copy link
Member

自己处理

@VampireAchao
Copy link
Contributor

这是特性,为了适配子查询

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

3 participants