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

Py: add sanitizer guard for url_has_allowed_host_and_scheme #14112

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

erik-krogh
Copy link
Contributor

@erik-krogh erik-krogh commented Aug 31, 2023

Inspired by what to me looks like a clear FP (MRVA link).

The sanitizer seems decently used: https://github.com/search?type=code&q=%22url_has_allowed_host_and_scheme%22+path%3A*.py

Do you usually put implementations like this in the framework models, or directly in the *Query.qll file?
I can move it to Django.qll if you want to, but to follow the existing format I would have to create a new utils module in Django.qll.

Evaluation looks good, and seems to remove an FP.

@erik-krogh erik-krogh marked this pull request as ready for review August 31, 2023 13:32
@erik-krogh erik-krogh requested a review from a team as a code owner August 31, 2023 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant