Skip to content

Fix SQL injection vulnerability (CVE-2022-28111)#576

Open
yannaingtun wants to merge 1 commit intoalibaba:masterfrom
yannaingtun:fix-sql-injection-cve-2022-28111
Open

Fix SQL injection vulnerability (CVE-2022-28111)#576
yannaingtun wants to merge 1 commit intoalibaba:masterfrom
yannaingtun:fix-sql-injection-cve-2022-28111

Conversation

@yannaingtun
Copy link
Copy Markdown

Description:
This PR addresses a SQL injection vulnerability in the setOrderBy method of the PageQuery class. The vulnerability is similar to CVE-2022-28111, which was fixed in the Mybatis-PageHelper project.

Changes Made:
Added SQL injection validation in setOrderBy method
Throws a PageException when potentially malicious input is detected

References:
CVE-2022-28111
Fixed similar to: pagehelper-org/Mybatis-PageHelper@554a524

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

Successfully merging this pull request may close these issues.

1 participant