<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28468</bug_id>
          
          <creation_ts>2015-04-12 07:18:28 +0000</creation_ts>
          <short_desc>Protected Document Exchange spec is broken, suggests only document encryption instead of using signatures (using the Authors Private Key, not the Servers) inside encryption to prevent Content altering</short_desc>
          <delta_ts>2016-04-27 21:05:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#protected-document</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>erratum</keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kai Oliver Quambusch">obscurity0072</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>arronei</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119442</commentid>
    <comment_count>0</comment_count>
    <who name="Kai Oliver Quambusch">obscurity0072</who>
    <bug_when>2015-04-12 07:18:28 +0000</bug_when>
    <thetext>In my honest opinion it is risky to solely trust on a TLS Connection to achieve full transport layer security. Imagine an Attacker gathers access to the Servers Domain / DNS-Entries, Server Hardware (the content signing Private Keys SHOULD NEVER BE placed directly on the Server to lower a complete Security Breach) or successfully executes a similar Attack. Exchanged Document SHOULD BE signed by the author and verified by the requesting Party. The Signature (using the servers own Private Key) SHOULD BE added to the Plaintext, otherwise (adding it outside the encryption) it may be manipulated when the connection is compromised.

Allow me to suggest the following Procedural Improvements:

Server
1. Content is signed with the Authors Private Key and available on the server, ready to be further processed
2. A random one-time encryption key is ... 
... generated ...
... signed using the servers Private Key ...
... and encrypted with the User Agents Public Key
2. Content and Signature are encrypted using the previously generated one-time encryption key resulting as the Ciphertext
3. Signed &amp; encrypted one-time encryption Key and Ciphertext are sent to the User Agent via TLS

User Agent
1. Receives Signed &amp; encrypted one-time encryption Key and Ciphertext
2. User Agent decrypts one-time encryption Key and verifies Signature (Servers Public Key)
3. Try to decrypt the Ciphertext with the previously decrypted key, when the signature verification (Authors Public Key) was successful
4. Verify signature found in the Ciphertext - Continue ONLY, when verification was successful
5. Display Document</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126223</commentid>
    <comment_count>1</comment_count>
    <who name="Arron Eicholz">arronei</who>
    <bug_when>2016-04-27 21:05:40 +0000</bug_when>
    <thetext>HTML5.1 Bugzilla Bug Triage: Incubation needed

This bug constitutes a request for a new feature of HTML. The current guidelines [1], rather than track such requests as bugs or issues, please create a proposal outlining the desired behavior, or at least a sketch of what is wanted (much of which is probably contained in this bug), and start the discussion/proposal in the WICG [2]. As your idea gains interest and momentum, it may be brought back into HTML through the Intent to Migrate process [3].
[1] https://github.com/w3c/html#contributing-to-this-repository
[2] https://www.w3.org/community/wicg/
[3] https://wicg.github.io/admin/intent-to-migrate.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>