-
Notifications
You must be signed in to change notification settings - Fork 1.7k
.qll Contribution for Sink Detection #19403
New issue
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No 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? No Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
I am unsure why the merge was blocked. |
knock knock |
No. I'm not the one to review this, the relevant team should have been pinged, but you need to be more patient. Why did you ping me? |
I'm sorry about that. I'll be more patient and wait a bit longer. May I kindly ask which team would be the right one to reach out to? Apologies again for the inconvenience. |
Why did you ping specifically me? |
@yoff : Would you perhaps be able to review this? |
I apologize for the ping — I had mistakenly thought you were the maintainer. |
Hello,
After reviewing the Python CodeQL queries, I found that only frameworks defined with
.qll
files under thepython/ql/lib/semmle/python/frameworks/
directory are recognized as sinks.For example,
MarkupSafe
is correctly detected because it is defined in that location, whereasMarkUp
is currently not recognized as a sink due to the absence of a.qll
definition.Therefore, I would like to create a new
.qll
file forMarkUp
, add the corresponding unit tests, and submit a Pull Request.The Taint Tracking query used for this test was as follows:
The target code tested was as follows:
As you can see,
markupsafe.Markup
is successfully recognized as a sink, butmarkup.page()
andmarkup.div()
are not detected, due to the missing.qll
definition for themarkup
library.I have summarized the detailed information in the Notion document linked below for your reference:
Thank you very much for your time and consideration.
Best regards,
SooHyun Kim