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

feat(python): add unsafe reflection rule (CWE-470) #407

Merged
merged 2 commits into from
May 22, 2024

Conversation

elsapet
Copy link
Collaborator

@elsapet elsapet commented May 16, 2024

Description

Add Python rule for reflection with user input (CWE-470)
This takes getattr from code injection rule because it is closer to CWE-470 than CWE-94

Checklist

If this is your first time contributing please sign the CLA

  • My rule has adequate metadata to explain its use.

@elsapet elsapet marked this pull request as draft May 16, 2024 14:26
@elsapet elsapet force-pushed the feat/python/unsafe-reflection branch from 834dc20 to e9d0d9c Compare May 16, 2024 15:25
@elsapet elsapet requested a review from didroe May 17, 2024 08:50
@elsapet elsapet force-pushed the feat/python/unsafe-reflection branch from e9d0d9c to 58b87db Compare May 20, 2024 09:50
@elsapet elsapet marked this pull request as ready for review May 22, 2024 09:12
@elsapet elsapet merged commit 38cf721 into main May 22, 2024
24 checks passed
@elsapet elsapet deleted the feat/python/unsafe-reflection branch May 22, 2024 09:13
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