33 ms·
I guess I'm just a dumbass, but does the linked PoC do more than just overwrite EIP with 'A'? Is the payload left as an exercise for the reader or is this a wor
by roel_v 14y ago
I guess I'm just a dumbass, but does the linked PoC do more than just overwrite EIP with 'A'? Is the payload left as an exercise for the reader or is this a working example and am I missing something clever?
- anyfoo 14y agoThe stack was overwritten with 'A's, and thus upon returning from a function the return address consisted entirely of 'A's, which is why EIP is now filled with it. A clever hacker would use this to jump into some malicious code instead; that's how stack overflow exploits usually work. So, yes, the actual payload is left as an exercise for the reader, but this shows that there's already everything there to make it possible.
- roel_v 14y agoOh OK, then I did see correctly after all. But still, on many modern systems (e.g. with non-executable stack) it would require fairly sophisticated trickery in the payload to make this do anything. I mean, getting control over EIP is a very good first step, but this isn't 1995.
- darkarmani 14y agoGenerally it is considered good form to release PoC exploit code that illustrates the weakness without causing significant harm. The buffer overflow is the demonstration. There is enough other work that shows how to create payloads.