2 ms·
I wrote a summary here: https://news.ycombinator.com/item?id=30091667 https://news.ycombinator.com/item?id=30091667 The tl;dr is that pkexec writes to argv, an
by josephcsible 5y ago
I wrote a summary here: https://news.ycombinator.com/item?id=30091667 https://news.ycombinator.com/item?id=30091667
The tl;dr is that pkexec writes to argv, and envp comes right after argv on the stack, so a missing check caused it to accidentally write to envp when argc == 0.