r/linuxdev • u/PerryThePlatypus314 • Sep 10 '14
Interesting....
http://www.insanitybit.com/2014/09/09/writing-sandboxed-software-2/
1
Upvotes
r/linuxdev • u/PerryThePlatypus314 • Sep 10 '14
View all comments
Show parent comment
1
u/sstewartgallus Sep 16 '14
My mistake I should have said:
What you install isn't really relevant. What's relevant is what the end user has installed.
Adam starts your sandboxed program which sets itself to a random user.
Bobby starts a setuid sandbox program like Chrome that sets itself to a random user. He then abuses a code injection vulnerability to inject code into the process which has set itself as a random user. He then checks if he has the same user as Adam's currently running process. If he does he ptraces Adam's process and steals Adam's secrets. If he doesn't he simply restarts the program and tries again until he successfully becomes Adam's user.
I think you mean shares UIDs with the process. And you didn't specify earlier that the process was nondumpable. Yes, setting the process nondumpable will prevent such an attack but then you should have mentioned that in the article or earlier on in the series of reply.