GOT Overwrite

GOT Overwrite

A GOT overwrite replaces an entry in the Global Offset Table with an attacker chosen address. When the program later calls that imported function, execution jumps to the replacement address.

Requirements

  • A writable GOT entry, usually because the binary uses no RELRO or partial RELRO.
  • A write primitive that can target the GOT entry.
  • A useful function or gadget address to write.
  • A way to trigger the overwritten function call.