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 9D349200B5C for ; Wed, 27 Jul 2016 23:33:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9BD2C160A90; Wed, 27 Jul 2016 21:33: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 15685160A93 for ; Wed, 27 Jul 2016 23:33:21 +0200 (CEST) Received: (qmail 92804 invoked by uid 500); 27 Jul 2016 21:33:21 -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 92452 invoked by uid 99); 27 Jul 2016 21:33:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2016 21:33:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DC40B2C0059 for ; Wed, 27 Jul 2016 21:33:20 +0000 (UTC) Date: Wed, 27 Jul 2016 21:33:20 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-12327) Use of getAllByName() to retrieve IP addresses MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 27 Jul 2016 21:33:22 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-12327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis updated CASSANDRA-12327: --------------------------------------- Issue Type: Sub-task (was: Bug) Parent: CASSANDRA-12334 > Use of getAllByName() to retrieve IP addresses > ---------------------------------------------- > > Key: CASSANDRA-12327 > URL: https://issues.apache.org/jira/browse/CASSANDRA-12327 > Project: Cassandra > Issue Type: Sub-task > Reporter: Eduardo Aguinaga > > 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: > Use of getAllByName() to retrieve an IP addresses is not trustworthy. Attackers can spoof DNS entries. > The file LimitedLocalNodeFirstLocalBalancingPolicy.java calls getAllByName() on line 66. > LimitedLocalNodeFirstLocalBalancingPolicy.java, lines 64-72: > {code:java} > 64 try > 65 { > 66 InetAddress[] addresses = InetAddress.getAllByName(replica); > 67 Collections.addAll(replicaAddresses, addresses); > 68 } > 69 catch (UnknownHostException e) > 70 { > 71 logger.warn("Invalid replica host name: {}, skipping it", replica); > 72 } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)