Skip to content

fix(security): LIKE injection and unbounded queries #29372

@SH20RAJ

Description

@SH20RAJ

Sub-issue of #29364

Severity: MEDIUM-HIGH

Problems

  1. packages/trpc/server/routers/viewer/bookings/get.handler.ts:1075-1100 — LIKE wildcards not escaped
  2. packages/trpc/server/routers/viewer/users/_router.ts:57-62 — Unbounded user list query
  3. packages/kysely/utils/json/traverse/index.ts:13 — Latent SQL injection via sql.raw()

Fix

  1. Escape % and _ in LIKE operands
  2. Add pagination and select to user list
  3. Use parameterized values in traverseJSON

Contact: LinkedIn: /in/sh20raj

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions