3 ms·
https://github.com/Lerc/userserv/blob/master/authenticationtoken.c#L13 https://github.com/Lerc/userserv/blob/master/authenticationt... This looks like somethin
by muricula 9y ago
https://github.com/Lerc/userserv/blob/master/authenticationtoken.c#L13 https://github.com/Lerc/userserv/blob/master/authenticationt...
This looks like something right out of a CTF. I'm pretty sure you can overflow that buffer and smash the stack. It's also vulnerable to a path traversal attack. What happens if the filename is '../../../etc/passwd'?
You should also pass -fstack-protector in your Makefile.