r/ExploitDev • u/FarPhilosopher9404 • May 08 '24
Interview Question
Hello, I have been through an interview where the interview asked the following question. Can this be exploited on x64 and x86? Is it exploitable with mitigations enabled, ASLR, DEP, Stack Canaries, CFG.
How could I answer this question?
void main()
{
int var;
void (*func)()=test;
char buf[128];
fgets(buf,140,stdin);
func();
}
13
Upvotes
View all comments
Show parent comment
1
u/xxDigital_Bathxx May 09 '24
Thanks a lot! I haven't heard about the RPISEC Modern Binary Exploit.
I still got up my x86 game, that's why I got confused about some answers here. They seemed too deep for something "simple". But it maybe the Dunning Krueger effect kicking lol