Skip to content
Access control Write-up Intermediate

I Hacked McDonald's (Security Contact Was Harder to Find Than Secret Recipe)

The McDonald's app validated reward points only on the client side, allowing free food, and several internal systems had missing authentication or exposed secrets. An attacker could access confidential design assets, employee data, and modify web content without authorisation.

bobdahacker.com

Published on bobdahacker.com

So I found out the McDonald's app wasn't checking server-side if you actually had enough reward points. Just client-side validation.

The author, on bobdahacker.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely missing server-side authorisation checks and exposed secrets in client-side code.

Impact

Attackers could obtain free food, access confidential documents and employee data, and modify web content; some issues may still be accessible.

What the attacker needed

A crew member account; knowledge of internal URLs; none for some endpoints

The fix

The vulnerabilities were mostly fixed, but a proper security contact and bug bounty program should be established.

How it was found

  1. Change 'login' to 'register' in the URL to access an open registration endpoint.
  2. Fill in missing fields as prompted to successfully register.
  3. Receive password in plaintext via email.
  4. Use a crew member account to log into executive systems like TRT.
  5. Search for any employee and view details including email addresses.
  6. Use an unauthenticated API endpoint to update page content with arbitrary HTML.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Client-side validation means the app checks something on your phone or browser, but the server does not double-check. So someone can bypass the check and get free items. Also, some internal websites had no login required, letting anyone see private information.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.