Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it safe to rely on the PATH environment variable to locate external programs?

0
Posted

Is it safe to rely on the PATH environment variable to locate external programs?

0

Not really. One favorite hacker’s trick is to alter the PATH environment variable so that it points to the program he wants your script to execute rather than the program you’re expecting. In addition to avoiding passing unchecked user variables to external programs, you should also invoke the programs using their full absolute pathnames rather than relying on the PATH environment variable.

0

Not really. One favorite hacker’s trick is to alter the PATH environment variable so that it points to the program he wants your script to execute rather than the program you’re expecting. In addition to avoiding passing unchecked user variabes to external programs, you should also invoke the programs using their full absolute pathnames rather than relying on the PATH environment variable.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123