News for hackers. Stuff that matters.
Re:Retguard: OpenBSD/Clang by syncopate on Saturday August 19, 2017 @06:44PM (#15056053)
It increases the complexity of the attack. Usually, stack cookies make ROP harder these days but guessing the cookie only has a complexity of 8*256 (on OpenBSD), but xor'ing the return address with another value does increase the complexity even more. And that might be good news for programs that use fork a lot (like nginx) and hence don't get a refresh for ASLR/stack cookies for every request (like e.g. sshd on OpenBSD does [which does does fork/exec to ensure ASLR/cookies are refreshed]).
Re:Retguard: OpenBSD/Clang by brynet on Saturday August 19, 2017 @08:57PM (#15056419)
OpenBSD has been expanding the fork+exec model throughout its source tree, since the OpenSSH preauth work done by Damien Miller, many more followed. The list includes bgpd/ldpd/eigrpd/smtpd/relayd/ntpd/httpd/snmpd/ldapd and most recently slaacd & vmd.

A few remain but are being converted as they are discovered.

Re:Retguard: OpenBSD/Clang by hexadecimated on Saturday August 19, 2017 @07:32PM (#15056205)
Perhaps OpenBSD should consider randomizing the per-process stack canary value upon fork().
Re:Retguard: OpenBSD/Clang by syncopate on Saturday August 19, 2017 @07:38PM (#15056219)
How does that work? Should the kernel walk the stack to change all the saved cookie values of the forked copy? I doubt the kernel even knows where the saved cookie values are stored on the stack. Also, that would make fork quite slow, depending on how the deep the stack was when the fork happened.
Re:Retguard: OpenBSD/Clang by hexadecimated on Saturday August 19, 2017 @07:59PM (#15056273)
The post-fork canary value could be paired with the stack pointer at which it became valid. If not valid, the process could walk a linked list of pre-fork canary and stack pointer pairs, to find the correct value to use. Would be interesting to see the performance hit on such an approach.
Re:Retguard: OpenBSD/Clang by tedunangst on Saturday August 19, 2017 @09:50PM (#15056583)
Or not. The stack canary is not the only random value reset upon exec.