News for hackers. Stuff that matters.
Re:How to Use JSON Path by xnorswap on Friday May 03, 2024 @06:23AM (#40246074)
I look forward to the inevitable JSON path injection attacks given how widespread XPATH injection used to be. ( See https://owasp.org/www-community/attacks/XPATH_Injection for more info. )
Re:How to Use JSON Path by pwdisswordfishc on Friday May 03, 2024 @06:50AM (#40246223)
Only as inevitable as the dearth of interpolation/parametrized query primitives… though whether the industry has actually learnt the bitter lessons of SQL injection remains to be seen. I don’t hold my hopes up too much.
Re:How to Use JSON Path by pydry on Friday May 03, 2024 @07:52AM (#40246599)
You can just bypass the injection risk entirely by hardcoding the values as this example demonstrates:

https://news.ycombinator.com/item?id=40246089

(I'm being sarcastic, obviously. You are 100% right)

Re:How to Use JSON Path by gonzo41 on Friday May 03, 2024 @06:36AM (#40246155)
Yep. Yep, Yep. You have to wonder why we can't just leave nice things alone.
Re:How to Use JSON Path by wmil on Friday May 03, 2024 @09:00AM (#40247210)
This first came out in 2007 without picking up much popularity, so I wouldn't worry about it becoming widespread.
Re:How to Use JSON Path by philstu on Friday May 03, 2024 @04:13PM (#40251860)
The standard was developed because its being used by so many people in so many ways with so many different implementations that a standard was required to align them all, so im not sure the "nobody is really using it" argument holds much weight.