Skip to content

Fix Apple ID sign-in failing with HTTP 503 (Apple blocks the hardcoded Xcode client identifier) - #1790

Closed
catdkny wants to merge 1 commit into
altstoreio:marketplacefrom
catdkny:fix/gsa-client-info-blocked
Closed

catdkny wants to merge 1 commit into
altstoreio:marketplacefrom
catdkny:fix/gsa-client-info-blocked

Conversation

@catdkny

@catdkny catdkny commented Sep 10, 2026

Copy link
Copy Markdown

Problem

Since early September 2026 every Apple ID sign-in fails with:

AltServer could not sign in with your Apple ID.
Apple's authentication servers returned an error (HTTP 503).

Nobody can install or refresh AltStore. The error message blames Apple, and it is
half right: Apple's authentication edge now refuses any request whose
X-MMe-Client-Info header identifies the client as Xcode. That identifier is
hardcoded in this repo, so the request is rejected before any credential is checked —
it fails identically with a nonexistent account.

Root cause

POST https://gsa.apple.com/grandslam/GsService2 is refused at the edge (190-byte
HTML page from Server: Apple, ~0.2s, not a real GSA plist) whenever
X-MMe-Client-Info contains the substring com.apple.dt.Xcode.

Isolated by elimination — none of these affect the outcome:

  • Version bump. com.apple.dt.Xcode/9999.9.99, /23500, /1.0 → all 503. The
    block is on com.apple.dt.Xcode, not the version.
  • User-Agent. akd/1.0 CFNetwork/808.1.4, /978.0.7, /1568.100.1, curl/8.7.1
    and a browser UA → all 503.
  • Hardware/OS portion of the header, HTTP version, connection reuse, and which of
    Apple's five edge IPs is used → no effect.

Only the client token matters:

X-MMe-Client-Info client token HTTP Response
com.apple.dt.Xcode/3594.4.19 503 HTML error page, dropped at edge
com.apple.akd/1.0 200 GSA plist, ec=-20101 "Your account information was entered incorrectly."

The 200 used a well-formed SRP init plist with real anisette data and a deliberately
nonexistent account, so -20101 is the correct answer and confirms the request now
reaches the authentication service.

Fix

Report the client as akd, the daemon that actually performs this request on macOS,
in the three places the identifier is hardcoded:

  • AltServer/Anisette Data/AnisetteDataManager.swift:28 — sanitize(byReplacingBundleID:)
  • AltServer/Anisette Data/AnisetteDataManager.swift:165 — serverFriendlyDescription
  • AltDaemon/AnisetteDataManager.swift:59 — hardcoded deviceDescription

Verify

# prints 503
curl -s -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

# prints 401 — reaches the service instead of being dropped
curl -s -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/1.0)>' \
  --data-binary t https://gsa.apple.com/grandslam/GsService2

Testing

Not compiled. Xcode is not installed on the machine this was written on, so the
project could not be built or run through its test suite. The change is three string
literals with no type or control-flow impact, but please build before merging.

End-to-end, on the shipping binary rather than this build: the same substitution was
applied to the four occurrences of the literal inside AltServer 1.7.5 (build 92) on
macOS 15.7.5, and a full sign-in, AltStore install and AltStore update then completed
successfully on a real iPhone.

One caveat, stated plainly: that binary patch had to preserve byte length, so it used
com.apple.accountsd/113.0.11 (28 bytes, same as the original) rather than
com.apple.akd/1.0. Both return HTTP 200 with a valid GSA plist, so they are equivalent
at the point of failure, but the complete install flow was exercised with the
accountsd variant. Source has no length constraint, hence akd here.

Notes for maintainers

  • Third-party anisette servers commonly serve this same stale Xcode string and are
    blocked for the same reason. They need the same change independently.
  • Windows AltServer was not examined; if it carries the same literal it needs the same fix.
  • This treats the symptom. Apple could block com.apple.akd/1.0 next; the durable fix
    is to derive the identifier from the system instead of hardcoding it. Left out of this
    PR to keep the diff to the bug.
  • The literal stays duplicated across two targets that share no common file. Extracting
    a shared constant felt like it belonged in a separate change.

Apple's authentication edge now returns HTTP 503 for any sign-in request
whose X-MMe-Client-Info header identifies the client as Xcode. The
request is refused before any credential is checked, so every sign-in
failed with "Apple's authentication servers returned an error (HTTP
503)" regardless of the account used.

Report the client as akd, the daemon that normally performs this
request. The blocked value is a hardcoded literal, so this affects
every user on every version.
@jsheputis

Copy link
Copy Markdown

This treats the symptom. Apple could block com.apple.akd/1.0 next; the durable fix
is to derive the identifier from the system instead of hardcoding it. Left out of this
PR to keep the diff to the bug.

My first thought was if the value was initialized with a random value each time to avoid being blocked in the future. If there is a better system value that also sounds ideal.

Note: Just a user of this project, but a SWE for day to day :)

@tapi6969

Copy link
Copy Markdown

So, if you don't know anything about IT, there's no way to fix this error yourself?

nab138 pushed a commit to nab138/isideload that referenced this pull request Sep 10, 2026
Apple's GSA edge returns HTTP 503 for any request whose X-Mme-Client-Info
contains 'com.apple.dt.Xcode' (since early September 2026). Report the
client as akd, the daemon that actually performs these requests on macOS.

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

Copy link
Copy Markdown

I'm confused at what I'm looking at. How exactly do I use the "fix"

@jsheputis

Copy link
Copy Markdown

So, if you don't know anything about IT, there's no way to fix this error yourself?

I'm confused at what I'm looking at. How exactly do I use the "fix"

This is a proposed code change to fix this. It would need to be approved by the maintainer(s) of AltStore and a new release would need to be made.

I don't see anything posted on any of their channels that they are even aware of this breaking.

@jsheputis

Copy link
Copy Markdown

@catdkny Just looking at the changes 2 days ago, should this maybe be targeting the classic branch?

@catdkny

catdkny commented Sep 10, 2026

Copy link
Copy Markdown
Author

@catdkny Just looking at the changes 2 days ago, should this maybe be targeting the classic branch?

Thanks for the feedback. Our platform relies on how Apple responds; I realize that Apple's servers could change things at any time—potentially without notice.

I was previously using version 1.7.2 and had high hopes for 1.7.3, so I was surprised to see 1.7.5 arrive instead. However, 1.7.5 still has issues.
I really hope the maintainer is aware of this and can provide a response soon.

Hope it helps.

@st-ivan

st-ivan commented Sep 10, 2026

Copy link
Copy Markdown

following , same issue here.

@JComputerProfessionals

Copy link
Copy Markdown

Sidestore just released an update just have to wait for the live container devs to integrate the new version

@rileytestut

Copy link
Copy Markdown
Collaborator

Amazing thank you so much for this! I've merged this in to the classic branch and will ship this change with the next AltStore update, which we intend to ship very soon 🙂

liehuu referenced this pull request in liehuu/SideStore Sep 11, 2026
Apple's GSA edge returns HTTP 503 for any X-MMe-Client-Info containing
com.apple.dt.Xcode since early September 2026. Anisette servers
(ani.sidestore.io) still serve this stale identifier, breaking login/2FA/signing.

Mirrors isideload a19f5f0 and AltStore SideStore#1790: replace com.apple.dt.Xcode/x.y.z
with com.apple.akd/1.0 in deviceDescription at the single source (FetchAnisetteDataOperation),
covering both V3 client_info and V1 X-MMe-Client-Info paths.
@Ein-Tim

Ein-Tim commented Sep 11, 2026

Copy link
Copy Markdown

The community would highly appreciate it!

dahlia added a commit to dahlia/coffer that referenced this pull request Sep 11, 2026
Replace the upstream Xcode client description at Coffer's adapter
boundary and wipe the source string before reusing its allocation.
Share the fixed akd profile with provisioning so both paths report the
same client role while preserving source validation.

altstoreio/AltStore@c558994
altstoreio/AltStore#1790

Assisted-by: Codex:gpt-5.6-sol
Assisted-by: Codex:gpt-6-astra
Assisted-by: Claude Code:claude-opus-5
dahlia added a commit to dahlia/coffer that referenced this pull request Sep 11, 2026
Replace the stale AuthKit platform description used by GSA with the
public profile recently verified by xtool. Keep the Xcode token confined
to the GSA User-Agent while reporting akd in client-info, and pin the
current trusted-device Xcode version.

Split authentication and provisioning client-info constants so the
provisioning path retains its independently verified macOS 13 profile
and AKD User-Agent pair without changing stored state or control flow.
Add exact offline assertions for password exchange, 2FA, generation,
and provisioning headers.

xtool-org/xtool#244
xtool-org/xtool@893cf4f
xtool-org/xtool#257
xtool-org/xtool@450223e
altstoreio/AltStore#1790

Assisted-by: Codex:gpt-5.6-sol
Assisted-by: Codex:gpt-6-astra
Assisted-by: Claude Code:claude-opus-5
@bjmlalalalala-dev

Copy link
Copy Markdown

I’m sorry, I’m not very familiar with IT. Could you please tell me what software I need to download in order to modify the code you mentioned?

@catdkny

catdkny commented Sep 11, 2026

Copy link
Copy Markdown
Author

I’m sorry, I’m not very familiar with IT. Could you please tell me what software I need to download in order to modify the code you mentioned?

They have released a new version, so you just need to "check for updates" and install it.

wanderdev0 added a commit to wanderdev0/FindMy.py that referenced this pull request Sep 13, 2026
Since early September 2026 a POST to `gsa.apple.com/grandslam/GsService2` whose
`X-MMe-Client-Info` contains `com.apple.dt.Xcode` is refused before any credential is looked at:
a 190-byte HTML page from `Server: Apple` in about 0.2s rather than a GSA plist. Clients see it
as HTTP 503 and report it as an Apple outage.

Naming `com.apple.akd` - the daemon that actually performs this request on macOS - reaches the
service. Verified with this library's own request shape and real Anisette data, one variable
changed:

    akd   -> HTTP 200  (818 bytes, a real GSA plist)
    xcode -> HTTP 503  (190 bytes, the edge error page)

and without any account at all:

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

    ... (com.apple.akd/1.0)> ...                      # 401, i.e. it arrived

`client_akd` already existed for the endpoints that authenticate with a heartbeat token, so this
is the value this library already knew how to compose - it simply was not used here.

**Only this call site sends the identifier on the GSA path.** `get_cpd` does not request client
info, so the body carries none, and `_XCODE_BUNDLE` survives only in `client` and on the SMS 2FA
path. That matters because patching the Anisette header builder instead looks like a fix and
changes nothing - which is exactly the wrong turn taken while diagnosing this, and the reason a
whole afternoon went into eliminating the serial, the device ids, the provisioning, the network,
the account and the machine first.

Diagnosed by AltStore in altstoreio/AltStore#1790 and shipped in AltServer 1.7.6; the same block
took out SideStore, Macless Haystack, OpenBubbles and this library. Dadoum/anisette-v3-server#60
is the same one-token change. See OpenTagViewer#168, malmeloo#176 and malmeloo#181.
malmeloo pushed a commit to malmeloo/FindMy.py that referenced this pull request Sep 14, 2026
Since early September 2026 every sign-in fails with `Error response for GSA request: 503`.

Apple's edge refuses any POST to `gsa.apple.com/grandslam/GsService2` whose
`X-MMe-Client-Info` names `com.apple.dt.Xcode`, before any credential is examined -- it
answers a 190-byte HTML page from `Server: Apple` in about 0.2s instead of a GSA plist.
`com.apple.akd` is the daemon that performs this request on macOS and is answered normally.

Reproducible without an account:

    curl -so /dev/null -w '%{http_code}\n' -X POST --data-binary t \
      -H 'X-MMe-Client-Info: <MacBookPro18,3> <Mac OS X;13.4.1;22F8> <com.apple.AOSKit/282 (com.apple.dt.Xcode/3594.4.19)>' \
      https://gsa.apple.com/grandslam/GsService2      # 503

    curl -so /dev/null -w '%{http_code}\n' -X POST --data-binary t \
      -H 'X-MMe-Client-Info: <MacBookPro18,3> <Mac OS X;13.4.1;22F8> <com.apple.AuthKit/1 (com.apple.akd/1.0)>' \
      https://gsa.apple.com/grandslam/GsService2      # 401, i.e. it reached the service

And with this library's own request shape, real anisette data, one variable changed:
akd returns HTTP 200 with a GSA plist, Xcode returns HTTP 503 with the edge page.

Only the app token matters -- bumping the Xcode version does not help, and the user agent,
the hardware and OS portion of the header, and which edge IP is used make no difference.
That isolation is AltStore's, in altstoreio/AltStore#1790, shipped in AltServer 1.7.6.
The same block took out SideStore, Macless Haystack, OpenBubbles and OpenTagViewer;
Dadoum/anisette-v3-server#60 is the same one-token change.

Closes #268.
saamdotexe pushed a commit to saamdotexe/OpenTagViewer that referenced this pull request Oct 22, 2026
Every sign-in has been failing with HTTP 503 from Grand Slam since late August. Apple's edge
refuses any POST to `gsa.apple.com/grandslam/GsService2` whose `X-MMe-Client-Info` names
`com.apple.dt.Xcode`, before a credential is examined - a 190-byte HTML page from `Server: Apple`
instead of a GSA plist. Naming `com.apple.akd`, the daemon that really makes this call on macOS,
is answered normally.

Fixed in the fork at `b6f544b` and repinned here, in all four places rule 14 lists. Verified end
to end against a real Apple ID: a sign-in that had failed for days now completes, and the
library's own request shape returns HTTP 200 with akd against 503 with Xcode, one variable
changed.

**Not our diagnosis.** AltStore found it (altstoreio/AltStore#1790, shipped in AltServer 1.7.6);
the same block took out SideStore, Macless Haystack, OpenBubbles and every Anisette server.
Upstream fix offered as malmeloo/FindMy.py#271, and Dadoum/anisette-v3-server#60 is the same
one-token change.

Four files claimed the shared constant serial was the leading suspect for wanderdev0#168, wanderdev0#176 and wanderdev0#181.
It was not, and the correction is in each of them rather than only in the rule: serials were
eliminated on the way to the real cause - a drawn one, the old constant, and upstream's bare `0`
all refused identically - and a QEMU macOS VM signs in with a fabricated `C02...` serial that is
not unique across installs. The per-install serial stays on its own merits; it explains none of
the 503s.

Rule 18 records the two things that cost the afternoon: the answer was already published by a
neighbouring project two days earlier, and the Xcode identifier was tested and wrongly cleared
early because the patch went to the Anisette header builder while `_gsa_request` composes that
header at a separate call site.
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.

8 participants