2 ms·
* YAML is pretty much inherently insecure, custom tags are part of the YAML spec and are interpreted by default by most implementations, the YAML 1.2 spec only
by masklinn 9y ago
* YAML is pretty much inherently insecure, custom tags are part of the YAML spec and are interpreted by default by most implementations, the YAML 1.2 spec only recommends defaulting to the "core" schemaor a lesser one and (AFAIK) at no point even suggests disabling explicit tags.
* XML is most definitely inherently insecure if you don't disable or strictly limit standard features (entity definition/expansion, external entity definition, DTD retrieval).
I don't know about the others, I do know that ASN.1 has a long and storied history of vulnerable implementations (and it's unclear whether there's ever been a secure one) which tells me that even if the format is not inherently insecure, in practical terms it is.
- viraptor 9y agoBoth cases make good, secure implementations harder. They don't make the protocol itself insecure since you can make implementations that avoid these issues. There's nothing in the protocol itself that forces you into a situation of "choose between valid or secure".
- masklinn 9y ago> Both cases make good, secure implementations harder. You literally can't secure XML without refusing to enable (or implement) standard features.
- viraptor 9y agoAre external entities required to be processed? I know multiple implementations require you to opt-in to download anything, so I don't think so. But happy to be corrected.
- jnwatson 9y agoASN.1's main issue is that it was created in the 80's, so most implementations were programmed before folks understood software security. Also, it has had almost 40 years of additions, so it is now a large spec.
- cryptonector 9y agoASN.1's main issue is that BER/DER/CER are awful, and they are awful because they are TLV (tag, length, value) encoding rules. ASN.1 itself is a bit clunky, but has everything you'll ever need. Too many people have reinvented ASN.1 badly. Protocol Buffers, I'm looking at you!