Skip to content
Access control Write-up Intermediate

Reverse Engineering the Apple Multipeer Connectivity Framework

The Apple Multipeer Connectivity Framework authorises clients based only on their hostname, which is broadcast in cleartext via mDNS. An attacker on the same network can spoof an authorised client's hostname to hijack its session or bypass the authorisation prompt.

Simone Margaritelli Follow

Published on evilsocket.net

Some time ago I was using Logic Pro to record some of my music and I needed a way to start and stop the recording from an iPhone, so I found about Logic Remote and was quite happy with it. After the session, the hacker in me became curious about how the tools were communicating with each other, so I quickly started…

Simone Margaritelli (@evilsocket), on evilsocket.net

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

The server stores authorisation as a mapping from the client's hostname to a boolean, and the hostname is broadcast in cleartext and is not authenticated.

Impact

An attacker on the same network could hijack an authorised session or bypass the authorisation prompt entirely.

What the attacker needed

Attacker on the same local network; a legitimate client must have been authorised before

How it was found

  1. The client discovers the server via mDNS and connects to the advertised TCP port.
  2. The client sends an Invite packet containing its PeerID, which includes its hostname.
  3. The server checks whether the hostname is already authorised; if so, it skips the user prompt.
  4. An attacker waits for a legitimate client to be authorised, then sends an Invite using that client's hostname to hijack or create a new session.

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.

When two Apple devices connect using this framework, the server asks the user to approve the connection once. After that, it remembers the client by its device name, which is publicly announced on the local network. An attacker on the same Wi-Fi can pretend to be that approved device by using its name, so the server lets them in without asking the user again.

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.

More by Simone Margaritelli

View all

1 more disclosed report, best first.

More from Apple

View all

The newest disclosed reports for this program.

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.