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 53DA9200B4F for ; Tue, 26 Jul 2016 19:54:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 528F2160A92; Tue, 26 Jul 2016 17:54:22 +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 9AD2B160A69 for ; Tue, 26 Jul 2016 19:54:21 +0200 (CEST) Received: (qmail 58178 invoked by uid 500); 26 Jul 2016 17:54:20 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 58148 invoked by uid 99); 26 Jul 2016 17:54:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2016 17:54:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A23F02C027F for ; Tue, 26 Jul 2016 17:54:20 +0000 (UTC) Date: Tue, 26 Jul 2016 17:54:20 +0000 (UTC) From: "Jason Brown (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CASSANDRA-12298) Privacy VIolation - Heap Inspection MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 26 Jul 2016 17:54:22 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-12298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Brown reassigned CASSANDRA-12298: --------------------------------------- Assignee: Jason Brown > Privacy VIolation - Heap Inspection > ----------------------------------- > > Key: CASSANDRA-12298 > URL: https://issues.apache.org/jira/browse/CASSANDRA-12298 > Project: Cassandra > Issue Type: Bug > Reporter: Eduardo Aguinaga > Assignee: Jason Brown > > Overview: > In May through June of 2016 a static analysis was performed on version 3.0.5 of the Cassandra source code. The analysis included > an automated analysis using HP Fortify v4.21 SCA and a manual analysis utilizing SciTools Understand v4. The results of that > analysis includes the issue below. > Issue: > In the file RoleOptions.java on line 89 a string object is used to store sensitive data. String objects are immutable and should not be used to store sensitive data. Sensitive data should be stored in char or byte arrays and the contents of those arrays should be cleared ASAP. Operations performed on string objects will require that the original object be copied and the operation be applied in the new copy of the string object. This results in the likelihood that multiple copies of sensitive data will be present in the heap until garbage collection takes place. > The snippet below shows the issue on line 89: > RoleOptions.java, lines 87-90: > {code:java} > 87 public Optional getPassword() > 88 { > 89 return Optional.fromNullable((String)options.get(IRoleManager.Option.PASSWORD)); > 90 } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)