News for hackers. Stuff that matters.
Re:Parsing JSON Is a Minefield (2016) by tannhaeuser on Monday October 11, 2021 @11:26AM (#28829414)
To be fair, XML wasn't intended as a data exchange format but as simplified SGML subset for use as delivery format on the web. While that largely hasn't happened, XML with XSD (sans rarely used feats) remains a strong exchange format for coarsely-grained inter-party traffic such as payment systems, taxes and other public/private data, etc.

I'm guessing the security deficits you mention are XML entity attacks. Well, SGML has CAPACITY ENTLVL in the SGML declaration to limit expansion depth. And a markup authoring or delivery format without entities/text macros is quite useless, even though HTML, when seen as a stand-alone markup language rather than SGML vocabulary, lacks it.

Re:Parsing JSON Is a Minefield (2016) by goodpoint on Monday October 11, 2021 @11:45AM (#28829632)
> XML wasn't intended as a data exchange format but as simplified SGML subset for use as delivery format on the web

You cannot deliver web content without... exchanging data.

And you cannot trust servers not to attack browsers.

Re:Parsing JSON Is a Minefield (2016) by HWR_14 on Monday October 11, 2021 @05:19PM (#28833219)
> And you cannot trust servers not to attack browsers.

Interesting. I normally see it expressed the other way (trusting the server and not the client). Obviously, both are important.

Re:Parsing JSON Is a Minefield (2016) by josefx on Tuesday October 12, 2021 @04:52AM (#28837527)
There was a time when every browser hack made headlines, now it has to involve something big like specter to get even noticed. Browsers and browser based applications still feature heavily at Pwn2Own style competitions, but YOLO lets add more pointless features with bug ridden APIs with every browser update.
Re:Parsing JSON Is a Minefield (2016) by HWR_14 on Tuesday October 12, 2021 @10:50AM (#28840444)
This is true and I remember when they were big headlines. I guess since I'm not in browser development, I'm used to the idea of contacting a known good server from my code, but my known good server being accessible from anyone on the internet.

Both are important, it's just interesting to see it written only from the other point of view.

Re:Parsing JSON Is a Minefield (2016) by tannhaeuser on Tuesday October 12, 2021 @12:47PM (#28841909)
Not wanting to disturb your browser sec discussion, but tbh I don't know what that has to with my GP post. If anything, SGML/XML allows hard validation of document data like basically no other mainstream tech.
Re:Parsing JSON Is a Minefield (2016) by mcv on Monday October 11, 2021 @06:42PM (#28833926)
I guess trust needs to be a two-way street. Even between computers.
Re:Parsing JSON Is a Minefield (2016) by HWR_14 on Monday October 11, 2021 @10:59PM (#28835598)
Or lack-of-trust. Sanitize your inputs, because the other side is always an evil actor.