2 ms·
How? No way to answer that without knowing why it needs root. especially if the hardcoded commands as strings are verified commands and do not change or induc
by Johnny555 5y ago
How?
No way to answer that without knowing why it needs root.
especially if the hardcoded commands as strings are verified commands and do not change or induce something else
But now that invoked program becomes another weak link that can be exploited. And you don't even know what those innvoked commands are so don't know if anything can be hardcoded other than the path to the executable.
Yes, it's an improvement in security, but it's only one step that probably won't be revisited until, for example, someone finds out that there's an easily exploited buffer overflow in one of those invoked programs that run as root.