title: Code vulnerability
body: <p>As a learning exercise, I am trying to find a weakness in the following code snippet to gain access as the owner of the executable.</p>
  
  <pre><code>setresuid(geteuid(), geteuid(), geteuid());
  system("/usr/bin/id");
  </code></pre>
  
  <p>FWIW, I can't see any. I know setresuid will set the uid to the owner of the file, but I can't change the owner to anyone but myself. I thought about trying to redirect the id command by altering the PATH, but since it uses an absolute path, that trick doesn't work.
  Hints?</p>