9 ms·
Could someone explain what's actually so critical here? The way I understand it is that if you can inject custom json contents into the mongodb data, you can ca
by viraptor 13y ago
Could someone explain what's actually so critical here? The way I understand it is that if you can inject custom json contents into the mongodb data, you can cause the pymongo library to crash. This should not be allowed to begin with though - why would you allow anyone to store custom object without any checks? I would compare it to a null reference on a badly formatted SQL query - sure, it's a bug, but why did you allow the user to submit unescaped string to begin with.
Or am I missing something important?
- tetha 13y agoAs other comments pointed out, it's not that critical per se. It crashes, restarts and then that's it. Beyond that, it's an undefined pointer dereference - who knows what this could be use for in certain combinations and systems. Use a "not so critical" bug in that subsystem, a "not so critical" mistake over there, another "somewhat severe" error over there and you got a root shell going. It's simply disconcerning and annoying if you consider that static checkers could have caught it.
- viraptor 13y agoIt's a NULL pointer dereference, not undefined pointer from what I can see. Unless someone was able to mmap that memory, it should simply cause an instant crash. PyDict_GetItemString() is guaranteed to return NULL for missing fields.