help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] safe parsing of configuration files?


From: adrelanos
Subject: [Help-bash] safe parsing of configuration files?
Date: Sat, 04 May 2013 21:08:31 +0000

Hi!

Is there a bulletproof way to parse configuration files using bash?

Layout:

(spaces)

   # comments...
   var1="something"

   # more comments...

   var2="something else"

   var3="Some

plain text

also includes spaces and empty lines
..."

(spaces)

How can I read an untrusted config file while preventing all kinds of
code execution from it?

Most competent on that question appeared:
http://wiki.bash-hackers.org/howto/conffile

"This filter only allows NAME=VALUE and comments in the file, though it
doesn't prevent all methods of executing code. I will address that
later." - This later never happened or I failed to find it.

Cheers,
adrelanos



reply via email to

[Prev in Thread] Current Thread [Next in Thread]