Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: problems with exec command

by betterworld (Deacon)
on Feb 14, 2014 at 14:39 UTC ( #1074964=note: print w/ replies, xml ) Need Help??

in reply to problems with exec command

Your script is a huge security problem with both exec and system. Somebody passes a "name", and you embed it in a shell command. It may contain a ";" and an arbitrary shell command.

Read the system() documentation about how you can pass the arguments as an array. And also filter the input. Allow only alphabetic characters, or only specific names.

Comment on Re: problems with exec command

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2015-12-01 08:20 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (796 votes), past polls