points by couchand 1 day ago | 0 comments
It's a Bad Idea (TM) to compile a regular expression from an untrusted input.
Despite what anyone would try to sell you, a regular expression is a programming language. It's Always A Bad Idea (TM) to compile untrusted input into any kind of programming language. Don't string concatenate SQL queries, eval is evil, it's all the same idea.
[–] Gigachad 22 hours ago
Despite this Ruby should have requested CVE numbers. They created a patch that was available to install and prevented this attack. CVE numbers would have triggered automations to update Ruby in everyones systems.
[–] rendaw 1 day ago
Why is it a bad idea, for either of those? Fundamentally?
[–] quibono 22 hours ago
Yes, after all there is no distinction between data and code since they're the same thing when it comes down to the bytes in memory.
[–] milkshakes 1 day ago
> It's a Bad Idea (TM) to compile a regular expression from an untrusted input.
i agree with you!
nevertheless,
> where we nevertheless treated a double free in Regexp compilation as a vulnerability after a comprehensive assessment
not sure what sort of comprehensive assessment is still called for at this point?
[–] Blackthorn 1 day ago
[–] luhn 15 hours ago
[–] OJFord 15 hours ago