Arbitrary Flag Execution on *nix platform

Referenced URL:


Some programs in *nix platform do not take into account of directory name with "-". This makes them think like a flag for them to process.  Programs that allow arbitrary execution from user's input are mainly vulnerable.

Let's say:  if "find" is vulnerable,

we could create :
python mk "-exec echo pwn3d '{}' \;"

then when we do
find . -type f

it becomes
find . -type f -exec echo pwn3d '{}' \;


Attacker could trigger local privilege escalation or execute his arbitrary commands.


Popular posts from this blog

Bypassing referrer check with no script involved

Jumping out of Touch Screen Kiosks