[Bug] CoreTrust signed MachO's may not resign properly
还没有人认领这个 Issue。
评估
调研方向
Start by reading the linked macho.rs code around lines 298–358, which detects data after a Mach-O signature, and inspect how Impactor invokes the codesigner. Reproduce the failure with the affected IPA the reporter offered to provide, then trace how CoreTrust-signed binaries differ from the current signing rules. Done means the affected app can be resigned without being rejected as a malformed Mach-O; the issue does not name a test or establish the expected handling of trailing data.
由索引模型根据 Issue 内容生成。
描述
Report
The codesigner has specific rules to follow and this is one of them:
// Rules:
//
// 1. If there is an existing signature, there must be no data in
// the binary after it. (We don't know how to update references to
// other data to reflect offset changes.)
// 2. If there isn't an existing signature, there must be "room" between
// the last load command and the first section to write a new load
// command for the signature.
Some coretrust signed machos dont follow these rules and have data after them after the existing signature, causing the codesigner to fail and deem it as a malformed macho, @iosdecrypt telegram bot produces apps that evidently cause this error:
Err(AppleCodesignError::DataAfterSignature) "__LINKEDIT segment contains data after signature"
https://github.com/indygreg/apple-platform-rs/blob/main/apple-codesign/src/macho.rs#L298-L358
Contributor Checks
- I am willing to attempt to make a pull request to fix this bug
Additional Information
- Developer mode enabled
- Using paid developer account
- I will send an ipa of the app I'm having trouble installing if any
- I'm willing to provide crash logs or debugging information if needed
- 主要语言
- Rust
- 星标
- 3.4k
- 派生
- 224
- 平均合并
- 34 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
claration/impactor 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 72/100
-
bug
难度 4/5 3-5 天 新手友好度 50/100
-
bug
难度 4/5 3-5 天 新手友好度 42/100
-
bug
难度 3/5 半天 新手友好度 35/100
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
查看 claration/impactor 的全部 Issue
相似的 Issue
-
claim
难度 2/5 1-3 小时 新手友好度 88/100
Nixitov/Riptide-Native#946 ·
维护者通常 1 天内回复
-
area: ai-assistants documentation help wanted
难度 2/5 1-3 小时 新手友好度 78/100
BetaBots-LLC/latticegate#17 ·
-
难度 1/5 1 小时以内 新手友好度 94/100
storytold/craft-libs#5594 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
LingyunStudio/RustMusic#16 ·