Skip to content
Access control Write-up Advanced

No Country for Old Passwords

Two independent logic flaws in macOS Screen Sharing allowed a network attacker to authenticate without a valid password, and because the service runs as root, gain remote root. The text describes reverse engineering the emergency patch to build working exploits for both bugs.

blog.calif.io

Published on blog.calif.io

On Thursday August 6, Apple shipped an emergency macOS update. It fixed exactly one vulnerability, CVE-2026-65400, in a feature called Screen Sharing.

Calif, on blog.calif.io

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 logic errors in the authentication state machine: one bug returns a stale success value after an oversized frame, and the other desynchronises the state machine so an auth step is treated as passed.

Impact

Any network attacker who can reach an unpatched Mac with Screen Sharing enabled could log in as any account without the password and, because the service runs as root, take over the whole machine.

What the attacker needed

Screen Sharing enabled; Network reachability to the Mac; Unpatched macOS version

The fix

It was fixed in macOS 26.6.1, Sequoia 15.7.9 and Sonoma 14.8.9; the text also advises turning Screen Sharing off or placing it behind a VPN or firewall.

How it was found

  1. Pull the patched and unpatched binaries for the emergency update.
  2. Diff the two versions to locate the changed code.
  3. Build an exploit against a live unpatched machine.
  4. Repeat the diff between the earlier and later releases to exploit the first bug too.

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.

Screen Sharing is a macOS feature that lets another computer connect to your Mac over the network. Normally you must type the account password to get in. These bugs let someone skip the password check entirely, and since the service runs with the highest privileges, they could take over the whole machine.

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.