Improper neutralization of special elements in data query logic
Description
The application generates a query intended to interact with MongoDB, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query.
Remediation
Refactor find or search queries to use standard
filtering operators such as $gt
or $in
instead of broad operators such
as $where
. If possible, disable the MongoDB JavaScript interface entirely.
Details
ID | Aggregated | CWE | Type | Risk |
---|---|---|---|---|
943.1 | false | 943 | Active | high |
Links
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support