-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We occasionally (mostly through pentests) get values for filters that contain random odd Unicode characters. Google's filter logic has failing validations in those cases, causing an error to be raised on the request. This adds basic, allowlist based sanitisation for all incoming filter values. We know that the values come from a limited character set anyway (slugs and UUIDs), as they are not direct user input. - Add value parameter sanitisation for filters - Remove existing escape logic in `FilterExpressionHelpers` (as there should never be any quotes or backslashes in the values to begin with, and we will now have removed them anyway)
- Loading branch information
Showing
3 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters