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 785182004A0 for ; Wed, 16 Aug 2017 15:46:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 77087168B21; Wed, 16 Aug 2017 13:46:07 +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 C6E50168B20 for ; Wed, 16 Aug 2017 15:46:06 +0200 (CEST) Received: (qmail 58056 invoked by uid 500); 16 Aug 2017 13:46:04 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 58046 invoked by uid 99); 16 Aug 2017 13:46:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Aug 2017 13:46:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C123E18030B for ; Wed, 16 Aug 2017 13:46:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.718 X-Spam-Level: * X-Spam-Status: No, score=1.718 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_FAIL=0.919] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id fPZ_1ZT77K01 for ; Wed, 16 Aug 2017 13:46:01 +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 E8F8D5FAF3 for ; Wed, 16 Aug 2017 13:46:00 +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 7DDF8E0DCA for ; Wed, 16 Aug 2017 13:46:00 +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 2C23B25381 for ; Wed, 16 Aug 2017 13:46:00 +0000 (UTC) Date: Wed, 16 Aug 2017 13:46:00 +0000 (UTC) From: "Leonardo Uribe (JIRA)" To: dev@myfaces.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MYFACES-4133) Don't deserialize the ViewState-ID if the state saving method is server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 16 Aug 2017 13:46:07 -0000 [ https://issues.apache.org/jira/browse/MYFACES-4133?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 128817#comment-16128817 ]=20 Leonardo Uribe commented on MYFACES-4133: ----------------------------------------- Encryption should NEVER be disabled for view state token, because there is = no safe way to make it work with this disabled, but beyond that, I agree se= rialize the session id is not necessary on server side state saving.=20 Please note encryption also adds a Message Authentication Code (MAC) that p= rotects the view state token against tampering and other attacks, but this = works together with the encryption. It's more, maybe it is a good idea to change the default encryption algorit= hm to AES or something. > Don't deserialize the ViewState-ID if the state saving method is server > ----------------------------------------------------------------------- > > Key: MYFACES-4133 > URL: https://issues.apache.org/jira/browse/MYFACES-4133 > Project: MyFaces Core > Issue Type: Bug > Components: General > Affects Versions: 2.2.12 > Reporter: Peter St=C3=B6ckli > > Currently the ViewState-ID provided by the user is deserialized via Java = deserialization even when the {{javax.faces.STATE_SAVING_METHOD}} is set to= {{server}} (the default). > The deserialization in this case is unecessary and most likely even slowe= r than just sending the ViewState Id directly. > If a developer now disables the ViewState encryption by setting {{org.apa= che.myfaces.USE_ENCRYPTION}} to {{false}} (against the [MyFaces security ad= vice|https://wiki.apache.org/myfaces/Secure_Your_Application]) he might hav= e unintentionally introduced a dangerous remote code execution (RCE) vulner= ability as described [here|https://www.alphabot.com/security/blog/2017/java= /Misconfigured-JSF-ViewStates-can-lead-to-severe-RCE-vulnerabilities.html]. > This has been discussed before on [Issue MYFACES-4021|https://issues.apac= he.org/jira/browse/MYFACES-4021]. -- This message was sent by Atlassian JIRA (v6.4.14#64029)