News for hackers. Stuff that matters.
Re:Ruby2ßhell: Pre-authentication RCE on stock Rails by weinzierl on Thursday November 19, 2026 @03:39AM (#50557538)
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.
Re:Ruby2ßhell: Pre-authentication RCE on stock Rails by stuxf on Thursday November 19, 2026 @03:42AM (#50557565)
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.
Re:Ruby2ßhell: Pre-authentication RCE on stock Rails by weinzierl on Thursday November 19, 2026 @05:02AM (#50558132)
Can you elaborate on what makes ß special enough to enable the vulnerability.

A quick search showed that there are other cases in legacy encodings that expand to multiple bytes.

For example 0xEF in ISO 6937 expands to CA BC 4E in UTF-8 after case transformation. Similar to ß this is a case with a single byte legacy encoding with a single lowercase unicode codepoint which has no precomposed upper case equivalent.

Re:Ruby2ßhell: Pre-authentication RCE on stock Rails by debugnik on Thursday November 19, 2026 @05:15AM (#50558224)
From the Ruby docs:

> Non-ASCII case mapping and folding are supported for UTF-8, UTF-16BE/LE, UTF-32BE/LE, and ISO-8859-1~16 Strings/Symbols.

ß might actually be the only character that expands to multiple bytes in that list of encodings.

Re:Ruby2ßhell: Pre-authentication RCE on stock Rails by weinzierl on Thursday November 19, 2026 @05:26AM (#50558313)
Ah, good point. If ISO-8859-1 is the only supported single-byte legacy encoding then ß is most likely the only case.
Re:Ruby2ßhell: Pre-authentication RCE on stock Rails by edelbitter on Thursday November 19, 2026 @07:40AM (#50559337)
I believe these deserve a mention in your unit tests:

1. ÿ (LATIN SMALL LETTER Y WITH DIAERESIS) is in ISO-8859-1, but Ÿ (LATIN CAPITAL LETTER Y WITH DIAERESIS) is not - however, theres this thing called Windows-1252 which is often treated as equivalent, where it is.. but not in the same place as in ISO-8859-15.

2. The Unicode (and correct) uppercase of µ (MICRO SIGN) is Μ (GREEK CAPITAL LETTER MU) which should look like M (LATIN CAPITAL LETTER M) .. only the latter can be expressed in Windows-1252.

3. The ISO-8859-12 encoding is a lie.

Re:Ruby2ßhell: Pre-authentication RCE on stock Rails by tptacek on Thursday November 19, 2026 @09:39AM (#50560714)
I went looking last night and found only the ß in Windows-1252.