Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-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 E54301914D for ; Thu, 31 Mar 2016 16:09:25 +0000 (UTC) Received: (qmail 30232 invoked by uid 500); 31 Mar 2016 16:09:25 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 30172 invoked by uid 500); 31 Mar 2016 16:09:25 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 30078 invoked by uid 99); 31 Mar 2016 16:09:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Mar 2016 16:09:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 908A62C1F5C for ; Thu, 31 Mar 2016 16:09:25 +0000 (UTC) Date: Thu, 31 Mar 2016 16:09:25 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-4204) Weak SecurityManager Check: Overridable Method MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-4204?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 updated KARAF-4204: ---------------------------------------- Fix Version/s: 4.0.6 4.1.0 > Weak SecurityManager Check: Overridable Method > ---------------------------------------------- > > Key: KARAF-4204 > URL: https://issues.apache.org/jira/browse/KARAF-4204 > Project: Karaf > Issue Type: Bug > Affects Versions: 4.0.3 > Reporter: Eduardo Aguinaga > Fix For: 4.1.0, 4.0.6 > > > HP Fortify SCA and SciTools Understand were used to perform an applicatio= n security analysis of the karaf source code. > Non-final methods that perform security checks can be overridden in ways = that bypass security checks. See external issue for more information. > File: exception/src/main/java/java/lang/Exception.java > Line: 137 > Exception.java, lines 137-153: > {code} > 137 public Class[] getThrowableContext(Throwable t) { > 138 try { > 139 Class[] context =3D getClassContext(); > 140 int nb =3D 0; > 141 for (;;) { > 142 if (context[context.length - 1 - nb] =3D=3D t.getClass())= { > 143 break; > 144 } > 145 nb++; > 146 } > 147 Class[] nc =3D new Class[nb]; > 148 System.arraycopy(context, context.length - nb, nc, 0, nb); > 149 return nc; > 150 } catch (Exception e) { > 151 return null; > 152 } > 153 } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)