Yes, the code isn't safe - see my node Calling External Commands More Safely.
In the first case, I recommend using File::Find or File::Find::Rule instead of shelling out to find. In the second case, since you're apparently piping things to the command and from the command, I would suggest IPC::Run3 (assuming the input and output are not too big, as the module usually works via temporary files) - but it would also be worth looking into whether uda_consolidate.pl could be designed as a module callable directly from your script.
In reply to Re: Path Traversal Vulnerability
by haukex
in thread Path Traversal Vulnerability
by Rishi2Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |