<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/a-batch-endpoint-still-needs-a-per-item-authorization-check-gcaoecyvz" -->

---
title: A batch endpoint still needs a per-item authorization check
description: A single bulk-level permission check on a batch endpoint like POST /orders/bulk is insufficient. Each item in the batch must be authorized individually against...
canonical: https://daily.dev/posts/a-batch-endpoint-still-needs-a-per-item-authorization-check-gcaoecyvz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: A batch endpoint still needs a per-item authorization check | daily.dev
og:description: A single bulk-level permission check on a batch endpoint like POST /orders/bulk is insufficient. Each item in the batch must be authorized individually against...
og:url: https://daily.dev/posts/a-batch-endpoint-still-needs-a-per-item-authorization-check-gcaoecyvz
og:image: https://api.daily.dev/og/posts/GCaoecYVZ.png
og:image:alt: A batch endpoint still needs a per-item authorization check
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.

# A batch endpoint still needs a per-item authorization check

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

## Summary

A single bulk-level permission check on a batch endpoint like POST /orders/bulk is insufficient. Each item in the batch must be authorized individually against its own resource and tenant/owner, denying or skipping items that fail rather than approving the whole batch. Without per-item checks, an attacker can pad a batch request with one authorized id and many unauthorized ones, turning a bulk API into an IDOR (Insecure Direct Object Reference) multiplier.

## Content

A single Authorize(user, "bulk_update", "orders") check is not enough for POST /orders/bulk.

Loop the items. For each order id in the request, authorize update on that concrete order (and its tenant/owner). Deny or skip the ones that fail — do not apply the whole batch because the caller can update one of them.

Otherwise an attacker pads a batch with one allowed id and many forbidden ones, and your “convenient” bulk API becomes an IDOR multiplier.

## Similar posts on daily.dev

- [Designing safer listItems and getItem permissions](https://daily.dev/posts/designing-safer-listitems-and-getitem-permissions-knn0orlvr) · Advanced Web Machinery · 81 upvotes · 0 comments
- [Everyone Knows About Broken Authorization – So Why Does It Still Work for Attackers?](https://daily.dev/posts/everyone-knows-about-broken-authorization-so-why-does-it-still-work-for-attackers--exddy4tnt) · Security Boulevard · 1 upvotes · 0 comments
- [Tables with Bulk Action Authorization](https://daily.dev/posts/tables-with-bulk-action-authorization-w4kmgrxzl) · Larablog · 0 upvotes · 0 comments
- [Introduction to REST API Security – FireTail Blog](https://daily.dev/posts/introduction-to-rest-api-security-firetail-blog-78bnnlerb) · Security Boulevard · 0 upvotes · 0 comments
- [Agents Turn Broken Auth Into a Breach at Machine Speed](https://daily.dev/posts/agents-turn-broken-auth-into-a-breach-at-machine-speed-ew6xjsbnf) · API Evangelist · 0 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/a-batch-endpoint-still-needs-a-per-item-authorization-check-gcaoecyvz)

```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/a-batch-endpoint-still-needs-a-per-item-authorization-check-gcaoecyvz","headline":"A batch endpoint still needs a per-item authorization check","text":"A single bulk-level permission check on a batch endpoint like POST /orders/bulk is insufficient. Each item in the batch must be authorized individually against its own resource and tenant/owner, denying or skipping items that fail rather than approving the whole batch. Without per-item checks, an attacker can pad a batch request with one authorized id and many unauthorized ones, turning a bulk API into an IDOR (Insecure Direct Object Reference) multiplier.","url":"https://daily.dev/posts/a-batch-endpoint-still-needs-a-per-item-authorization-check-gcaoecyvz","datePublished":"2026-09-22T16:13:44.621Z","dateModified":"2026-09-22T16:14:00.507Z","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":"A batch endpoint still needs a per-item authorization check"}]}
```

