Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DFE7994A2 for ; Sun, 23 Oct 2011 11:36:54 +0000 (UTC) Received: (qmail 37742 invoked by uid 500); 23 Oct 2011 11:36:54 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 37680 invoked by uid 500); 23 Oct 2011 11:36:54 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 37672 invoked by uid 99); 23 Oct 2011 11:36:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2011 11:36:54 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2011 11:36:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 17A8E317895 for ; Sun, 23 Oct 2011 11:34:32 +0000 (UTC) Date: Sun, 23 Oct 2011 11:34:32 +0000 (UTC) From: "Simone Tripodi (Resolved) (JIRA)" To: issues@commons.apache.org Message-ID: <2003419866.6493.1319369672098.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1135272959.9628.1316900666666.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (OGNL-23) Class.forName() usage is malicious inside OSGi MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OGNL-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Simone Tripodi resolved OGNL-23. -------------------------------- Resolution: Fixed Hi Adrian, that is simply amazing, thanks for your contribution! I just successfully committed your patch, see r1187867! > Class.forName() usage is malicious inside OSGi > ---------------------------------------------- > > Key: OGNL-23 > URL: https://issues.apache.org/jira/browse/OGNL-23 > Project: OGNL > Issue Type: Bug > Reporter: Simone Tripodi > Assignee: Simone Tripodi > Attachments: patch-OGNL23-v2.txt, patch-OGNL23.txt > > > {{Class.forName()}} could make OGNL unusable [inside OSGi|http://olegz.wordpress.com/2008/11/05/osgi-and-classforname/]. > The fix would involve the {{ClassLoader.loadClass()}} method, allowing users setting a custom {{ClassLoader} > Classes affected by that issues are: > * {{org.apache.commons.ognl.DefaultClassResolver}} > * {{org.apache.commons.ognl.OgnlRuntime}} > The {{org.apache.commons.ognl.ASTMap}} class is affected as well, even if loading {{java.util.LinkedHashMap}} in that way should be safe. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira