by Spivak · 7y ago · 0 comments
Not with most default sudo configurations. Your sudo ticket exists outside your control as a regular user and, by default, is bound to your tty. An attacker controlling another terminal can't convince sudo to execute commands with your ticket.
> manipulate the memory of your terminal emulator
On some distros this might work but you can absolutely flip a switch to disallow processes running as the same user to access each-other's memory. On secure systems this causes devs a lot of annoyance since they cant attach a debugger.
You can still attach a debugger on a newly created process, but if you want to attach to an already running process, you just need sudo. It's not really annoying.
How about controlling not another, but the same root terminal via send keys without tmux with another xorg terminal window?
You do appear to be correct that it's exploitable via other, also trivial, means. That does not make the situation any less bad.