Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8A1F69AA6 for ; Fri, 24 Feb 2012 21:08:17 +0000 (UTC) Received: (qmail 52003 invoked by uid 500); 24 Feb 2012 21:08:17 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 51974 invoked by uid 500); 24 Feb 2012 21:08:17 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 51967 invoked by uid 99); 24 Feb 2012 21:08:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2012 21:08:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2012 21:08:15 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0DFA033930F for ; Fri, 24 Feb 2012 21:07:54 +0000 (UTC) Date: Fri, 24 Feb 2012 21:07:54 +0000 (UTC) From: "Mamta A. Satoor (Updated) (JIRA)" To: derby-dev@db.apache.org Message-ID: <1740585003.16788.1330117674058.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <799287238.12525.1323892890857.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (DERBY-5538) Derby should use char[] to internally represent passwords, rather than String. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-5538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mamta A. Satoor updated DERBY-5538: ----------------------------------- Labels: derby_triage10_9 (was: ) > Derby should use char[] to internally represent passwords, rather than String. > ------------------------------------------------------------------------------ > > Key: DERBY-5538 > URL: https://issues.apache.org/jira/browse/DERBY-5538 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.8.2.2 > Reporter: Rick Hillegas > Labels: derby_triage10_9 > > I noticed that routines like AuthenticationServiceBase.encryptUsingDefaultAlgorithm() represent plaintext passwords as Strings. This is unsafe because Strings are easy to sniff even after they go out of scope. See the discussion on DERBY-866. We should rephrase passwords as char[] and zero them out as soon as possible. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira