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(python): regard pair children as data sources #1611

Merged
merged 1 commit into from
May 27, 2024

Conversation

elsapet
Copy link
Contributor

@elsapet elsapet commented May 24, 2024

Description

To handle mongodb cases of NoSQLi such as

collection.find_one({"username": <some user input> })

Prior to this suggested fix, pattern is not catching on pair values as data sources

(dictionary (pair key: (_) @key value: (_) @value) @pair) @root

Checklist

If this is your first time contributing please sign the CLA

  • I've added test coverage that shows my fix or feature works as expected.
  • I've updated or added documentation if required.

@elsapet elsapet merged commit 9947948 into main May 27, 2024
8 checks passed
@elsapet elsapet deleted the fix/python/regard-pair-children-as-data-sources branch May 27, 2024 09:58
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.

None yet

2 participants