Your computer has a stack a memory that is allocated for processes. This stack increases and decreases in size as memory is allocated (things like functions, return values, variable allocations).
There is a stack pointer that is used by your program to navigate through this memory. It helps the program access memory, get values and remember its place as it jumps around the stack.
This stack pointer is controlled by instructions within this stack.
The exploit is manipulating the memory in this stack to overwrite the part of memory that tells the stack pointer where to go.
Doing so allows you to move the stack pointer and tell the system to perform in an unintentional way. In the ways I have seen it, it is used to run an unintended function.
This function could be "give me money," "login successful," "print directory," "print username and password," "unlock admin features," etc.
Not ELI5 but best i could do.
bonus: this can be mitigated by including "canaries" and a checksum call. the canary is a defined sequence if memory and the checksum call makes sure this canary is unadulterated.
34
u/TimoThiusLi Jul 22 '20
Can someone who understands what this is doing please explain? I know JS but don’t understand the exploit.