3 ms·
Thanks. So why isn't even being able to declare functions risky? could an attacker overwrite built in functions?
by mrfusion 12y ago
Thanks. So why isn't even being able to declare functions risky? could an attacker overwrite built in functions?
- tokenizerrr 12y agoThey could, you can try for yourself: git='() { echo hello; }' bash -c git but it's generally understood that attackers should not be able to provide enviroment variable names. If the attacker can do that, they can also provide an alternative LD_PRELOAD variable. Though IMO, yes this is risky.