News for hackers. Stuff that matters.
Re:People tricking ChatGPT “like watching an Asimov novel co... by jrockway on Friday December 02, 2022 @12:45PM (#33833886)
People really like Postel's law, which is basically "don't reject anything you don't understand". But the robustness comes at the cost of correctness and security. Sometimes it's good to trade in some robustness/reliability against malfunctioning clients for security against mistakes.
Re:People tricking ChatGPT “like watching an Asimov novel co... by alex_sf on Friday December 02, 2022 @01:04PM (#33834208)
Hadn't seen that law before. Absolutely hate it. The harm from poor input invalidation over time is massive.
Re:People tricking ChatGPT “like watching an Asimov novel co... by ajosh on Friday December 02, 2022 @01:34PM (#33834698)
You have to think about Postel's law in terms of protocols and mistakes in your implementation. You assume your implementation isn't perfect and neither is the other. Do your best to be perfect and if you get something that isn't quite right, do your best to handle it well. That doesn't mean you don't validate inputs, it means that if data should come with a \n but instead comes with \n\r, you should treat it as a \n.
Re:People tricking ChatGPT “like watching an Asimov novel co... by tfigment on Friday December 02, 2022 @01:44PM (#33834881)
I think you miss their point which is that has led to a large number of security bugs. Because it is then path to exploits and sloppiness which then cannot be corrected because of backward compatibility or such.
Re:People tricking ChatGPT “like watching an Asimov novel co... by mcguire on Friday December 02, 2022 @03:29PM (#33836444)
Anyone else remember the time, years ago, when someone introduced a new performance feature to TCP, using an otherwise-unused bit in the header. Unfortunately, rolling it out turned into a giant clusterfuck because many routers on the internet interpreted "this bit is unused" as "this bit will always be zero"?
Re:People tricking ChatGPT “like watching an Asimov novel co... by salawat on Saturday December 03, 2022 @07:32AM (#33842991)
Ah yes, the fyranny of the middlebox.
Re:People tricking ChatGPT “like watching an Asimov novel co... by shadowgovt on Friday December 02, 2022 @09:48PM (#33839980)
Postel's Law isn't why we can't correct errors for backwards compatibility reasons.

We can't correct those because backwards compatibility is necessary to creating a global network that lasts decades. It's the railway effect... One simply can't expect every player to update their architecture religiously because they can't afford to, therefore what is made public tends to stick around for ages, and anything that fails to recognize that stickiness (IPv6 is my go to example) does so at its own peril.

Re:People tricking ChatGPT “like watching an Asimov novel co... by bartwe on Friday December 02, 2022 @02:01PM (#33835129)
Hyrum's Law is the near reverse of Postel's and i think it should be taught.
Re:People tricking ChatGPT “like watching an Asimov novel co... by endgame on Friday December 02, 2022 @04:46PM (#33837376)
I imagine that it made more sense when your update cycle involved the postal system and took months.
Re:People tricking ChatGPT “like watching an Asimov novel co... by Oxidation on Friday December 02, 2022 @06:47PM (#33838545)
Indeed, it's what got us "quirks mode" and that took years and years to dig the internet out from under.
Re:People tricking ChatGPT “like watching an Asimov novel co... by SilasX on Friday December 02, 2022 @02:22PM (#33835434)
I tried to split the difference with my April Fool's RFC, which proposes the HTTP status "397 Tolerating" for when you want to say "yeah, I know what you want, and I'll give you that, but here's how you were supposed to ask for it".

https://pastebin.com/TPj9RwuZ

Re:People tricking ChatGPT “like watching an Asimov novel co... by shadowgovt on Friday December 02, 2022 @06:17PM (#33838287)
I am borderline sad that this is only an RFC.

The number of services I use that I wish had a "warning" side-channel for letting me know something in my query was off, let me tell you...

Re:People tricking ChatGPT “like watching an Asimov novel co... by slowmovintarget on Friday December 02, 2022 @07:57PM (#33839088)
There's nothing that says you can't have system messages as a boilerplate part of response bodies, even if you don't populate it.

In fact, it's the recommended way to do things like tell a client things it might need to know. Example: "The game servers will be shutting down in 15 minutes for maintenance."

Re:People tricking ChatGPT “like watching an Asimov novel co... by shadowgovt on Friday December 02, 2022 @11:36PM (#33840650)
True, but that means it has to be an ad hoc solution for every API instead of a standard.
Re:People tricking ChatGPT “like watching an Asimov novel co... by pwdisswordfish9 on Saturday December 03, 2022 @04:39AM (#33842153)
It's not even an RFC, it's just a pastebin post pretending to be one.
Re:People tricking ChatGPT “like watching an Asimov novel co... by SilasX on Saturday December 03, 2022 @11:59AM (#33844923)
Heh, after I posted it, a former co-worker forgot that was just an April Fool's joke and then, at his new workplace, seriously suggested handling one case by "throwing a 397".
Re:People tricking ChatGPT “like watching an Asimov novel co... by emmelaich on Friday December 02, 2022 @06:46PM (#33838526)
I think Postel is misrepresented. It was addressed to programmers who anally rejected everything that was not (in their opinion) in spec.

Working code and rough consensus is how we progress.

Re:People tricking ChatGPT “like watching an Asimov novel co... by alex_sf on Sunday December 04, 2022 @12:28PM (#33855635)
> It was addressed to programmers who anally rejected everything that was not (in their opinion) in spec.

What's wrong with that? The only issue I see is the _in their opinion_ bit. If there's confusion about the spec, then it should clarified and codified. But otherwise: yes, you should absolutely aggressively reject everything not in spec.