Re:Dependency Confusion: How I Hacked Into Apple, Microsoft ...
by avereveard on Wednesday February 10, 2021 @12:28PM
(#26092109)
a security manager can examine the call stack and know which class from which package is asking to perform a privileged action within the app; the class object will tell you which loader loaded it, and you can ask the loader the physical location of where the class comes from if you want to be really sure no one has overloaded it.
[ Parent
| on HN ]
Re:Dependency Confusion: How I Hacked Into Apple, Microsoft ...
by mindcrime on Wednesday February 10, 2021 @03:33PM
(#26094363)
Yes, it's a powerful and flexible mechanism. The problem is - how many people know (in detail) how to configure all of this power so as to take best advantage of it? My subjective perception is a that the answer is something like "a very small percentage of Java developers".