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 A50EC200CC4 for ; Thu, 13 Jul 2017 11:34:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A371F16BC3B; Thu, 13 Jul 2017 09:34:06 +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 F1B3316BC36 for ; Thu, 13 Jul 2017 11:34:05 +0200 (CEST) Received: (qmail 71299 invoked by uid 500); 13 Jul 2017 09:34:05 -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 71286 invoked by uid 99); 13 Jul 2017 09:34:05 -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; Thu, 13 Jul 2017 09:34:05 +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 8357BC05A9 for ; Thu, 13 Jul 2017 09:34:04 +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 W2LM9BYhJw02 for ; Thu, 13 Jul 2017 09:34:03 +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 106095FBDF for ; Thu, 13 Jul 2017 09:34:03 +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 395E3E0DB0 for ; Thu, 13 Jul 2017 09:34:01 +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 5B0D024741 for ; Thu, 13 Jul 2017 09:34:00 +0000 (UTC) Date: Thu, 13 Jul 2017 09:34:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@fineract.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FINERACT-470) 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: Thu, 13 Jul 2017 09:34:06 -0000 [ https://issues.apache.org/jira/browse/FINERACT-470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16085441#comment-16085441 ] ASF GitHub Bot commented on FINERACT-470: ----------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/fineract/pull/379 > Fix security vulnerabilities related to using public mutable and nonconstant fields > ----------------------------------------------------------------------------------- > > Key: FINERACT-470 > URL: https://issues.apache.org/jira/browse/FINERACT-470 > Project: Apache Fineract > Issue Type: Bug > Components: System > Reporter: Thisura > Assignee: Markus Geiss > Labels: p1 > > There are multiple security vulnerabilities found in fineract-provider as described in this report [1] > 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] > The proposed solutions[2] 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. > Some of the issues were fixed in [FINERACT-436 \[3\]|https://github.com/apache/fineract/pull/343]. The rest should be covered in this ticket. > [1] https://drive.google.com/open?id=1uLk3YPcjnXk7RqF8etsTzIuN59CDU6sgBxpZul__1V4 > [2] https://drive.google.com/open?id=1TdwwHM2K1gMb6qILEX7gmzU8dVXcHGBdh569aFJfB2U > [3] https://github.com/apache/fineract/pull/343 -- This message was sent by Atlassian JIRA (v6.4.14#64029)