in reply to use Safe ; Any Thwarted Attacks?
The Internet community at large is allowed to write code to extend TinyWiki. It is useful to understand the way these modules work - for that, read the Opcode manual page. A bitmask is maintained and disallowed ops aren't compiled. Any code compiled before the "use ops" line can do anything it wants, but any code compiled after it - including in evals - cannot compile down to anything that uses any opcode deemed unsafe. This industrial strength approach avoids a lot (most?) of the problems with Safe - but then your module would be dropping permissions permenantly so that unsafe things don't appear in config files. On one hand, drop as much priviledge as early as possible. On the other, don't invite disaster - like me. Use YAML or XML or SGML or ... something.use ops qw(:default entereval sort exit rand ftsize ftfile caller stat +);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: use Safe ; Any Thwarted Attacks?
by Aristotle (Chancellor) on Nov 11, 2003 at 06:37 UTC | |
by BUU (Prior) on Nov 11, 2003 at 08:27 UTC | |
by scrottie (Scribe) on Nov 13, 2003 at 17:21 UTC | |
by scrottie (Scribe) on Nov 13, 2003 at 17:21 UTC |