Skip to content

Conversation

@MathiasVP
Copy link
Collaborator

This PR adds a class similar to C#'s SimpleTypeSanitizedExpr which blocks flow out of types for which we generally don't care about flow into. Similar to C#'s I've picked integer/floating point, booleans, and date time types.

Finally, the PR also adds this barrier to the SQL injection query. The command-injection query already has a similar sanitizer which blocks flow on all parameters without the Object type.

@chanel-y I don't know if we want to use this sanitizer instead of the one you've added in the command-injection query, or whether it's better to keep the current sanitizer?

@chanel-y
Copy link

lgtm + down to add this to the command injection query!

@MathiasVP
Copy link
Collaborator Author

Oops. Looks like I broke some stuff. Yay for tests and CI! Will take a look now!

@MathiasVP
Copy link
Collaborator Author

Sorry about the wave of commits, @chanel-y. The changes in 71fec26 unraveled a whole cascade of missing lower casing. I've fixed them all now, I hope 🤞

@MathiasVP MathiasVP merged commit f8bdfa4 into main Jul 25, 2025
3 checks passed
dilanbhalla pushed a commit that referenced this pull request Aug 8, 2025
PS: Add simple type-based sanitizer to SQL injection query
dilanbhalla pushed a commit that referenced this pull request Aug 8, 2025
PS: Add simple type-based sanitizer to SQL injection query
dilanbhalla pushed a commit that referenced this pull request Aug 8, 2025
PS: Add simple type-based sanitizer to SQL injection query
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.

3 participants