One Request Away No. 15 Streak 0 Solved 0 of 27

Someone else’s table

Easy Business Logic 18 Aug 2026 Solved by 4

Scenario

Marchmont Kitchen takes orders from a QR code on each table. You scan, the menu opens, you add rounds, and the tab is settled at the end of the night.

There is no sign-in anywhere in this. Scanning the code is the whole of it, and the code encodes the table you are sitting at.

The table number is printed on a small card next to the code. Yours reads 12. The long table by the window, which has been ordering all evening, reads 31.

One change to this request triggers the vulnerability. The challenge is to use your security intuition to work out what to change. Find the value the server shouldn’t trust, change it, and send it. The response tells you whether you were right.

Request Tap any part of it
// HTTP/1.1
Host:
Content-Type:
X-Table:
item=&quantity=
No change — send it as it stands
Response

  • 01 What the server believed

    “The table number came from our QR code, so it is a fact about where the customer is sitting.”

  • 02 The fix

    Bind the tab to something the customer cannot choose. Issue a signed, short-lived token when the code is scanned and key the tab on that, so a round can only be added to the tab it was issued for. If the number must travel in the clear, sign it. Add a test that posts a round for one table using another table's session and expects a refusal.

  • 03 Where else to look for this

    Anywhere a frictionless flow replaces identity with a location or a device: table and room numbers, kiosk and terminal ids, store codes, locker numbers, meeting room panels, anything reached by scanning a code. The convenience is that nobody has to sign in, and the consequence is that the only thing naming the account is a value the client sends.

The series

Every drill 27

One Request Away is a daily series of challenges. They’re like code review, but for HTTP requests: in each one you’re one request away from triggering a vulnerability, and your goal is to identify what you need to change.

Do not stop here

A drill is one request.
A lab is the whole app.

Uphack labs are believable products with one realistic flaw buried in an ordinary feature. Same instinct, nothing highlighted — you get a running application and have to find it yourself.

Browse the labs
Registration is open Closes today

Turn the instinct into practice.

Drills are free and stay that way. The labs put the same reasoning against a whole application, and members get all of them. Registration is open until Saturday 19 September.

Create your account

Already a member? Sign in