<?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>13587</bug_id>
          
          <creation_ts>2011-08-03 05:53:50 +0000</creation_ts>
          <short_desc>registerProtocolHandler() et al: Potential scheme/content handlers security issues</short_desc>
          <delta_ts>2011-10-20 09:06:36 +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>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/mid/1312266581.13091.3.camel@papyrus  </bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="HTML WG bugbot">mike+html-wg-mailbot</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philippe.deryck</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>52103</commentid>
    <comment_count>0</comment_count>
    <who name="HTML WG bugbot">mike+html-wg-mailbot</who>
    <bug_when>2011-08-03 05:53:50 +0000</bug_when>
    <thetext>public-html-comments posting from: Philippe De Ryck &lt;philippe.deryck@cs.kuleuven.be&gt;
http://www.w3.org/mid/1312266581.13091.3.camel@papyrus

The following comment contains detailed information about an issue that
was discovered during a recent security analysis of 13 next generation
web standards, organized by ENISA (European Network and Information
Security Agency), and performed by the DistriNet Research Group (K.U.
Leuven, Belgium).

The complete report is available at http://www.enisa.europa.eu/html5
(*), and contains information about the process, the discovered
vulnerabilities and recommendations towards improving overall security
in the studied specifications.

 Summary 
---------

The specification of custom scheme/content handlers does not really deal
with potential security issues nor does it provide adequate protection
towards users.

Based on: HTML5, 11 July 2011
Relevant Sections: 6.5.1.2. Custom Scheme and Content Handlers

 Issue
-------
The security implications of the use of custom scheme/content handlers
are unclear and underdocumented. The specification does list a number of
concerns, but most of them simply describe the concern and delegate
fixing the issue to the user agent. Additionally, several issues lack
the necessary level of depth (for example, it is unclear why secure URLs
should not be sent to a third-party handler, since unprotected HTTPS
URLs are publicly accessible anyway).

Additionally, no awareness indicators are required, which can be
unintuitive towards users. This becomes especially relevant for handlers
that were registered a long time ago, and since forgotten about.


 Recommended Solution
----------------------

Investigate the potential security consequences and formulate concrete
ways to address them. Including these in the specification will lead to
a uniform and secure implementation by browser vendors.



(*) HTML version of the report is available as well:
https://distrinet.cs.kuleuven.be/projects/HTML5-security/

-- 
Philippe De Ryck
K.U.Leuven, Dept. of Computer Science


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54082</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:35:53 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55817</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-25 22:33:41 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: The security model for this API is now same-origin only for the handler; schemes are whitelisted, and content-types are blacklisted. Please do not hesitate to file bugs if you can think of specific vulnerabilities this does not cover.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55818</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-25 22:34:31 +0000</bug_when>
    <thetext>Diff: http://html5.org/tools/web-apps-tracker?from=6522&amp;to=6524</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>