Menu

Session Swap: Privilege Escalation via Client-Trusted Role Cookie
πŸ“°

Session Swap: Privilege Escalation via Client-Trusted Role Cookie

DEV Community: appsecΒ·The Duchess of HackersΒ·6 days ago
#KzQvY6H8
#devtoappsec#devto#dev#server#client
Long article (447 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Summary

A role-based access control (RBAC) implementation that trusts a client-side cookie as its sole authorization signal β€” no server-side verification, no signing, no session binding. Result: trivial vertical privilege escalation from a standard staff account to full administrator access.

This writeup documents the vulnerability found in Session Swap , a simulated internal staff portal ("Ridgeline Hotels"), and the exploitation path from low-privilege user to admin.

Target Behavior

Authenticating with standard staff credentials placed the session in a Front Desk Lead role.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.