in reply to How to execute a shell command from a CGI script

Why are you not validating   my $user = $form{'user'};? Thats dangerous

Replies are listed 'Best First'.
Re^2: How to execute a shell command from a CGI script
by antovinraj (Initiate) on Aug 21, 2014 at 06:51 UTC
    I have been validating in the script whether any null values are there. I have removed that code, so that it can easily understand.
      ; rm -rf / is much more dangerous than a null value.
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      You are missing the more serious point. A null value is the least of your concerns, imagine what commands someone could make this run, and you execute them via sudo!