Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: How to execute a shell command from a CGI script

by antovinraj (Initiate)
on Aug 21, 2014 at 06:51 UTC ( [id://1098195]=note: print w/replies, xml ) Need Help??


in reply to Re: How to execute a shell command from a CGI script
in thread How to execute a shell command from a CGI script

I have been validating in the script whether any null values are there. I have removed that code, so that it can easily understand.

Replies are listed 'Best First'.
Re^3: How to execute a shell command from a CGI script
by choroba (Cardinal) on Aug 21, 2014 at 07:52 UTC
    ; rm -rf / is much more dangerous than a null value.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re^3: How to execute a shell command from a CGI script
by marto (Cardinal) on Aug 21, 2014 at 07:54 UTC

    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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1098195]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2024-03-28 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found