Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 401F39F8F for ; Wed, 7 Mar 2012 17:21:24 +0000 (UTC) Received: (qmail 7864 invoked by uid 500); 7 Mar 2012 17:21:23 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 7623 invoked by uid 500); 7 Mar 2012 17:21:22 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 7577 invoked by uid 99); 7 Mar 2012 17:21:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2012 17:21:21 +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; Wed, 07 Mar 2012 17:21:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BEDC5DE42 for ; Wed, 7 Mar 2012 17:20:57 +0000 (UTC) Date: Wed, 7 Mar 2012 17:20:57 +0000 (UTC) From: "Glen Mazza (Commented) (JIRA)" To: issues@cxf.apache.org Message-ID: <1187140541.34847.1331140857783.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CXF-1636) Have WSS4J in/out interceptors require nonces and timestamps when using UsernameTokens? 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/CXF-1636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13224512#comment-13224512 ] Glen Mazza commented on CXF-1636: --------------------------------- Colm, one concern I have (but may be misunderstanding) is the caching setting: "By default, it's true for a recipient, and false for an initiator. If set to false, no caching is done, if set to true, caching is enabled for both recipients and initiators." There is still a way to explicitly set that value that causes it to act as the default, right? I.e., we're not having a situation where if you omit a value, condition "A" exists, set it to "true', condition "B", and false, condition "C"--there is a way to programatically set condition "A" other than by omitting the value, correct? Also, is there a use case for caching on the client side? > Have WSS4J in/out interceptors require nonces and timestamps when using UsernameTokens? > --------------------------------------------------------------------------------------- > > Key: CXF-1636 > URL: https://issues.apache.org/jira/browse/CXF-1636 > Project: CXF > Issue Type: Improvement > Components: WS-* Components > Reporter: Glen Mazza > Assignee: Colm O hEigeartaigh > Priority: Minor > Attachments: cxf-1636.patch > > > Our WSS4J In/Out interceptors[1][2] do not appear to be requiring UsernameTokens to have timestamps and nonces. From [3], lines 176-190, these are used to prevent replay attacks (i.e., an intruder just copying the entire soap header, encrypted or not, and reusing it for another request). > To fix this problem, this blog sample[4] created a separate interceptor that will reject any UsernameToken that does not have both a timestamp and a nonce. Perhaps we should update our WSS4J in/out interceptors to require both of these, so external users don't need to do this. > A question though--I'm unsure where the nonce-checking is being done--our WSS4J interceptors seem to be ignoring them, but perhaps WSS4J is doing the checking/validation that they are not being used more then once. > Glen > [1] http://tinyurl.com/4cgg9b > [2] http://tinyurl.com/48h6an > [3] http://tinyurl.com/65n78j > [4] http://depressedprogrammer.wordpress.com/2007/07/31/cxf-ws-security-using-jsr-181-interceptor-annotations-xfire-migration/ -- 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