liquidjs icon indicating copy to clipboard operation
liquidjs copied to clipboard

User execution

Open dv-blk opened this issue 7 years ago • 2 comments

Hello!

Is this library using measures to protect against malicious user code? For instance, if a service allowed user uploaded templates in a similar fashion that Shopify allows. Thanks.

dv-blk avatar May 30 '19 22:05 dv-blk

In short, yes.

Liquid only support predefined list of operators, filters and tags. So it's not likely to execute arbitrary user code. But like shopify/liquid, all outputs need to be escaped explicitly to avoid xss attack. If you find any security related bugs, feel free to file it here.

harttle avatar Jun 05 '19 06:06 harttle

Thanks!

dv-blk avatar Jun 05 '19 20:06 dv-blk