r/ComputerSecurity • • Mar 21 '21

Why doesn't overwriting the previous frame pointer stored on the stack in a buffer overflow break the program?

5 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/RecursiveRickRoll Mar 21 '21

Okay I think I understand what you mean. It’s only when you want to return to the execution of the previous function will you need it to be correct. But that’s not really necessary here since you would’ve already managed to open the shell in the existing frame with which you can change whatever you want.

1

u/Dark_Prince946 Mar 21 '21

Yep pretty much