PE view creates functions at data variable exports

Aperta
#4,053 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp

Direzione di ricerca

Reproduce the issue using the binary referenced by Vector35/binaryninja-api#3709 and inspect address 0x100162e8. Start with the PE loader's export handling, especially its treatment of exports in executable segments. Done means data variable exports no longer produce erroneous functions while real functions continue to be analyzed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Component: BinaryViewType Effort: Low File Format: PE Impact: Low

Version and Platform (required):

  • Binary Ninja Version: 3.2
  • OS: macOS
  • OS Version: 12.4
  • CPU Architecture: M1

Bug Description:
On trying to analyze the binary in Vector35/binaryninja-api#3709, many functions are created for data variable symbols, because they are technically exports (and have an entry), but are in the text segment. These functions are erroneous and misleading.

Steps To Reproduce:
Please provide all steps required to reproduce the behavior:

  1. Open the binary from Vector35/binaryninja-api#3709
  2. Go to 0x100162e8
  3. Observe nonsense function created
  4. Undefine function
  5. Observe real data variable at that address

Expected Behavior:
I expected binja to not try to analyze a data variable

Screenshots:
image
image

Additional Information:
This is a bug in the PE loader observing that the segment of the export is executable, and assuming it can create a function there.

Lingua principale
C++
Stelle
1.3k
Fork
298
Merge medio
5g 5h
PR unite (30g)
19

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Vector35/binaryninja-api

Tutte le issue di Vector35/binaryninja-api

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.