Skip to content

C++: Fix for the SQL query. #1

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

Merged
merged 1 commit into from
Jun 24, 2025
Merged

Conversation

geoffw0
Copy link

@geoffw0 geoffw0 commented Jun 24, 2025

Hi @ebickle , it looks like when I recommended the one-line change to SqlTainted.ql to add support for MaD, I had missed a few details. Below is a fix which you can merge into your PR to get this fully working.

More detail: the query attempts to "decode" the sink into a chain of calls so it can put the alert at the outermost call that takes the SQL string argument, but name the inner modelled function as the true sink. Unfortunately this logic failed for the new MaD sinks, so they were not being included in results. We haven't really needed this kind of extra information since the addition of @kind path-problem queries which let users explore the flow path in detail themselves. The changes below circumvent this logic for new MaD sinks, while preserving existing results exactly as they are to avoid unforeseen consequences.

@ebickle
Copy link
Owner

ebickle commented Jun 24, 2025

@geoffw0 Appreciate the help!

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.

2 participants