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

chore: clean up Critical and high code scanning alerts flagged in Github #9417

Merged
merged 4 commits into from
Sep 15, 2021

Conversation

thelostone-mc
Copy link
Member

Description
  • fix: Potentially unsafe external link
  • fix: Incomplete URL substring sanitization
  • fix: URL redirection from remote source
Refers/Fixes

GITC-307

@@ -1006,7 +1006,7 @@ def grants_type_redirect(request, grant_type):
base_url = reverse('grants:grants_by_category', kwargs={"grant_type":grant_type})
query_string = urlencode(request.GET)
url = '{}?{}'.format(base_url, query_string)
return redirect(url)
return redirect(url, code=302)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Github is flagging this as well. If this is a false positive, let's "Dismiss" and mark it as that.

Copy link
Contributor

@zlsgh zlsgh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looking forward to getting these in to clean up the alerts!

One comment on a possible false positive and it looks like there are a couple merge conflicts now. Other than that, LGTM! 🚀

@thelostone-mc thelostone-mc merged commit 25e557a into master Sep 15, 2021
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.

4 participants