Re:Ruby2ßhell: Pre-authentication RCE on stock Rails
by speedgoose on Thursday November 19, 2026 @03:56AM
(#50557665)
But can the attacker specify the encoding in rails? It's not like UTF-8 or GTFO?
[ Parent
| on HN ]
Re:Ruby2ßhell: Pre-authentication RCE on stock Rails
by CER10TY on Thursday November 19, 2026 @04:21AM
(#50557838)
You can freely specify the encoding when sending multipart/form-data POST since Rails respects the charset attribute in Content-Type, eg Content-Type: text/plain; charset=Windows-1252
Re:Ruby2ßhell: Pre-authentication RCE on stock Rails
by bloak on Thursday November 19, 2026 @04:44AM
(#50557994)
So you have to convert ISO-2022-JP, for example? That sounds like a disaster waiting to happen.
Re:Ruby2ßhell: Pre-authentication RCE on stock Rails
by lmz on Thursday November 19, 2026 @04:49AM
(#50558034)
Clients have to do the same with server responses.
Re:Ruby2ßhell: Pre-authentication RCE on stock Rails
by roer on Thursday November 19, 2026 @06:45AM
(#50558890)
Relevant article about that here: https://www.sonarsource.com/blog/encoding-differentials-why-...
Browsers stopped auto-detecting ISO-2022-JP for this reason.