Broken mach-o rtti recovery with dyld binding metadata

Đang mở
#8,669 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
20/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
reverse-engineering

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C++
Star
1.3k
Fork
304
Merge trung bình
2 ngày 20 giờ
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Vector35/binaryninja-api

Tất cả issue của Vector35/binaryninja-api

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.