Skip to content

omnisette: identify as com.apple.akd instead of com.apple.dt.Xcode - #27

Closed
Rogue911 wants to merge 1 commit into
SideStore:masterfrom
Rogue911:fix/client-info-akd
Closed

Rogue911 wants to merge 1 commit into
SideStore:masterfrom
Rogue911:fix/client-info-akd

Conversation

@Rogue911

Copy link
Copy Markdown

Problem

Since early September 2026, Apple's GrandSlam endpoint
(https://gsa.apple.com/grandslam/GsService2) returns an immediate HTTP 503 to any
request whose X-Mme-Client-Info header contains the substring com.apple.dt.Xcode. The
response is an edge error page, not a GrandSlam reply, so the request never reaches
authentication.

omnisette hardcodes exactly that substring in adi_proxy.rs:

pub const CLIENT_INFO_HEADER: &str =
    "<MacBookPro13,2> <macOS;13.1;22C65> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)>";

and sends it on its own provisioning requests to Apple. That means every anisette server
built on this crate fails to provision, regardless of what the client using it does, and the
failure surfaces to users as a 503 they cannot act on.

Change

One constant: com.apple.dt.Xcode/3594.4.19 becomes com.apple.akd/1.0, matching the
identifier akd itself uses. AKD_USER_AGENT in the same file already identifies as
akd/1.0, so this only brings the client info string in line with it.

Verification

Reproducible against Apple with a single request, no account involved — only the header
differs between the two calls:

# blocked: 503 from Apple's edge, never reaches GrandSlam
curl -sk -o /dev/null -w "%{http_code}\n" -X POST \
  -H 'X-MMe-Client-Info: <Mac14,2> <macOS;15.7.5;24G624> <com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)>' \
  --data-binary t https://gsa.apple.com/grandslam/GsService2

# accepted: 401, i.e. the request reaches the auth service
curl -sk -o /dev/null -w "%{http_code}\n" -X POST \
  -H 'X-MMe-Client-Info: <Mac14,2> <macOS;15.7.5;24G624> <com.apple.AuthKit/1 (com.apple.akd)>' \
  --data-binary t https://gsa.apple.com/grandslam/GsService2

The User-Agent makes no difference: with the client info string clean, Apple accepts the
request whether or not the User-Agent mentions Xcode. Only X-Mme-Client-Info is filtered.

Built and run with this change in a self-hosted omnisette-server. Provisioning against
Apple completes (it returned 503 before), and the headers the server then serves are accepted
by GrandSlam: a well-formed SRP init built from them, sent with a nonexistent Apple ID so no
real account is involved, comes back as a normal GrandSlam response

HTTP 200
ec = -20101   "Your account information was entered incorrectly."

rather than the edge error page returned while the Xcode identifier was in place.

Same root cause and same fix as altstoreio/AltStore#1790.

Apple's GrandSlam endpoint returns an immediate 503 edge error to any
request whose X-Mme-Client-Info contains "com.apple.dt.Xcode", so the
provisioning requests omnisette makes on its own behalf never reach
authentication. Every anisette server built on this crate fails as a
result, regardless of what its clients send.

AKD_USER_AGENT in the same file already identifies as akd/1.0; this
brings the client info string in line with it.
@Rogue911

Copy link
Copy Markdown
Author

The failing build check is pre-existing on master and unrelated to this change.

It fails in apple-codesign-wrapper/src/dummy_bundle_id.rs:58:

error[E0308]: arguments to this method are incorrect
    plist.insert(BUNDLE_ID_PROPERTY, dummy_bundle_id);

plist is declared as a git dependency with no pinned revision:

plist = { git = "https://github.com/naturecodevoid/rust-plist", version = "1.4.3" }

so Cargo resolves it to whatever that branch currently points at. Dictionary::insert there
now takes (String, Value) rather than (&str, _), which breaks that call without anything
in this repository having changed. Every workflow run on master has failed as well, the most
recent on 2026-04-14, and #20 and #24 look like they target the same breakage.

This PR changes a single string constant in omnisette/src/adi_proxy.rs and touches no other
crate, so it cannot affect that error either way.

mpDom pushed a commit to mpDom/MultiStore that referenced this pull request Sep 18, 2026
…stops 503-ing sign-in

Since early September 2026 Apple's GrandSlam edge returns HTTP 503 (an
HTML page) to any request whose X-MMe-Client-Info contains
"com.apple.dt.Xcode". The HTML body then fails plist parsing and
surfaces as NSCocoaErrorDomain 3840 ("The data couldn't be read because
it isn't in the correct format").

This fork takes X-MMe-Client-Info verbatim from the anisette server's
/v3/client_info, and the public servers (ani.sidestore.io, ani.npeg.us)
still advertise "<com.apple.AuthKit/1 (com.apple.dt.Xcode/3594.4.19)>",
so every provisioning and sign-in request was blocked regardless of
which server was selected. Rewrite the Xcode identity to
"com.apple.akd/1.0" before use, on both the v3 and v1 intake paths.

Verified against gsa.apple.com with a bodyless probe: the Xcode string
gets 503, the akd string gets a normal 401/404. Mirrors upstream
SideStore/AnisetteKit@ebab7b9 and SideStore/apple-private-apis#27.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Rogue911 Rogue911 closed this Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant