Blog powered by TypePad

« Most Under-Utilized Security Tool: Validation Against Hardened Schema | Main | More Schema Validation Thoughts from Rich Salz »

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451c75869e2011570e5335c970c

Listed below are links to weblogs that reference Mark O'Neill on Schema Validation Downsides:

Comments

Andy steingruebl

So, for known-plaintext attacks against the encrypted data XML is already well-formed with lots of <> in it. If what you're trying to do is validate data using keys for any reasonable encryption algorithm, I'm not sure that knowing the schema really impacts the crypto strength. If you pick the right key you're going to be awfully clear that you got it right when you op an XML doc out the other side, schema correct or not, right?

Not being a crypto expert take the above with a grain of salt, or perhaps an even larger quantity.

Adam

Let me go two steps further than Andy here. (1) If schema validation causes a cryptosystem weakness to be exposed, then Mark is absolutely correct. You should drop everything else security and upgrade to a cryptosystem designed in the last 20 years.

(2) If you're using XML+a schema, then there's lots of known plaintext. I'm not sure what the problem is.

I'd comment on Mark's blog, but it's locked.

Mark O Neill

Crypto-wise, there are two different things here:

1) The brute-force approach of trying many keys and looking for "interesting" content in the resulting plaintext. You're right that XML has characteristic content (angle brackets, etc) which makes detection of an "interesting" match simple, even if you don't have the Schema.

2) More sophisticated cryptanalysis attacks based on knowledge of part of the plaintext. This is where the Schema could be more useful. You could use a Schema to create a relatively small number of possible plaintext results. If you had access to many encrypted "specimens", perhaps one would be match for one of the guessed plaintext examples.

All quite theoretical. But in cryptanalysis, anything which can narrow down the problem set is useful.

Adam

Mark, I'm sorry, but:

1) If your cryptosystem is going to fall to brute-force attacks before the sun blows up, you're doing it wrong.

2) If your cryptosystem is substantially impacted by known-plaintext, you're doing it wrong. Current cryptosystems are subjected to a stronger set of attacks, like adaptive chosen plaintext attacks. That's a stronger attack--you get to choose the plaintext and vary it to learn more faster.

The rest of your points are very good. But here I think you need to dig into modern crypto more deeply.

Adam

So re-reading my comment, let me say: I'm doing it wrong.

I should have taken the time to read up on modern XML crypto standards, and made a positive suggestion rather than saying "You're wrong." I apologize for that.

If your cryptosystem is AES (or built on top of AES), then you're not vulnerable to brute-force or known-plaintext attacks. If your cryptosystem is not built on AES, you should look very carefully at why, and probably plan to upgrade.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment