Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 105B6200C8E for ; Wed, 24 May 2017 14:56:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0DC99160BB4; Wed, 24 May 2017 12:56:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 56311160BD0 for ; Wed, 24 May 2017 14:56:10 +0200 (CEST) Received: (qmail 54711 invoked by uid 500); 24 May 2017 12:56:09 -0000 Mailing-List: contact dev-help@fineract.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@fineract.apache.org Delivered-To: mailing list dev@fineract.apache.org Received: (qmail 54287 invoked by uid 99); 24 May 2017 12:56:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 May 2017 12:56:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 90398CCD0F for ; Wed, 24 May 2017 12:56:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id S-B7U_5N2e1F for ; Wed, 24 May 2017 12:56:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A3FED5FDAD for ; Wed, 24 May 2017 12:56:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 35E6FE0D95 for ; Wed, 24 May 2017 12:56:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 8EE1921B5D for ; Wed, 24 May 2017 12:56:04 +0000 (UTC) Date: Wed, 24 May 2017 12:56:04 +0000 (UTC) From: "Shaik Nazeer Hussain (JIRA)" To: dev@fineract.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (FINERACT-436) Fix security vulnerabilities related to using public mutable and nonconstant fields MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 24 May 2017 12:56:11 -0000 [ https://issues.apache.org/jira/browse/FINERACT-436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shaik Nazeer Hussain closed FINERACT-436. ----------------------------------------- Resolution: Fixed Assignee: Santosh Math (was: Markus Geiss) > Fix security vulnerabilities related to using public mutable and nonconstant fields > ----------------------------------------------------------------------------------- > > Key: FINERACT-436 > URL: https://issues.apache.org/jira/browse/FINERACT-436 > Project: Apache Fineract > Issue Type: Bug > Components: Accounting, Organization > Reporter: Thisura > Assignee: Santosh Math > Fix For: 1.0.0 > > > There are multiple security vulnerabilities found in fineract-provider as described in [this report \[1\]|https://drive.google.com/open?id=1uLk3YPcjnXk7RqF8etsTzIuN59CDU6sgBxpZul__1V4] > There are four types of vulnerabilities related to using public mutable and nonconstant fields. > 1. Mutable fields should not be "public static" > * MITRE, CWE-582 - Array Declared Public, Final, and Static > * MITRE, CWE-607 - Public Static Final Field References Mutable Object > 2. "static final" arrays should be "private" > * MITRE, CWE-582 - Array Declared Public, Final, and Static > * MITRE, CWE-607 - Public Static Final Field References Mutable Object > 3. "public static" fields should be constant > * MITRE, CWE-500 - Public Static Field Not Marked Final > * CERT OBJ10-J - Do not use public static nonfinal variable > 4. "enum" fields should not be publicly mutable > The reported incident of type 2 is considered to be false positive. 1,3,4 types are present as described in the [report\[1\]|https://drive.google.com/open?id=1uLk3YPcjnXk7RqF8etsTzIuN59CDU6sgBxpZul__1V4] > The proposed [solutions\[2\]|https://drive.google.com/open?id=1TdwwHM2K1gMb6qILEX7gmzU8dVXcHGBdh569aFJfB2U] are as follows.(Solutions are respective to each vulnerability type above) > 1. Mutable fields should not be "public static" => Make the respective members protected. If they are in a class move them to a separate class and lower the visibility. > 2. "static final" arrays should be "private" => Make the arrays private > 3. "public static" fields should be constant => Make the respective field final > 4. "enum" fields should not be publicly mutable => Lower the visibility of the setter. Remove it altogether. > \[1\] https://drive.google.com/open?id=1uLk3YPcjnXk7RqF8etsTzIuN59CDU6sgBxpZul__1V4 > \[2\] https://drive.google.com/open?id=1TdwwHM2K1gMb6qILEX7gmzU8dVXcHGBdh569aFJfB2U -- This message was sent by Atlassian JIRA (v6.3.15#6346)