-
Notifications
You must be signed in to change notification settings - Fork 2k
Python: CWE-943 - Add NoSQL injection query #5612
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
517a920
PR init
jorgectf aea7546
Add Concepts
jorgectf bd5ff01
PyMongo and Mongoengine sinks
jorgectf d856f16
Adapt query configs and custom classes
jorgectf 4579132
Add left tests
jorgectf ccd57be
Fix imports
jorgectf 01f9d4a
Fix MongoEngine Sink
jorgectf 7a4dc46
Fix Sinks
jorgectf 5a1dc48
Fix Mongoengine test
jorgectf 017a826
Remove unused class variables
jorgectf f0a50eb
Polish up configs
jorgectf 3a47a45
Attempt to apply TaintTracking2
jorgectf c8740a2
Update naming
jorgectf f980d06
Fix taint configs
jorgectf 15e176a
Polish query select
jorgectf 9072d19
Update qhelp file
be9a3a9
Add relevant PyMongo sink methods
80216f6
Rename classes
3f0c758
Add required __raw__ keyword
mrthankyou 759fa2c
Update query to search for more pymongo sink methods
mrthankyou 6ade120
Add check for mongoengine raw queries
mrthankyou ac31260
Made grammar changes
mrthankyou 520e65e
Remove unnecessary example code
mrthankyou dc274ec
Improve sentence structure and grammar
mrthankyou 4e98348
Remove comment
mrthankyou 719c30b
Fix file name and adjust where the test points to
mrthankyou 83f28bf
Catch any keyword argument passed to MongoEngine's objects method
mrthankyou 0e51dbe
Polish tests
jorgectf a6b3aef
Add flask_mongoengine sink
jorgectf fa5869a
Polish qhelp and examples
jorgectf 983af32
Polish qhelp examples
jorgectf 208b53e
Polish query file
jorgectf 1663857
Polish Calls naming
jorgectf 4615927
Fix flask_mongoengine Call
jorgectf 5d25a27
Add .expected
jorgectf bbd3552
Rename predicate to getQuery
mrthankyou 7773c53
Replace any(string) with _ wildcard
mrthankyou 62f3e8d
Add sanitizer for ObjectId
mrthankyou d85b1a2
Replace recursive getAMember*() method
mrthankyou 56dc4d8
Add comment on BsonObjectIdCall
mrthankyou c4a67e5
Rewrite query to take into account MongoClient and subscript expressions
mrthankyou 1d36aa6
Add additional querying for mongoengine Document subclassing
mrthankyou 7693d69
Add additional query tests
mrthankyou 8f8eff2
Fix comment description of predicate
mrthankyou 9a44020
Rename StdLib.qll file to NoSQL.qll file
mrthankyou 83f0870
Update file path of module
mrthankyou aa24c68
Add back accidentally deleted StdLib.qll file
mrthankyou 65c6f19
Rename mongoengine-flask-db-document-subclass
jorgectf e7bdc73
Update .expected
jorgectf 0fc044d
Checkout Stdlib.qll
jorgectf 67bc576
Delete StdLib.qll
mrthankyou 07c3e22
Fix method name to match flask_mongoengine library
mrthankyou 0238e51
Add checks for EmbeddedDocument classes
mrthankyou 3e25b14
Update NoSQLInjection.expected
mrthankyou c948970
resolve merge conflicts
jorgectf 6bed859
Match sanitizer inputs' naming
jorgectf e61cf9a
Simplify tests
jorgectf 5123b8f
Update .expected
jorgectf 81505fb
Normalize tests
jorgectf 5c7229c
Optimize Type Tracking stuff
jorgectf 8527ccc
Update .expected
jorgectf b8e619a
Extend qhelp references
jorgectf 8e3d5ff
Rename mongoclient tests
jorgectf 7e6032f
Port to Decoding
jorgectf 4e74003
Polish Concepts documentation
jorgectf eb16018
Update .expected
jorgectf 5971142
Python: Fix qhelp for NoSQL injection
RasmusWL 318694c
Python: Don't rely on `d = d.getOutput()` for `Decoding`
RasmusWL a5009ef
Merge pull request #5 from RasmusWL/nosql-fixes
jorgectf 0ca4f24
Merge tests and update `.expected`
jorgectf 3fd1129
Delete trivial tests
jorgectf 68c6831
Polish documentation, `mongoCollectionMethod()` and update `.expected`
jorgectf 3504408
Apply suggestions from code review
jorgectf 51395d1
Move `xmltodict` to its own file under `frameworks/`
jorgectf 0819090
Fix qldocs typo
jorgectf 9a8d1f8
Take back non-trivial tests
jorgectf 621a810
Update `.expected`
jorgectf e02a63a
Delete trivial `*_good.py` tests
jorgectf 51a6140
Change variable name to correct sanitized input variable
mrthankyou 6f09b95
Update `.expected`
jorgectf e6ce10b
Merge remote-tracking branch 'origin/main' into jty/python/nosqlInjec…
jorgectf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix Sinks
- Loading branch information
commit 7a4dc46341bf98c67c3210e5eb2afa7177379755
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.