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

Java: Add mybatis mapper.xml sql tainted detection #10121

Closed
wants to merge 3 commits into from
Closed

Java: Add mybatis mapper.xml sql tainted detection #10121

wants to merge 3 commits into from

Conversation

Sharyie
Copy link

@Sharyie Sharyie commented Aug 20, 2022

Description:
I wrote ql to support sql injection dection in mybatis mapper.xml.
Someone used my code in PR6413 I committed last year without notice and has been meraged in experimental/Security/CWE/CWE-089/MybatisXmlSqlTaintedInParam.ql、experimental.semmle.code.java.MybatisSqlTaintedLib.

This commit has been upgraded which solved some question and work well so many times compared with PR6413.

@smowton
Copy link
Contributor

smowton commented Aug 22, 2022

No file experimental/Security/CWE/CWE-089/MybatisXmlSqlTaintedInParam.ql seems to exist.

However there is https://github.com/github/codeql/tree/main/java/ql/src/experimental/Security/CWE/CWE-089

This seems to have been committed as part of #6319 which was submitted before #6413

Can you clarify what this PR does on top of the code contributed by #6319 ?

@Sharyie
Copy link
Author

Sharyie commented Aug 22, 2022

Oh,I am so sorry for my misread.

@Sharyie Sharyie closed this Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants