Skip to content

reject unsafe mongo query operators on /o/tasks and /o/slipping (backport 24.05)#7703

Merged
ar2rsawseen merged 2 commits into
release.24.05from
followup/reject-unsafe-slipping-24.05
Jun 10, 2026
Merged

reject unsafe mongo query operators on /o/tasks and /o/slipping (backport 24.05)#7703
ar2rsawseen merged 2 commits into
release.24.05from
followup/reject-unsafe-slipping-24.05

Conversation

@ar2rsawseen

Copy link
Copy Markdown
Member

Backport of the /o/slipping fix to release.24.05. Routes the slipping-away-users query through common.parseUserQuery (reject 400) instead of raw-parsing it into app_users<app_id>.count conditions. Follow-up to the merged #7696.

Route the slipping-away-users query through common.parseUserQuery so
$where/$function/$accumulator are rejected (400). Follow-up to the merged
release.24.05 reject-unsafe-query work.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 10, 2026 19:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports the /o/slipping endpoint hardening to release.24.05 by validating the user-supplied MongoDB query at the API boundary (via common.parseUserQuery) and rejecting unsafe operators with a 400, instead of raw-parsing and proceeding.

Changes:

  • Parse /o/slipping query using common.parseUserQuery(...) and reject invalid/unsafe queries with 400.
  • Add endpoint-scoped logging for rejected queries using common.log(...) + common.reqInfo(...).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ar2rsawseen ar2rsawseen merged commit b0b501e into release.24.05 Jun 10, 2026
5 of 7 checks passed
@ar2rsawseen ar2rsawseen changed the title reject unsafe mongo query operators on /o/slipping (backport 24.05) reject unsafe mongo query operators on /o/tasks and /o/slipping (backport 24.05) Jun 10, 2026
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.

3 participants