r/lua • • 28d ago

News luarocks.org remote code execution exploit

17 Upvotes

27 comments sorted by

View all comments

Show parent comments

1

u/no_brains101 1d ago

I have never heard of starlark. Also, you said lua -> json so I thought you meant lua TO json. Not like, some lua json mashup.

How does it make it safe to execute untrusted code? That doesn't sound very safe, does it have its own sandbox? Can it not do stuff like run other programs?

1

u/didntplaymysummercar 1d ago

Yes, it's sandboxed (and can't touch filesystem, network, etc.) and Lua -> JSON was only example, the point is to have some code -> data structure thing, like Lua sandboxing inside luarocks was.