Meteor-Community-Packages / Meteor-Community-Packages/meteor-tabular

Malicious selector can be passed into tabular_getInfo

Open
#187 2 comments 0 reactions 0 assignees View on GitHub
confirmed bug will accept pull request
Dominant language
JavaScript
Stars
360
Forks
132
PR merge metrics
No merged PRs in 30d

Description

`tabular_getInfo` can be passed a selector that contains `$where`, which could potentially be used to [hang a mongo instance](http://blog.east5th.co/2015/08/10/dos-your-meteor-application-with-where/).

Not sure what you want to do about this. `$where` has its uses, but this is can be a fairly serious problem.

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start at tabular_getInfo and trace how the selector reaches MongoDB, then read the linked $where denial-of-service report. Done should include a decided, verified handling of $where that addresses the risk without silently breaking supported selectors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb
Domain
databases, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.