Ruby2ßhell: Pre-authentication RCE on stock Rails

(verialabs.com)

41 points | by jdns 3 hours ago

7 comments

  • circularfoyers 31 minutes ago
    Thought this was another vulnerability for a second, but for anyone else who thought the same, this is already covered in the Ruby advisory being discussed here https://news.ycombinator.com/item?id=50554038 (which covers six other vulnerabilities).
  • weinzierl 10 minutes ago
    There should be other codepoints other than ß that in principle could be used for a vulnerability like that. There are even ones that expand to three codepoints, like ffi.
    • stuxf 7 minutes ago
      this relies on specific behavior with how the upcase function worked, the ß is the only one that expands in a way that works for this vulnerability.
  • Panzerschrek 21 minutes ago
    I suppose this function has been written first in assumption, that case conversion doesn't affect length, but later ß -> SS conversion has been added without proper testing.
  • zelphirkalt 20 minutes ago
    Name as discussed earlier here on Hackernews :) Glad they went with that name.
  • lousken 22 minutes ago
    Scheiße2Shell?
  • rs_rs_rs_rs_rs 30 minutes ago
    For once a bug name that's cool.
    • stuxf 26 minutes ago
      we were thinking of naming it ruby off rails haha, but this title ties into how this vulnerability works which was super cool
  • FreeBurn 1 minute ago
    [flagged]