Accessibility

TechNote (Archived)

Enabling sandbox security in ColdFusion MX 7.0.1 & 7.0.2

Issue


The Enable ColdFusion Security checkbox on the ColdFusion MX 7.0.1/7.0.2 Administrator Sandbox Security screen does not enable sandbox security. When enabled, ColdFusion does not apply the restrictions of any configured sandbox.

Reason


A Java security manager (java.lang.SecurityManager) is necessary to enforce sandbox security in the ColdFusion MX 7.0.1/7.0.2 Multiserver and J2EE configurations.

Solution


Enable a Java security manager (java.lang.SecurityManager) for the J2EE server and add the following JVM arguments:

 -Djava.security.manager -Djava.security.policy="cf_webapp_root/WEB-INF/cfusion/lib/coldfusion.policy" -Djava.security.auth.policy="cf_webapp_root/WEB-INF/cfusion/lib/neo_jaas.policy" 

For Multiserver configuration:

  1. Stop ColdFusion.
  2. Locate the jvm.config file in jrun_root/bin.
  3. Back up the file.
  4. Open the file in a text editor.
  5. Add the following lines to the java.args section:
     -Djava.security.manager -Djava.security.policy="cf_webapp_root/WEB-INF/cfusion/lib/coldfusion.policy" -Djava.security.auth.policy="cf_webapp_root/WEB-INF/cfusion/lib/neo_jaas.policy" 
  6. Save and close the file.
  7. Restart ColdFusion.

For other J2EE configurations, consult your server documentation for enabling a Java security manager and configure the following JVM arguments:

 -Djava.security.manager -Djava.security.policy="cf_webapp_root/WEB-INF/cfusion/lib/coldfusion.policy" -Djava.security.auth.policy="cf_webapp_root/WEB-INF/cfusion/lib/neo_jaas.policy" 

AlertThis content requires Flash

To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Download the free Flash Player now!

Get Adobe Flash Player

Creative Commons License

Search Support

Document Details

ID:343d0d2c

Products Affected:

coldfusion