Questions tagged [stack-protector]
The stack-protector tag has no usage guidance.
5
questions
0
votes
1
answer
94
views
Can I insert a variable right before the stack canary
Can i insert a variable in c source code
That will be right before the stack canary, and after all local variables.
Like I want to try to implement my own stack canary in source code, is it possible?
...
2
votes
0
answers
80
views
Invalid address when overwriting saved rip with buffer's address
I have an executable vulnerable to buffer overflows. The program takes a buffer of 104 chars and prints it (unfortunately, there is no format string vulnerability) until we feed it with a 0 or a \n, ...
0
votes
1
answer
1k
views
Where stack canary is located?
Is stack canary located between the local variable in stack and the place that the function saved the registers in the beginning of function? push r5,lr
so I can't change any registers (while the ...
1
vote
2
answers
456
views
Detecting and solutions of stack smash protection
This video https://youtube.com/watch?v=4HxUmbOcN6Y presents how modern compilers protect stack overflows with stack cookies and function __stack_chk_fail.
How can one identify if a binary has stack ...
3
votes
3
answers
304
views
Stack-Smashing Protection error message
Here is a very ugly C program:
#include <stdio.h>
#include <string.h>
int main(int argc, char *argv[])
{
char buffer[10];
memcpy(buffer,argv[1],strlen(argv[1]));
printf("%...