Security issue in Liquid::Template
January 18th, 2008
In XLsuite, we use Liquid templates in the CMS. Two days ago, I noticed a big problem: ERB code in the Liquid template ends up being eval’d. This is in direct contradiction with Liquid’s mission statement:
Ruby library for rendering safe templates which cannot affect the security of the server they are rendered on.
From Liquid Home Page
I’m reposting this here so this gets the attention it deserves.
If you are interested, you can view Liquid’s issue at: http://code.google.com/p/liquid-markup/issues/detail?id=6
January 18th, 2008 at 05:55 PM
I’m not seeing this bug—i responded on your ticket.
Also, the formatting of xlsuite is all messed up in safari 3. See http://img.skitch.com/20080118-sgbfnp2ftyfp38i5w9meqepm2.jpg for details.
January 18th, 2008 at 08:06 PM
That mission statement is a nice thought, but, it doesn’t seem all that practical to me.
You want to let people run ruby code, but you don’t want them to be able to run ruby code. That seems like one of those DRM situations…