3 ms·
> Because the JVM had no buffer overflow? Happens extremely rarely and is frequently not in JVM core code but rather something like the 2d renderer or applets.
by cogman10 4y ago
> Because the JVM had no buffer overflow?
Happens extremely rarely and is frequently not in JVM core code but rather something like the 2d renderer or applets. Code not likely to be executed on a server.
Take a deeper look into those CVEs and count how many are for Java 8+ and server code (it's a pretty short list).
You might as well argue the linux kernel is insecure because there's been buffer overflows in the various drivers.
> Shellcodes could ptrace() and inspect the memory of the program.
Certainly, and they can redirect socket traffic and inject a MITM for any process to directly intercept a password. Even if you are zeroing memory, there will be a period of time when a password is present in memory which means the ptrace attack also works with C.
The bad part of a managed language is that passwords stay in memory for longer, but that risk is somewhat moot considering exploiting requires a compromised system. In which case, there's little reason to pull out passwords by sniffing memory.