4 ms·
From the responses to this stackoverflow question: http://stackoverflow.com/questions/1629685/when-and-how-to-use-gccs-stack-protection-feature http://stackover
by pm24601 11y ago
From the responses to this stackoverflow question: http://stackoverflow.com/questions/1629685/when-and-how-to-use-gccs-stack-protection-feature http://stackoverflow.com/questions/1629685/when-and-how-to-u...
The protection only protects under some circumstances not all. So this demo still seems valid. Also the protection comes at a cost of extra code (and extra execution time).
This means to me that any IoT device probably does not have stack protection.
- 0x0539 11y agoActually, this demo would be stopped if the stack protector was on. The demo relies upon overwriting the return pointer that controls where the function jumps to upon returning. The stack protector acts as a guard against overwriting that value without knowing a key that is stored elsewhere in memory. You'd need some memory disclosure issue to get the key or brute force the key.