Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^2: conf file in Perl syntax

by afoken (Prior)
on Jun 11, 2009 at 11:23 UTC ( #770607=note: print w/ replies, xml ) Need Help??

in reply to Re: conf file in Perl syntax
in thread conf file in Perl syntax

Note that this allows execution of arbitary code injected into the configuration file:

$config = { host_1 => '', host_2 => '', host_3 => '', host_4 => '', you_will_have_a_really_bad_day => `rm -rf /`, }

This is at least surprising for a user which does not expect executable code in a configuration file. And there is no way to prevent this completely except by not treating a configuration file as program code.


Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Comment on Re^2: conf file in Perl syntax
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2015-11-29 09:22 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 (750 votes), past polls