Broken mach-o rtti recovery with dyld binding metadata

未关闭
#8,669 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
20/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp

调研方向

Start in view/macho/machoview.cpp around the linked ranges (about lines 1760-1788, 2358-2369 and 3485-3515), where undefined symbol-table entries are matched to dyld binding opcodes. Download the repro zip from the issue and compare the import names and bind records the view produces against what dyld resolves. Done means the missing binds are recovered, RTTI pointers and vtables resolve on the repro binaries, and the change does not break existing Mach-O loading.

由索引模型根据 Issue 内容生成。

描述

Component: RTTI Effort: Low File Format: Mach-O Impact: Medium

we incorrectly rely on Mach-O’s symbol table to resolve dyld imports. When undefined symbol-table entries are renamed or removed, it drops valid binds or assigns incorrect import names, even though dyld still loads the binary correctly. Missing binds break C++ RTTI pointers and prevent vtable recovery.

Repro binaries: macho_rtti_symbol_bug.zip

Potentially relevant code:

https://github.com/Vector35/binaryninja-api/blob/14d46ea2a46330b0b6abbea8dcb620f84494fc8b/view/macho/machoview.cpp#L1760-L1788

https://github.com/Vector35/binaryninja-api/blob/14d46ea2a46330b0b6abbea8dcb620f84494fc8b/view/macho/machoview.cpp#L2358-L2369

https://github.com/Vector35/binaryninja-api/blob/14d46ea2a46330b0b6abbea8dcb620f84494fc8b/view/macho/machoview.cpp#L3485-L3515

主要语言
C++
星标
1.3k
派生
304
平均合并
2 天 20 小时
30 天内合并 PR
10

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Vector35/binaryninja-api 的其他 Issue

查看 Vector35/binaryninja-api 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。