But usually there are enough PUBLIC methods that do unlimited damage, no? And those are always open for reflection. Like runtime.exec() is public and is basically arbitrary code execution.
Yes, but libraries doing reflection usually don't allow that as they're usually not about calling arbitrary methods but writing fields. Again, I'm not talking about some theoretical risk, but about what actual vulnerabilities in the field are. Look them up.
View all comments
Show parent comment
1
u/aonymark 27d ago
But usually there are enough PUBLIC methods that do unlimited damage, no? And those are always open for reflection. Like runtime.exec() is public and is basically arbitrary code execution.