2FA loop: Apple no longer honors the Xcode 11.2 client identity (`com.apple.dt.Xcode/3594.4.19`)
メンテナーはふだん 3 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 85/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- swift
調査の方向性
AOSKit パスがモデル、OS バージョン、ビルドを導出している AnisetteDataManager.swift:249 から始め、VM/anisette-server パスと比較します。ローカルで導出されたモデル値と OS 値を保持したまま、結果として得られるクライアント ID に一貫性があることを確認し、その後 sign-in-only harness を使用して、別の secondaryAuth challenge なしで retry が成功することを確認します。
索引モデルが issue の本文から書いたものです。
説明
Sign-in gets stuck in a loop that looks like a 2FA bug. Apple accepts the verification code
(HTTP 200), but the next SRP login is challenged again with hsc=409 / au=secondaryAuth, so
re-entering codes never helps. Same symptom as #1737 and SideStore#1247.
Cause
X-MMe-Client-Info describes Xcode 11.2 (2019) on macOS 13.1. Apple appears to validate that the
triple is internally consistent before granting HSA2 trust, and Xcode 11.2 / a current Xcode on
macOS 13.1 is not a combination that can exist.
Measured on macOS 27 with the PR #1770 anisette VM:
X-MMe-Client-Info |
result |
|---|---|
<MacBookPro13,2> <macOS;13.1;22C65> … (com.apple.dt.Xcode/3594.4.19)> — current behaviour |
409 secondaryAuth; code accepted, retry still 409 |
<MacBookPro13,2> <macOS;13.1;22C65> … (com.apple.dt.Xcode/25183.54.10)> |
409 secondaryAuth; same loop |
<Mac17,3> <macOS;27.0;26A5416b> … (com.apple.dt.Xcode/25183.54.10)> |
200, au absent, Xcode token issued |
The stale value reaches Apple because anisette sources report it and
ALTAnisetteData(anisetteServerResponse:) copies X-MMe-Client-Info verbatim:
- PR #1770's Linux VM reports
<MacBookPro13,2> <macOS;13.1;22C65> … 3594.4.19> - All five servers in
anisette-servers.jsonreport the same string (checked via/v3/client_info)
Fix
One file. AnisetteDataManager.swift:249 already derives the model, OS version, and build from
ProcessInfo for the AOSKit path. Using that same derived string for the VM/anisette-server path,
with the Xcode version bumped, is sufficient:
<Mac17,3> <macOS;27.0;26A5416b> <com.apple.AuthKit/1 (com.apple.dt.Xcode/25183.54.10)>
Only the Xcode version is pinned; model and OS come from the machine.
Notes
- No AltSign change is needed. Verified with AltSign stock —
X-Xcode-Version: 11.2 (11B41)
andUser-Agent: akd/1.0 CFNetwork/978.0.7 Darwin/18.7.0unchanged. Stale, but not
load-bearing. - The SMS fallback is a symptom, not a separate bug. On a fresh, untrusted machine (deleted
adi.pb/identifier, let the guest re-provision), a coherent identity made Apple return
trustedDeviceSecondaryAuthinstead ofsecondaryAuth. The existing
requestTrustedDeviceTwoFactorCodepath handled it unmodified and the retry returned200. - iOS needs a different form of the same fix.
FetchAnisetteDataOperationonclassicalso
takes the server's client info verbatim, but has no local Mac to derive from, so it would need a
pinned coherent triple. iSideload does this (isideload/src/anisette/remote_v3/mod.rs). - Confirmed on AltServer (macOS 27) and AltStore Classic 2.3b2 with a remote anisette server.
- Tested with a sign-in-only harness — no device, certificates, or install — so each field could
be varied independently.
Happy to open a PR against marketplace if this looks like the right approach.
Investigated with Claude Code.
- 主要言語
- Swift
- スター
- 15.1k
- フォーク
- 1.8k
- 平均マージ
- 5日 16時間
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
altstoreio/AltStore のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
altstoreio/AltStore#1887 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
altstoreio/AltStore#1824 ·
メンテナーはふだん 3 日以内に返信
-
Source dates with fractional seconds are silently reset to midnight対応中かも @kisnner26 が 30 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
altstoreio/AltStore#1823 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
altstoreio/AltStore#1822 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
altstoreio/AltStore#945 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
altstoreio/AltStore の issue をすべて見る
似ている issue
-
area: build-and-ci S3: minor
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
manaflow-ai/cmux#65734 ·
メンテナーはふだん 1 日以内に返信
-
Kokoro ANE legacy: Alignment still runs the graph that traps at 48 tokens (#1172 fixed v3 only)オープンbug text-to-speech
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
FluidInference/FluidAudio#1201 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
OneBusAway/onebusaway-ios#2025 ·
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
erkamyaman/rust-anything#930 ·
メンテナーはふだん 1 日以内に返信
-
contributor: external iOS needs review sdk-58 severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信