Skip to content

Instantly share code, notes, and snippets.

@wh1t3h47
Created April 3, 2025 14:11
Show Gist options
  • Save wh1t3h47/265377d8e5866120ceb74b936dda1c7c to your computer and use it in GitHub Desktop.
Save wh1t3h47/265377d8e5866120ceb74b936dda1c7c to your computer and use it in GitHub Desktop.
C Hacking Note
Strcmp: Compare strings.
Strcmp is used to compare strings, and therefore don't have buffer overflow write.
However, if the first argument string is somehow not null terminated, and the
second string is an attacker controlled one and I have some indicator of this
comparison matching or not (I.e. Crashing and service restarts), I could
theoretically have an arbitrary out-of-bounds read.
It's a complicated attack that would require to bruteforce the memory until it matches,
timing information could be used to further aid into the exploitation with the right
statistical analysis. This idea is derived from Bittau's Blind ROP work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment