News for hackers. Stuff that matters.
Re:Sign in as anyone: Bypassing SAML SSO authentication with... by TheDong on Sunday March 16, 2025 @04:31AM (#43377624)
In a security sensitive context, a parser should return an error on a duplicate key regardless what common parsers do and what the RFC fails to specify.

Implicitly, that means no security software dealing with json should be written in Go, Javascript, ruby, python, etc (where practically everyone uses json parsers that silently ignore duplicate keys)

Plenty of languages do have common json libraries w/ duplicate key errors, like haskell (aeson), rust (serde_json), java (gson, org.json, probably others), so there's plenty of good choices.

So yeah, correct parse result is '400 bad request'

Re:Sign in as anyone: Bypassing SAML SSO authentication with... by chrome111 on Sunday March 16, 2025 @07:13AM (#43378137)
For Java, I think you mean Jackson, not gson, unless something has changed recently. Goes to show that even the behemoths can get this wrong.

https://github.com/protocolbuffers/protobuf/blob/6aefdde9736...