by sharkbot · 14y ago · 0 comments
That particular example is simple and doesn't permit much room for nefarious actions, but as soon as he adds support for a wider selection of files, POST (and other verbs), caching, templating, authentication and access control, etc, the code will grow in complexity and the advantages of Lua will recede.
For instance, remove the line "isin(path, sources)" and there is a arbitrary file read. White lists are more secure, but they don't scale.
Also by the same author:
- http://article.gmane.org/gmane.comp.lang.lua.general/85887/
- http://article.gmane.org/gmane.comp.lang.lua.general/85891/
- http://article.gmane.org/gmane.comp.lang.lua.general/85896/
- http://article.gmane.org/gmane.comp.lang.lua.general/85886/ (I don't want it to seem like I'm cherry-picking stuff out of context, thread: http://thread.gmane.org/gmane.comp.lang.lua.general/85850/ )
- http://article.gmane.org/gmane.comp.lang.lua.general/85938/
After this spectacle what interest I had in the project when it was first announced waned. Community around an open-source project is very important, and this is not how to build it. I'd rather see the project forked than deal with someone like this.