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

fix(golang): remove encoder pattern from deserialization rule (CWE-502) #464

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

elsapet
Copy link
Collaborator

@elsapet elsapet commented Sep 26, 2024

Description

Encoding user input isn't itself unsafe until this input is decoded. We therefore remove the serialization case to keep consistent with our other CWE-502 rules which are directly concerned with the deserialization of user input.

Checklist

If this is your first time contributing please sign the CLA

  • My rule has adequate metadata to explain its use.

@elsapet elsapet requested a review from gotbadger September 26, 2024 12:17
@elsapet elsapet merged commit fee8e3d into main Sep 26, 2024
25 checks passed
@elsapet elsapet deleted the fix/golang/deserialization-pattern branch September 26, 2024 12:23
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.

2 participants