[Bug] CoreTrust signed MachO's may not resign properly
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Rust
- Estrellas
- 3.4k
- Forks
- 224
- Merge medio
- 34 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de claration/impactor
-
Extensions inside an embedded watch app are not renamed or signed (AppexBundleIDNotPrefixed)Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 72/100
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
-
[Bug] Unable to openAbiertobug
Dificultad 3/5 Medio día Aptitud para principiantes 35/100
-
[Feature] Add local AnisetteAbiertoenhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Todos los issues de claration/impactor
Issues similares
-
claim
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Nixitov/Riptide-Native#946 ·
Los mantenedores suelen responder en 1 día
-
area: ai-assistants documentation help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
BetaBots-LLC/latticegate#17 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 94/100
storytold/craft-libs#5594 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
听歌识曲历史跳转后对应音源界面无法返回Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
LingyunStudio/RustMusic#16 ·