Re:Ruby2ßhell: Pre-authentication RCE on stock Rails
by darkamaul on Thursday November 19, 2026 @02:59PM
(#50565458)
To be able to effectively turn a single byte overwrite into ACE is still challenging because you will corrupt outside of your buffer, but this corruption must be meaningful.
I would be curious to see how they were able to exploit it here.
Re:Ruby2ßhell: Pre-authentication RCE on stock Rails
by kyledrake on Thursday November 19, 2026 @03:28PM
(#50565901)
I was under the impression that everyone adopted the OpenBSD randomized memory heap by default. Does this imply that it's not enough to prevent this sort of attack from working? If this is even slightly repeatable then the mechanism doesn't seem to be sufficiently random. I'm not an expert but at a high level it seems like we need to do a better job of randomizing the heap if this sort of thing is still possible.
Re:Ruby2ßhell: Pre-authentication RCE on stock Rails
by tptacek on Thursday November 19, 2026 @03:49PM
(#50566161)
All the heaps are (probably) randomized. I haven't seen an exploit for this (but know them to exist). ASLR is not a reliable countermeasure for these kinds of flaws. Here's a good starting point:
It's an evolution of the old "nop sled" idea from stack overflows (and viruses before that), where you don't know exactly what the stack addresses you're targeting are, but you can in your exploit trigger payload include data that will carpet bomb the stack with NOP instructions so that you have a big window to guess.