W3C

Disposition of comments for the XML Security Working Group

Single page view

In the table below, red is in the WG decision column indicates that the Working Group didn't agree with the comment, green indicates that a it agreed with it, and yellow reflects an in-between situation.

In the "Commentor reply" column, red indicates the commenter objected to the WG resolution, green indicates approval, and yellow means the commenter didn't respond to the request for feedback.

CommentorCommentWorking Group decisionCommentor reply
LC-2487 <Frederick.Hirsch@nokia.com> (archived comment)
There is an error in the XML Signature 2.0 examples, the dsig2:Selection attribute which specifies the type is named "type" and it should be named "Algorithm" according to the schema ( see http://www.w3.org/TR/2011/WD-xmldsig-core2-20110421/#sec-Selection )

Proposal, change "type='" to "Algorithm=" in the following.

(a) In 2.1, http://www.w3.org/TR/2011/WD-xmldsig-core2-20110421/#sec-o-Simple-2.0

[s07a] <dsig2:Selection type="http://www.w3.org/2010/xmldsig2#xml" xmlns:dsig2="http://www.w3.org/2010/xmldsig2#"
URI="http://www.w3.org/TR/2000/REC-xhtml1-20000126">

(b) In 2.2, http://www.w3.org/TR/2011/WD-xmldsig-core2-20110421/#sec-DetailedIdExample-2.0

[ i23 ] <dsig2:Selection type="http://www.w3.org/2010/xmldsig2#xml" URI="#MsgBody" />

(c) and in 2.3, http://www.w3.org/TR/2011/WD-xmldsig-core2-20110421/#sec-DetailedXPathExample-2.0

[ p24 ] <dsig2:Selection type="http://www.w3.org/2010/xmldsig2#xml" URI="">


regards, Frederick

Frederick Hirsch
Nokia


xs:element name="Selection" type="dsig2:SelectionType"/>
<xs:complexType name="dsig2:SelectionType">
<xs:sequence>
<xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="URI" type="xs:anyURI" use="required"/>
<xs:attribute name="Algorithm" type="xs:anyURI" use="required"/>
</xs:complexType>
Fixed, http://lists.w3.org/Archives/Public/public-xmlsec/2011Sep/0013.html yes
LC-2506 <Frederick.Hirsch@nokia.com> (archived comment)
I suggest we make the corresponding changes to XML Signature 2.0 as noted in the proposal below and submit this as a Last Call Comment for XML Signature 2.0

For 2.0 (1) would apply to Section 7. The KeyInfo Element, (2) would apply to Section 7.3 The RetrievalMethod Element, and (3) would apply to Section 7. The KeyInfo Element, all as proposed.

regards, Frederick

Frederick Hirsch
Nokia



Begin forwarded message:

> From: "Hirsch Frederick (Nokia-CIC/Boston)" <Frederick.Hirsch@nokia.com>
> Date: July 1, 2011 10:28:08 AM EDT
> To: ext Sean Mullan <sean.mullan@oracle.com>, XMLSec WG <public-xmlsec@w3.org>
> Cc: "Hirsch Frederick (Nokia-CIC/Boston)" <Frederick.Hirsch@nokia.com>
> Subject: Re: XML Signature 1.1 KeyInfo requirements
>
> I have entered this into tracker as a comment, LC-2502 (even though the document is in CR)
>
> http://www.w3.org/2006/02/lc-comments-tracker/42458/CR-xmldsig-core1-20110303/2502
>
> Looking at this and Scott's mail, I propose the following changes to section 4.5 of XML Signature 1.1 [1]. Do we agree that these are the changes we want?
>
> (1) Change last sentence in section 4.5 paragraph 2 and add sentences, to read
>
> [[
> While applications may define and use any mechanism they choose through inclusion of elements from a different namespace, compliant versions MUST implement KeyValue (section 4.5.2 The KeyValue Element) and SHOULD implement KeyInfoReference (section 4.5.10 The KeyInfoReference Element). The KeyInfoReference is preferred over use of RetrievalMethod as it avoids use of Transform child elements that introduce security risk and implementation challenges. Support for other children of KeyInfo is OPTIONAL.
> ]]
>
> This changes the SHOULD from RetrievalMethod to KeyInfoReferenceElement and makes explicit that support for KeyInfo children is optional.
>
> (2) Add at end of section 4.5.3 "The RetrievalMethod Element" the following note:
>
> [[
> Note: The KeyInfoReference element is preferred over use of RetrievalMethod as it avoids use of Transform child elements that introduce security risk and implementation challenges.
> ]]
>
> (3) add sentence to end of 1st paragraph of section 4.5 "The KeyInfo Element"
>
> [[
> Details of mechanisms used with element children of KeyInfo are out of scope for this specification, e.g. PKI certificate contents or ordering, CRL management and so on.
> ]]
>
>
> If we change the normative language this document would need to go back to Last Call for a short review of the noted changes, but this should not be a schedule issue at this time, given that the ECC PAG continues. I would recommend we try to resolve this on the list and complete another Last Call if needed before August.
>
> Please indicate agreement or suggested changes to the proposal on the list.
>
> regards, Frederick
>
> Frederick Hirsch
> Nokia
>
>
> [1] http://www.w3.org/TR/2011/CR-xmldsig-core1-20110303/#sec-KeyInfohttp://www.w3.org/TR/2011/CR-xmldsig-core1-20110303/#sec-KeyInfo
>
> On Jun 29, 2011, at 3:24 PM, ext Sean Mullan wrote:
>
>> Section 4.5, paragraph 2:
>>
>> "If KeyInfo is omitted, the recipient is expected to be able to identify the key based on application context. Multiple declarations within KeyInfo refer to the same key. While applications may define and use any mechanism they choose through inclusion of elements from a different namespace, compliant versions must implement KeyValue (section 4.5.2 The KeyValue Element) and should implement RetrievalMethod (section 4.5.3 The RetrievalMethod Element)."
>>
>> These requirements seem like they should be revisited, especially since a later section says to avoid RetrievalMethod because of potential security concerns (see Note in section 4.5.10). Also, does this imply that all KeyValues must be supported? I would think it should only be supported if there is a required signature algorithm for the corresponding key type. Had there ever been any discussion about updating the list of required KeyInfo types?
>>
>> Thanks,
>> Sean
>>
>
The changes proposed have been made to XML Signature 2.0, but we changed 2.0 to allow RetrievalMethod Transform child (for consistency) and thus made note consistent with 1.1. yes
LC-2488 Grosso, Paul <pgrosso@ptc.com> (archived comment)
1 XML Signature Syntax and Processing Version 2.0

http://www.w3.org/2008/xmlsec/Drafts/xmldsig-core-20/

Specification uses term "XML namespace URI" instead of "namespace name"
Although this probably doesn't create confusion, such informal term shouldn't appear in W3C spec. Either proper term "namespace name" should be used (see http://www.w3.org/TR/xml-names/#dt-NSName) or at least "XML namespace URI" should be put into Appendix A - Definitions and be properly defined here as a synonym of "namespace name".
Insufficently defined context for XPath evaluation in "10.6.1 Selection of XML Documents or Fragments"
XPath 1.0 specification defines the following properties for context
a node (the context node)
a pair of non-zero positive integers (the context position and the context size)
a set of variable bindings
a function library
the set of namespace declarations in scope for the expression

Only the context node is defined in this specification, other properties should be defined as well.

Typo in "11.3 Namespace Context and Portable Signatures"
In addition, the Canonical XML and Canonical XML with Comments algorithms import all XML namespace attributes (such as xml:lang) from the…
There shouldn't be xml:lang, but namespace declaration attribute like xmlns:foo.

Also using entity references in examples as content of namespace declarations looks quite confusing.

"B.7.2 Base64"
Transformation as described assumes that operates on text node -- otherwise it will always return empty string. I'm not sure whether this is correct assumption. Omitting operation 1) will fix this problem
Details of original XML Security WG response (and corresponding changes) is here: http://lists.w3.org/Archives/Public/public-xmlsec/2011Sep/0026.html

Feedback with continued concern with "XML Namespace Attributes" language (other changes accepted) in section 11.3: http://lists.w3.org/Archives/Public/public-xmlsec/2011Sep/0029.html (and http://lists.w3.org/Archives/Public/public-xmlsec/2011Sep/0030.html )
Formal endorsement of XML Core WG: http://lists.w3.org/Archives/Public/public-xmlsec/2011Sep/0038.html

XML Security WG resolution of issue, changing the language:
http://lists.w3.org/Archives/Public/public-xmlsec/2011Sep/0040.html

Agreed at XML Security WG teleconference, http://lists.w3.org/Archives/Public/public-xmlsec/2011Sep/att-0044/minutes-2011-09-13.html#item04

This change should address the concern by adopting revised text as follows:

Original text:

In addition, the Canonical XML and Canonical XML with Comments algorithms **import** **all** **XML namespace attributes** (such as xml:lang) from the nearest ancestor in which they are declared to the apex node of canonicalized XML unless they are already declared at that node. This may frustrate the intent of the signer to create a signature in one context which remains valid in another.

Revised text:

[[
In addition, the Canonical XML and Canonical XML with Comments algorithms define special treatment for attributes in the XML namespace, which can cause them to be part of the canonicalized XML even if they were outside of the document subset. Simple inheritable attributes are inherited from nearest ancestor in which they are declared to the apex node of canonicalized XML unless they are already declared at that node. This may frustrate the intent of the signer to create a signature in one context which remains valid in another.
]]

See http://lists.w3.org/Archives/Public/public-xmlsec/2011Sep/0046.html

Additional edits based on feedback also completed:
http://lists.w3.org/Archives/Public/public-xmlsec/2011Oct/0060.html
yes
LC-2507 <Frederick.Hirsch@nokia.com> (archived comment)
I propose the following changes to XML Signature 1.1 and XML Signature 2.0 to reference XML Signature Best Practices:

(1) Add new paragraph at end of Section 1, Introduction , as follows:

A number of good practices related to the use of XML Signature, including practical implementation considerations and practices for improving security are documented in the XML Signature Best Practices document which should be considered by implementers of this specification [XMLDSIG-BESTPRACTICES].

(2) Add informative reference to A.2 Informative references, as follows:

[XMLDSIG-BESTPRACTICES]
Pratik Datta; Frederick Hirsch. XML Signature Best Practices. 31 August 2010. W3C Working Draft. (Work in progress.) URL:http://www.w3.org/TR/2010/WD-xmldsig-bestpractices-20100831/

regards, Frederick

Frederick Hirsch
Nokia
Paragraph added to introduction to refer to Best Practices, including reference. Updated to use language proposed by Marcos - "The Working Group encourages implementers and developers to read XML Signature Best Practices [XMLDSIG-BESTPRACTICES]. It contains a number of best practices related to the use of XML Signature, including implementation considerations and practical ways of improving security." yes

Developed and maintained by Dominique Hazaël-Massieux (dom@w3.org).
$Id: index.html,v 1.1 2017/08/11 06:45:25 dom Exp $
Please send bug reports and request for enhancements to w3t-sys.org