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

Handle non integer values passed to object_pk and replied_to #2012

Merged
merged 2 commits into from Jan 5, 2022

Conversation

Remiz
Copy link
Contributor

@Remiz Remiz commented Dec 30, 2021

When pentesters look for vulnerabilities they attempt to stuff random values to every forms (including the ratings and comments). This change prevents returning a 500 error when a non integer value is passed to object_pk in a rating or comment form.

When pentesters look for vulnerabilities they attempt to stuff random values to every forms (including the ratings and comments). This change prevents returning a 500 error when a non integer value is passed to `object_pk` in a rating or comment form.
Same idea as my previous commit, this changes allow to handle random values being stuffed in the `replied_to` field in the comment form.
@Remiz Remiz changed the title Handle non integer values passed to object_pk Handle non integer values passed to object_pk and replied_to Dec 30, 2021
@jerivas jerivas merged commit 4faee49 into stephenmcd:master Jan 5, 2022
@jerivas
Copy link
Collaborator

jerivas commented Jan 5, 2022

Thanks!

@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2022

🎉 This PR is included in version 5.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

2 participants