Back to feed
Dev.to
Dev.to
7/21/2026
Missing Authorization Check in Next.js Server Actions Exposed User Resume Data

Missing Authorization Check in Next.js Server Actions Exposed User Resume Data

Original: The Door I Forgot to Lock, How One Missing Check Nearly Exposed Every Resume in My App

Short summary

A developer discovered a missing authorization check in their AI resume analyzer's Next.js server actions, allowing anyone to fetch other users' resume data by guessing an analysis ID. The bug existed because several server actions filtered only by record ID without verifying the requesting user's ownership. The fix involved adding Clerk's auth() checks at the start of every sensitive server action.

  • IDOR vulnerability in Next.js server actions exposed other users' resume data
  • Server actions are network endpoints underneath — frontend hiding is not security
  • Fix: add Clerk auth() ownership checks to every sensitive server action

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more