HackerOne ยท Auth Bypass ยท Resolved

Server Actions that forgot to ask who's calling

Platform: HackerOneReports: #3463806 + #3467975Class: Authentication bypassStatus: Resolved ยท Retest verified
Code editor with authentication code and a bypassed lock

The framework was modern. The missing check was ancient.

TL;DR โ€” ABB's application, built on Next.js, exposed Server Actions that performed privileged operations without verifying the caller's authentication. Two of my HackerOne reports (#3463806 and #3467975) were combined by the triage team into one issue โ€” authentication bypass in Next.js Server Actions โ€” resolved by ABB, and I verified the fix on retest.

Background: the Server Actions trap

Next.js Server Actions let developers write server functions that the frontend calls like ordinary functions. The convenience hides a sharp edge: a Server Action is a public HTTP endpoint. Anyone can call it directly with a crafted request โ€” the UI's login screen is not in the way, because the caller is no longer using the UI.

The recurring failure mode across the industry: a page checks the session before rendering, the developer assumes the action behind that page inherits the protection, and the action itself never checks anything. Page-level auth is a fence around a house whose back door โ€” the action endpoint โ€” opens for anyone who knocks correctly.

The vulnerability

In ABB's application, privileged Server Actions could be invoked without a valid authenticated session. By calling the action endpoints directly โ€” with the action identifier and payload, outside any browser flow โ€” the operations executed as if a legitimate user had triggered them.

How I found it

Impact

Unauthenticated invocation of privileged server functions collapses the application's entire access model: whatever those actions can do โ€” read, modify, administer โ€” an anonymous internet user can do. Severity follows the most powerful reachable action.

Remediation

Lessons

Every framework convenience that hides HTTP also hides the threat model. When a feature makes server calls feel like local function calls, ask the unfashionable question: what does this request look like from an attacker's terminal?

Found something similar?

I help teams verify and fix issues like this โ€” and I retest my own reports for free. Reach me at sr558079@gmail.com or read more writeups.