Skip to content

Commit

Permalink
Update nosql_find_injection.yaml to exclude sequelize's .findOne() fa…
Browse files Browse the repository at this point in the history
…lse positives (#115)
  • Loading branch information
bleow authored Apr 5, 2024
1 parent e255017 commit 370e904
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions njsscan/rules/semantic_grep/database/nosql_find_injection.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
rules:
- id: node_nosqli_injection
patterns:
- pattern-not-inside: |
$SEQUELIZE = require('sequelize')
...
$SEQUELIZE(...)
...
- pattern-not-inside: |
import $SEQUELIZE from 'sequelize'
...
$SEQUELIZE(...)
...
- pattern-not-inside: |
$SANITIZE = require('mongo-sanitize')
...
Expand Down

0 comments on commit 370e904

Please sign in to comment.