News for hackers. Stuff that matters.
Re:Dozens of malicious PyPI packages discovered targeting de... by insanitybit on Wednesday November 02, 2022 @05:58PM (#33443476)
Part of the problem with the Java sandbox is that it was enforced entirely by the VM + the VM is written in C++. The idea is not inherently bad.
Re:Dozens of malicious PyPI packages discovered targeting de... by nl on Wednesday November 02, 2022 @06:21PM (#33443715)
It's been a while since I worked in this area but my recollection was that most JVM security issues in this areas were bypasses of the Java Security Manager often by confusing it about code origin. That's all Java code, not C++.
Re:Dozens of malicious PyPI packages discovered targeting de... by insanitybit on Wednesday November 02, 2022 @06:26PM (#33443752)
It's been so long I could be remembering incorrectly.
Re:Dozens of malicious PyPI packages discovered targeting de... by int_19h on Thursday November 03, 2022 @06:52AM (#33449251)
For both Java and .NET, there were actual verification bugs, as well - when bytecode that's not supposed to be valid gets past the verifier and results in e.g. mistyped references (which can then be used for all kinds of creative vtable abuse). Sometimes it can even be a bug in the VM spec itself, because implications of two different features interacting weren't fully considered.

But, yes, we've tried this idea many times now, and it never held up for long.