sort_by query parameter is a NoSQL injection vector #64

Closed
opened 2026-03-30 13:29:56 +00:00 by sharang · 1 comment
Owner

findings.rs takes sort_by verbatim from query params and injects into MongoDB sort doc. Allows sorting by internal fields. Fix: Validate against an allowlist of permitted sort fields.

findings.rs takes sort_by verbatim from query params and injects into MongoDB sort doc. Allows sorting by internal fields. Fix: Validate against an allowlist of permitted sort fields.
sharang added the securitybughighv0.3.0 labels 2026-03-30 13:29:56 +00:00
sharang added this to the Production MVP milestone 2026-09-20 20:19:59 +00:00
Author
Owner

Done in #297: sort_by is checked against an allowlist, search input is escaped as a literal regex, and limit/page are clamped while deserializing (max 200).

Done in #297: `sort_by` is checked against an allowlist, search input is escaped as a literal regex, and limit/page are clamped while deserializing (max 200).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#64