r/netsec • • Feb 25 '21

An Exploration of JSON Interoperability Vulnerabilities

https://labs.bishopfox.com/tech-blog/an-exploration-of-json-interoperability-vulnerabilities
199 Upvotes

5 comments sorted by

4

u/0xad Feb 26 '21

Did the author managed to find vulnerabilities in real-world software? I quickly glanced over this post and found only contrived examples. That's an interesting research nonetheless. +1

Btw. It reminds me of "A New Era of SSRF - Exploiting URL Parser in Trending Programming Languages!" by Orange Tsai and other work on parser differentials (e.g. https://about.gitlab.com/blog/2020/03/30/how-to-exploit-parser-differentials/).

1

u/navalny2024 Feb 26 '21

Isn't this the good old "Parameter Pollution" vulnerability that we are already aware of?

4

u/0xad Feb 26 '21 edited Feb 26 '21

Not exactly. This can lead to "Parameter Pollution" but it can also lead to other vulnerabilities. Underlying issue is parser differentials here researched for JSON but it really applies to any parser that have 2 or more implementations.

To put it simply: All "Param Pollutions" are parser differentials issues, but not all parser differentials issues are "Param Pollutions".

DD on the topic. https://lists.immunityinc.com/pipermail/dailydave/2019-September/001566.html and https://seclists.org/dailydave/2020/q3/9

1

u/SecurID-Guy Feb 27 '21

I got as far as they "don't usually consider JSON parsing as part of our threat model". Really?

2

u/0xad Feb 27 '21

Underlying parser differences are usually not considered. What is taken into account is our own handling of JSON (i.e. business logic of the app), but everything beneath is trusted implicitly and this is the premise.