<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/client-supplied-owner-filters-are-not-authorization-5nsqjlajt" -->

---
title: Client-supplied owner filters are not authorization
description: Endpoints that let clients pass an `?ownerId=` parameter to filter results are not performing authorization, only filtering. The authenticated subject must be...
canonical: https://daily.dev/posts/client-supplied-owner-filters-are-not-authorization-5nsqjlajt
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Client-supplied owner filters are not authorization | daily.dev
og:description: Endpoints that let clients pass an `?ownerId=` parameter to filter results are not performing authorization, only filtering. The authenticated subject must be...
og:url: https://daily.dev/posts/client-supplied-owner-filters-are-not-authorization-5nsqjlajt
og:image: https://api.daily.dev/og/posts/5nsQjlAJT.png
og:image:alt: Client-supplied owner filters are not authorization
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Client-supplied owner filters are not authorization

**[Auth By Example](https://daily.dev/sources/7eadcwhmohx0bchehapmt)** · [@authbyexample](https://daily.dev/authbyexample) · 1 min read · 0 upvotes · 0 comments

## Summary

Endpoints that let clients pass an `?ownerId=` parameter to filter results are not performing authorization, only filtering. The authenticated subject must be bound server-side first, and any client-supplied filters applied only within that already-scoped set. Otherwise, an attacker who guesses another user's owner id can access their data, a classic insecure direct object reference (IDOR) pattern.

## Content

If your list endpoint trusts `?ownerId=` from the client to decide which rows to return, that is a filter, not an authorization check.

Bind the authenticated subject on the server first, then apply filters only inside that scope. Otherwise anyone who can guess another owner’s id gets their data.

A WHERE clause shaped by the caller is not a policy decision.

## Similar posts on daily.dev

- [Build an IDOR Vulnerability Lab: Why WHERE Clauses Don’t Protect Your API.](https://daily.dev/posts/build-an-idor-vulnerability-lab-why-where-clauses-don-t-protect-your-api--wmreqolv5) · InfoSec Write-ups · 0 upvotes · 0 comments
- [How to Prevent IDOR Vulnerabilities in Next.js API Routes](https://daily.dev/posts/how-to-prevent-idor-vulnerabilities-in-next-js-api-routes-dmkrw7ol0) · freeCodeCamp · 1 upvotes · 0 comments
- [OSSEC: IDOR vulnerability no more — The easiest way for you to verify your apps yourself.](https://daily.dev/posts/ossec-idor-vulnerability-no-more-the-easiest-way-for-you-to-verify-your-apps-yourself--im32nx5sz) · ITNEXT · 1 upvotes · 0 comments
- [Why AI Agents Write Broken Access Control](https://daily.dev/posts/why-ai-agents-write-broken-access-control-7drb4bp0v) · Snyk · 1 upvotes · 0 comments
- [OAuth and OIDC Beyond the Login Button: Identity as the API Security Control Plane](https://daily.dev/posts/oauth-and-oidc-beyond-the-login-button-identity-as-the-api-security-control-plane-bnyisfbqb) · Nordic APIs · 7 upvotes · 2 comments

---

Tags: [#security](https://daily.dev/tags/security), [#authorization](https://daily.dev/tags/authorization)

[View this post on daily.dev](https://daily.dev/posts/client-supplied-owner-filters-are-not-authorization-5nsqjlajt)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/client-supplied-owner-filters-are-not-authorization-5nsqjlajt","headline":"Client-supplied owner filters are not authorization","text":"Endpoints that let clients pass an `?ownerId=` parameter to filter results are not performing authorization, only filtering. The authenticated subject must be bound server-side first, and any client-supplied filters applied only within that already-scoped set. Otherwise, an attacker who guesses another user's owner id can access their data, a classic insecure direct object reference (IDOR) pattern.","url":"https://daily.dev/posts/client-supplied-owner-filters-are-not-authorization-5nsqjlajt","datePublished":"2026-09-23T11:02:57.466Z","dateModified":"2026-09-23T11:03:12.316Z","author":{"@type":"Person","name":"Auth By Example","url":"https://daily.dev/authbyexample","image":"https://media.daily.dev/image/upload/s--Fgz7IgGQ--/f_auto/v1789653205/avatars/avatar_7EADCwHmOHX0bChEhAPmt?_a=BAMAMicg0","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":60}},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/7eadcwhmohx0bchehapmt","name":"Auth By Example"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Auth By Example","item":"https://daily.dev/sources/7eadcwhmohx0bchehapmt"},{"@type":"ListItem","position":3,"name":"Client-supplied owner filters are not authorization"}]}
```

