velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <>
Subject Re: read only mode?
Date Fri, 27 Feb 2009 17:21:44 GMT
For starters, you should definitely use this setting:
runtime.introspector.uberspect =

This Uberspect implementation blocks the following packages and
classes by default, but you can add more to your
if you wish:

introspector.restrict.packages = java.lang.reflect
introspector.restrict.classes = java.lang.Class
introspector.restrict.classes = java.lang.ClassLoader
introspector.restrict.classes = java.lang.Compiler
introspector.restrict.classes = java.lang.InheritableThreadLocal
introspector.restrict.classes = java.lang.Package
introspector.restrict.classes = java.lang.Process
introspector.restrict.classes = java.lang.Runtime
introspector.restrict.classes = java.lang.RuntimePermission
introspector.restrict.classes = java.lang.SecurityManager
introspector.restrict.classes = java.lang.System
introspector.restrict.classes = java.lang.Thread
introspector.restrict.classes = java.lang.ThreadGroup
introspector.restrict.classes = java.lang.ThreadLocal

You should probably read and follow advice in this article:

And in general, you should take care not to put any objects into your
context that have public methods which can change back-end state.  Use
wrapper objects, if necessary.

On Fri, Feb 27, 2009 at 8:57 AM, ChadDavis <> wrote:
> I'm building a system where users can customize their site's look and
> feel by uploading templates that will override the built-in templates.
>  I'm trying to explore the security aspects of this right now.  It
> seems that the method invocation stuff, property setting, and anything
> else that could cause state change on my back end is a threat.  I
> would appreciate advise on enumerating the dangerous aspects of the
> template language, and then ideas on how to block that stuff.
> Is there a way to turn off features of the language?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message