[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110904":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":15,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":8,"rankLanguage":8,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":8,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":14,"starSnapshotCount":14,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},110904,"Gester","sasobhabha\u002FGester","sasobhabha",null,"Objective-C",246,23,109,4,0,16,137,3,59.14,"MIT License",false,"main",true,[],"2026-11-09 08:18:41","2026-11-23 15:55:39","# Gester — iOS 27.x sandbox escape + MobileGestalt editor\n\n**Open source, MIT licensed and free for everyone.** Gester is not limited to\ntesters, a private group or an allowlist. Anyone can use, study, modify,\nredistribute and ship the MobileGestalt editor under the MIT license.\n\nSupported: **iOS 27.0.1 – 27.2** (primary target 27.2 \u002F 24B115).\n\nThis repository contains the escape engine, the **Gester** app source (internal\ntarget `BQTool`) and the release IPA.\n\n---\n\n## 0. Who can use it\n\n**Everyone.** There is no invitation, tester list, waitlist or account. Clone\nthe repository, build the app, install the IPA, fork it, publish your own\nbuild — the MIT license allows all of it.\n\nThe MobileGestalt editor itself has no access check and no allowlist. On\n**iOS 27.2** the primary class-7 path needs at least one\n`com.apple.security.application-groups` entitlement in the running app. Gester\n2.4.1 also offers an **opt-in class-2 parent fallback** (Settings → Class-2\nfallback), which renames the app's own `Library` and may work without an app\ngroup. It is off by default because some builds terminate the app when\n`Library` is moved. If both paths fail, the log shows exactly which step the\nsandbox denied. On some **27.0.x** builds the legacy class-13 traversal may\nwork without an app group.\n\n---\n\n## 1. What this is\n\nGester is a **partial sandbox escape**: a normally sandboxed app obtains a\nread\u002Fwrite sandbox extension for a path outside its own containers. It is not\nroot, not a kernel exploit and not a full filesystem escape. It is exactly\nenough to:\n\n- read and write the live **MobileGestalt** cache\n  (`systemgroup.com.apple.mobilegestaltcache\u002FLibrary\u002FCaches\u002Fcom.apple.MobileGestalt.plist`);\n- install custom **PosterBoard** wallpapers (`.tendies` descriptors) into the\n  three provider descriptor folders;\n- read and write other **MCM containers** whose path is known (app data, app\n  group, SystemGroup).\n\nThe included app is a full UIKit toolbox:\n\n- **Gestalt** — Dynamic Island on\u002Foff, Dynamic Island model picker (14\u002F15\u002F16\u002F\n  17\u002F18 experimental or custom subtype), version spoof, Apple Intelligence,\n  Siri AI US region, AI device spoof, iPadOS mode, Security Research Device\n  (ResearchFuse), Store Demo Mode, AOD, Boot Chime, Charge Limit, Tap to Wake,\n  Stage Manager, Apple Pencil, Action Button, Collision SOS, Parallax off,\n  full `CacheExtra` editor (add\u002Fedit\u002Fdelete; String\u002FInteger\u002FBoolean\u002FData),\n  apply\u002Frevert\u002Frespring, backup.\n- **PosterBoard** — import `.tendies`, apply all, online wallpaper catalog\n  (`SerStars\u002FNugget-Wallpapers`), reset, open PosterBoard, respring. Applies to\n  both classic and modern Collections providers and writes the PosterBoard\n  refresh marker to avoid gray posters.\n- **Settings** — diagnostics, in-place\u002Fatomic write toggle, log viewer, a\n  test-device banner: “This iPhone is provided specifically for testing” with\n  an editable “Managed by group:” label, and an in-app language picker.\n- **Languages** — English, Russian, Korean, Arabic, Turkish, Ukrainian and\n  Vietnamese, with automatic RTL layout for Arabic.\n\n---\n\n## 2. The bug\n\n### 2.1 Old `bad_query` is patched on 27.2\n\n`bad_query` used `container_query_operation_set_part_domain` with `..`\ntraversal:\n\n```objc\nquery_set_class(q, 13);\nquery_set_group_identifiers(q, xpc_string_create(\"systemgroup.com.apple.mobilegestaltcache\"));\nquery_set_part(q, 3);                 \u002F\u002F Library\u002FCaches\nquery_set_part_domain(q, \"..\u002F..\u002F..\u002F..\u002F..\u002F..\u002F..\u002F..\" + path);\nquery_set_flags(q, 0x8100000000);\n```\n\nOn 27.2:\n\n- `MCMXPCMessageQuery` rejects a `SystemDataDomain` containing `..`\n  (`Rejecting query with invalid partDomain`).\n- `MCMFileManager realPathForURL:ifChildOfURL:` resolves symlinks and rejects\n  absolute\u002Foutside targets when `partDomain` is non-empty.\n- A direct class-13 query returns the MG path but **no sandbox token** for an\n  app without the matching entitlement.\n\n### 2.2 The part-directory symlink\n\nThe fix validates `partDomain`, but **not the part directory itself** when the\ndomain is empty:\n\n1. The app-group container is writable. Replace\n   `\u003Capp group>\u002FLibrary\u002FCaches` with a symlink to the target container.\n2. Query MCM:\n   - class **7** (app group),\n   - own group identifier,\n   - part **3** (`Library\u002FCaches`),\n   - **empty** `partDomain`,\n   - flags `0x8100000000` (include path + extension type 3).\n3. `containermanagerd` builds `\u003Capp group>\u002FLibrary\u002FCaches`, sees a symlink, and\n   issues the sandbox extension for the **resolved target**.\n4. `sandbox_extension_consume` grants read\u002Fwrite to the target.\n\nNo traversal string is involved, so the 27.2 checks never see `..` and never\nget a non-empty `partDomain` to validate.\n\nThe symlink is removed and the original `Library\u002FCaches` restored after each\noperation. Crashes are recovered on the next run (`Caches.bqtool` backup).\n\n### 2.3 Class 2: part directories vs. the parent fallback\n\nOn iOS 27.2 the sandbox denies `rename()` of every class-2 part directory from\ninside the app:\n\n```\nLibrary\u002FPreferences  -> EPERM (errno 1)\nLibrary\u002FCaches       -> EPERM (errno 1)\nDocuments            -> EPERM (errno 1)\ntmp                  -> EPERM (errno 1)\nSystemData           -> EPERM (errno 1)\n```\n\nOnly the app-group part directory is directly renameable. Gester 2.4.1 has an\n**opt-in class-2 parent fallback** for builds without an app group. It is off\nby default (2.2 ran it automatically and could crash on builds that kill the\nprocess for moving `Library`):\n\n1. Rename the app's own `Library` to `Library.bqtool`.\n2. Create a small fresh `Library` and symlink `Library\u002FCaches` to the target.\n3. Query class 2 (own bundle identifier, part 3, empty `partDomain`,\n   flags `0x8100000000`).\n4. Restore the original `Library` immediately; the consumed token remains\n   valid for the resolved target.\n\nEnable it in **Settings → Class-2 fallback (experimental)** and then retry\nGestalt\u002FPosterBoard. If the app closes when it is enabled, relaunch, disable the\nswitch, and send `Documents\u002Fbqtool.log`. If the sandbox denies moving\n`Library`, the log shows `class2-parent: move Library -> bak failed` and the\nclass-7 path still needs an app group.\n\n### 2.4 Dynamic app group\n\nOld builds hardcoded one group. Gester reads the app's own runtime entitlements:\n\n```objc\nSecTaskRef task = SecTaskCreateFromSelf(kCFAllocatorDefault);\nCFTypeRef groups = SecTaskCopyValueForEntitlement(\n    task, CFSTR(\"com.apple.security.application-groups\"), NULL);\n```\n\nIt picks the first group that yields a\n`containerURLForSecurityApplicationGroupIdentifier` container. The MCM query\nuses that group identifier. A build with **any** app group works; there is no\nhardcoded identifier.\n\n### 2.5 Multi-strategy escape (27.0.1–27.2)\n\n`BQEscape` tries, in order, and logs every attempt:\n\n| # | Strategy | Needs app group | Likely versions |\n|---|---|---|---|\n| 1 | class 13 + `partDomain` traversal (old `bad_query`) | no | 27.0.x where traversal is still open |\n| 2 | class 7 part-directory symlink | yes | 27.2 |\n| 3 | class 2 parent `Library` symlink (2.4.1, opt-in) | no | 27.2 if `Library` rename is allowed |\n| 4 | class 13 direct MG query | no | builds that issue a token |\n| 5 | class 12 geod + traversal | no | older builds |\n\nThe first successful strategy is used. A result but no token is logged as\n`token=NO consume=-5` (`-5` is the app's \"no token \u002F consume failed\", not an\ninstallation error).\n\n---\n\n## 3. Reachable targets\n\nConfirmed on 27.2 (redacted):\n\n- **MobileGestalt** — 10 740-byte binary plist, parsed as `__NSDictionaryI`,\n  79→80 `CacheExtra` keys, opened `O_RDWR`, marker written.\n- **PosterBoard** — app data container\n  `\u002Fvar\u002Fmobile\u002FContainers\u002FData\u002FApplication\u002F\u003CUUID>`; all three descriptor\n  folders writable:\n  - `com.apple.WallpaperKit.CollectionsPoster\u002Fdescriptors`\n  - `com.apple.MercuryPoster\u002Fdescriptors`\n  - `com.apple.PhotosUIPrivate.PhotosPosterProvider\u002Fdescriptors`\n- **App data containers** — 245 containers enumerated with `fsgetpath` and\n  opened with tokens.\n- **PosterBoard `.tendies` pipeline** — 25-file ZIP extracted, descriptor\n  found, IDs randomized, folder written to the WallpaperKit provider.\n\nThe same technique can reach other MCM containers whose path is known.\n\n---\n\n## 4. Build\n\nRequirements: Linux\u002FmacOS, clang, an iOS SDK (Theos SDK works), zlib.\n\n```bash\n.\u002Fbuild.sh\n# -> build\u002FGester-2.4.1.ipa\n```\n\nThe default bundle identifier is `com.Gester.escape`. Override with `BID=...`.\nThe SDK path can be overridden with `SDK=...`.\n\n---\n\n## 5. Install and runtime requirement\n\nAnyone can install `Gester-2.4.1.ipa`; use whatever installation method you\nnormally use.\n\nThe primary 27.2 strategy needs the running app to have at least one\n`com.apple.security.application-groups` entitlement. Gester reads its own\nentitlements at runtime and uses the first group that has a container URL.\n\n- **With an app group** — class 7 is attempted after the class-13 fallback and\n  is the working path on 27.2.\n- **Without an app group** — the app logs `(none)` and tries the legacy\n  class-13 traversal. That may work on some 27.0.x builds; it is closed on\n  27.2.\n\nThere is no hardcoded group identifier, so any build that grants an app group\ncan use the primary path.\n\n---\n\n## 6. Usage\n\nOn first launch:\n\n- Gestalt loads the live MG plist and creates\n  `Documents\u002FOriginalGestalt.plist` (true original) if missing.\n- Apply writes the plist (in-place with rollback, or atomic), verifies it and\n  offers a respring.\n- Revert restores the backup.\n- PosterBoard → Import `.tendies` \u002F Explore Wallpapers → Apply → Open\n  PosterBoard \u002F Respring.\n\n**Keep `OriginalGestalt.plist`.** If the app is deleted, the backup goes with\nit.\n\n---\n\n## 7. Logs and diagnostics\n\n- `Documents\u002Fbqtool.log` — session log (iOS build, group identifier, every\n  strategy, MG reads\u002Fwrites, ZIP\u002Fdescriptor apply).\n- Settings → Run Diagnostics — MG read\u002Fwrite check + PosterBoard container\n  search.\n- Settings → Open Log — viewer with refresh\u002Fclear.\n\nIf an escape fails, the first lines show which strategy failed and why:\n\n```\nstrategy class13-traversal: ... result=0x0 token=NO consume=-5\nstrategy class7-symlink: ... result=0x... token=YES consume=3\nescape: using class7 symlink\n```\n\n---\n\n## 8. Version notes\n\n- **2.4.1** — adds the safe class-2 staged symlink probe, both Collections\n  providers and the PosterBoard refresh marker for `.tendies`.\n- **2.4.0** — adds Russian, Korean, Arabic, Turkish, Ukrainian and Vietnamese\n  localization with an in-app language picker; adds the class-2 subpath token\n  probe and iterates all app groups; fixes `.tendies` installation by writing\n  both Collections providers and the PosterBoard refresh marker.\n- **2.3.1** — crash-guard hotfix: the class-2 fallback is opt-in and is\n  automatically disabled after an unfinished attempt. 2.2 ran it\n  automatically and could terminate the app when `Library` was moved.\n- **2.2** — added the class-2 parent fallback,\n  Dynamic Island enable\u002Fdisable and model picker, version spoof, Apple\n  Intelligence, Siri AI US region, AI device spoof, iPadOS mode, ResearchFuse\n  (Security Research Device), Store Demo Mode, and the in-app test-device \u002F\n  “Managed by group” banner.\n- **27.2 (24B115)** — primary, tested: class-13 traversal closed; class-7\n  part-directory symlink works.\n- **27.0.1 \u002F 27.1** — the class-13 traversal or class-12 geod fallback may\n  still work, possibly without an app group. If all strategies return `-5`,\n  send `Documents\u002Fbqtool.log`; the log distinguishes an entitlement problem\n  from a build-specific MCM change.\n- The app is built with the iOS 14.5 SDK and runs on 27.x.\n\n### Diagnostic notes\n\nFor each device\u002Fbuild send the first 15–20 lines of `Documents\u002Fbqtool.log`:\n\n```\n=== BQEscape start | iOS \u003Cbuild> | bundle ...\napp group entitlement: \u003Cgroup or (none)>\nstrategy class13-traversal: result=... token=... consume=...\nstrategy class7-symlink: result=... token=... consume=...\nstrategy class2-parent: result=... token=... consume=...\nescape: using ...\n```\n\nThis distinguishes:\n\n- no app group + traversal closed → entitlement\u002Finstallation limitation;\n- app group present + class 7 neither result nor token → version-specific MCM\n  change;\n- result but no token → entitlement or target-path issue;\n- token but consume fails → kernel\u002Fextension mismatch.\n\n---\n\n## 9. Limitations and safety\n\n- No root, no kernel, no arbitrary `\u002Fvar` access. Only MCM containers (or\n  paths reachable through the legacy traversal on vulnerable builds).\n- POSIX DAC still applies; write only where user `mobile` can write.\n- MobileGestalt edits can break features or soft-brick the device. Keep the\n  backup. Do not apply unknown keys.\n- iPadOS mode, Apple Intelligence\u002FSiri spoofing, ResearchFuse, Store Demo Mode\n  and version spoofing are behind confirmation prompts for a reason. iPadOS\n  mode patches the binary `CacheData` blob; AI\u002FSiri spoofing can break Face ID;\n  version spoofing can break OTA updates. Revert if anything misbehaves.\n- PosterBoard Reset removes **all** descriptors from the three provider\n  folders, including stock collections; PosterBoard normally regenerates stock\n  ones.\n- Use it only on devices you own or have permission to modify.\n\n---\n\n## 10. Disclosure and public use\n\nGester is public, MIT-licensed research. The primitive and the MobileGestalt\neditor are available to everyone; there is no embargo, tester list or private\ngroup.\n\n- If you find a bug in Gester, open a GitHub issue or security advisory.\n- If you want to report the underlying MCM behavior to Apple, use **Apple\n  Security Bounty** (Sandbox Escape category) and include the iOS build, the\n  exact query (class 7 \u002F part 3 \u002F empty `partDomain` \u002F flags `0x8100000000`),\n  the symlinked part-directory behavior, and a video\u002Flog of MobileGestalt\n  write + PosterBoard descriptor write.\n- Suggested fix direction: canonicalize and validate the **part directory**\n  against the container for every part, and reject symlinked part directories\n  regardless of `partDomain`. The current checks cover `partDomain` but not the\n  part path itself.\n\nSee [SECURITY.md](SECURITY.md).\n\n---\n\n## 11. Credits\n\n- Gester primitive, app, dynamic group and multi-strategy: this project.\n- `bad_query` research: forcequitOS, 0xjohnny.\n- UI\u002Ffeature inspiration: rooootdev\u002Fmond.\n- NeoSpring respring: neonmodder123, skadz108.\n- Wallpaper catalog: SerStars\u002FNugget-Wallpapers.\n- Theos tooling.\n\n---\n\n## 12. License and release assets\n\nGester is released under the **MIT License** — see [LICENSE](LICENSE). You may\nuse, copy, modify, merge, publish, distribute, sublicense and sell copies of\nthe software, including the MobileGestalt editor, as long as the copyright and\npermission notice are preserved.\n\n`v2.4.1`:\n\n- `Gester-2.4.1.ipa` — the app; install it on any supported device.\n- Source code and build script are in this repository.\n\nThere is no allowlist and no special access. The anime name is for fun; the\ncode is serious.\n","Gester 是一个面向 iOS 27.x（主要支持 27.2 \u002F 24B115）的开源沙盒逃逸工具与 MobileGestalt 编辑器。它通过合法 entitlement 配合类-7（app group）或可选的类-2（Library 重命名）路径，获取对系统级 MobileGestalt 缓存、PosterBoard 壁纸描述符及 MCM 容器的读写权限，不依赖内核漏洞或越狱。核心功能包括动态岛开关\u002F型号模拟、AI 相关标识（Apple Intelligence\u002FSiri 区域\u002F设备）篡改、Security Research Device 启用、PosterBoard 壁纸部署与刷新、CacheExtra 键值编辑等。适用于安全研究、系统调试、演示设备定制及合规的测试环境配置场景。",2,"2026-11-24 04:39:54","CREATED_QUERY"]