<?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>14900</bug_id>
          
          <creation_ts>2011-11-22 08:46:27 +0000</creation_ts>
          <short_desc>note about checking &quot;origin&quot; attribute of MessageEvent</short_desc>
          <delta_ts>2012-07-25 03:02:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Server-Sent Events (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NEEDSINFO</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>vic99999</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60338</commentid>
    <comment_count>0</comment_count>
    <who name="">vic99999</who>
    <bug_when>2011-11-22 08:46:27 +0000</bug_when>
    <thetext>http://www.html5rocks.com/en/tutorials/eventsource/basics/#toc-security

&quot;Authors should check the origin attribute to ensure that messages are only accepted from domains that they expect to receive messages from. Otherwise, bugs in the author&apos;s message handling code could be exploited by hostile sites.&quot;

That warning is especially relevant for window.postMessage() messages and not so much EventSource and WebSocket and this should be marked in the spec.

see http://krijnhoetmer.nl/irc-logs/whatwg/20111122#l-381</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69802</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-07-10 20:03:16 +0000</bug_when>
    <thetext>Upon further investigation, that paragraph is already deep within the window.postMessage() part of the spec, it&apos;s not generically near the MessageEvent object nor anywhere near the EventSource stuff. Not sure how to make this better.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>