Skip to content
Access control Write-up Intermediate

Automating Unsolicited Richard Pics; Pwning 60,000 Digital Picture Frames

The Ourphoto mobile app and the digital picture frame's backend API failed to enforce authentication and authorisation, so a blank user token let the researcher enumerate sequential user and device identifiers and read other people's account and device data. The same gaps let an attacker bind their own account to any frame without the owner accepting, and spoof an authorised sender's email to push photos onto a stranger's frame.

Nick M Follow

Published on scrawledsecurityblog.com

November 26, 2022

Nick M (@1oopho1e), on scrawledsecurityblog.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 the API treated a missing authentication token as valid and relied on guessable sequential identifiers for authorisation, so access checks failed open.

Impact

An attacker could read account and device details, including clear-text video-call and MQTT credentials, for over 60,000 accounts, and could push photos to or silently bind and unbind from any frame; the text does not show the original stray photos were explained.

What the attacker needed

Network access to the API; no account needed for some endpoints

How it was found

  1. Proxy the Ourphoto mobile app traffic through an interception proxy.
  2. Request the user/device endpoint with a decremented user_id and the user_token header removed.
  3. Observe another user's device and account details returned.
  4. Enumerate the device endpoint by device_id to collect device tokens and credentials.
  5. Send a bind request with the victim's identifiers, then call the accept-bind endpoint without touching the frame.
  6. Spoof an authorised sender's email address to deliver photos to the frame.

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.

A picture frame and its phone app talk to a company server. That server is supposed to check that whoever asks for an account's details really owns that account. Here it skipped the check when the proof was simply left empty, and the account numbers were easy to guess in order, so anyone could read other people's details and add themselves to other people's frames.

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.