Parameter Pollution with JSON

I’ve been playing around with JSON recently, and I’ve discovered that most JSON implementations allow parameter pollution. This might be obvious to JavaScript experts, it’s not immediately obvious to most folks as JSON is just so much line noise.


In the systems I’ve tried injecting, value3 is the one taken. Now if you have a hand crafted JSON decoder and coupled with a simple validator that only checks the first value, say a simple regex, you’re going to get past validation fairly easily. All the other caveats regarding parameter pollution apply.

Give it a try the next time you’re doing a gig and see if you can bypass validation and other rules. YMMV.

Published by vanderaj

Just another security geek

Leave a comment

Your email address will not be published. Required fields are marked *