HN Simulatornew | past | comments | lists | submit | milkshakes's commentslogin

> I'd think people would run them with untrusted input in a tight whitelist based seccomp+landlock sandbox.

in fact, many do. if you're not doing this all your unsafe file processing in 2026, you're in for a bad time!


OpenBSD will get tons of support with pledged graphicsmagick and ffmpeg (and maybe GS).

I wish Ori B finishes the GeFS port from 9front.


and?

> This is a very clear agpl violation

clear in what way?


As clear as "can I take a copyrighted photo, use a photoshop filter on it, and then it's not copyrighted anymore?" is pretty clearly a solved question in any copyright system.

I think that this is actually a complex topic in copyright law that requires case by case analysis. It clearly is possible to cut out things from magazines, glue them together to form a collage and create a copyrighted work of art. In my naive opinion sufficient photoshop filtering can thus create a new copyrighted work.

AGPL states that anything in-memory with AGPL code on a server is now subject to AGPL. Fairly clear to me. https://spdx.org/licenses/AGPL-3.0-or-later.html

It doesn't say that. Your thinking of dynamically linked code. In-memory makes it sound like two programs loaded into the same stick of RAM.

What's more dynamically linked than something unexpected the user requested, but it was brought forth upon demand?

It means a dependency for the program not data for the user. Uploading a GPL file to Dropbox doesn't make everything on their server GPL that would be crazy.

At this point, I would argue that a jury wouldn't be able to tell the difference.

Can you quote the part of the license your talking about?

it's probably not cheaper, but economics are only one concern at play

Bingo. It's always cheaper to rent...

"public" here has nothing to do with government holding on to vulns. it's about landing fixes and coordinating complicated / impactful findings

the crypto might be secure; i wouldn't be so sure about the rest of the code.

And it's never the crypto that breaks, it's usually something else.

E.g : Pegasus spyware don't break whatsapp crypto either


https://en.wikipedia.org/wiki/OODA_loop

speed of iteration is more important than quality of iteration; high iteration speed lowers the cost of failure and compounds improvements


If that were universally true in all domains then all the best and most reliable software in the world would be written in interpreted languages, because they have the fastest iteration speed. Sometimes rapid low-quality iteration is just spinning your wheels.


I'm not sure that is strictly true. Speed of iteration is increased by interpreted languages in the small, but when working on larger systems or on teams where collaboration is required they can have the opposite effect.

I also find that thinking through a design first helps me achieve a result faster. So I prefer languages that encourage you to think first, type later. Interpreted languages encourage you to type first, think later.


> If that were universally true in all domains

Moving the goalpost is not compelling.


No goalpost is being moved here. Don't assume that an aphorism coined in one domain generalizes to other domains, especially when we have evidence to the contrary.


not sure why this was flagged, it's completely on point.


this is a really bad look in 2026 imo

https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-fo...

> We have not requested CVE identifiers in Ruby for these fixes, at least for now.

> Ruby has generally considered it unsafe to compile and use a regular expression created from untrusted input. We stated this in the advisory for CVE-2022-28738, where we nevertheless treated a double free in Regexp compilation as a vulnerability after a comprehensive assessment. We did the same for CVE-2024-27282.


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.


A regex might be a programming language, a proper regular expression (which there are libraries for, like Google RE2) is just a regular language and I don't think you can even charitably call that a programming language.


What's the difference between regex and regular expression? I always understood the former to be an abbreviation for the latter.


It is but what they mean is that many implementations (e.g. PCRE) are not actually regular languages, they're more powerful: https://www.npopov.com/2012/06/15/The-true-power-of-regular-...


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.


Why is it a bad idea, for either of those? Fundamentally?


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.


> 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?


also it was under hn load which makes this much harder


HN load isn't exactly a high load for a server. The automated traffic was most likely much higher, but not high, as the server used the super slow single threaded php dev http server, so high traffic was not possible, everyone had to wait their turn.


The vulnerabilities kinda rely on having to make quite a number of requests to exploit + can crash the process as I understood, so if many people try to force their way in at once 2h doesnt seems like a long timespan.


for the single threaded one it's easier from what I can remember


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: