<?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>11337</bug_id>
          
          <creation_ts>2010-11-17 19:07:06 +0000</creation_ts>
          <short_desc>Some ASCII-compatible encodings have harmless substitutions</short_desc>
          <delta_ts>2011-08-07 11:36:39 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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 name="Yuhong Bao">yuhongbao_386</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>ayg</cc>
    
    <cc>ian</cc>
    
    <cc>kennyluck</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>42592</commentid>
    <comment_count>0</comment_count>
    <who name="Yuhong Bao">yuhongbao_386</who>
    <bug_when>2010-11-17 19:07:06 +0000</bug_when>
    <thetext>&quot;Encodings in which a series of bytes in the range 0x20 to 0x7E can encode characters other than the corresponding characters in the range U+0020 to U+007E represent a potential security vulnerability:&quot;
What this doesn&apos;t mention is that some ASCII-compatible encodings like Shift-JIS have harmless substitutions, such as replacing the backslash with the yen sign, which is OK because it is not used much (if at all) in HTML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42594</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2010-11-17 19:14:36 +0000</bug_when>
    <thetext>Per https://bugs.webkit.org/show_bug.cgi?id=24906 that is false.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42595</commentid>
    <comment_count>2</comment_count>
    <who name="Yuhong Bao">yuhongbao_386</who>
    <bug_when>2010-11-17 19:18:49 +0000</bug_when>
    <thetext>Yes, some platforms do hack fonts so U+005C has the glyph of Yen sign.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42596</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2010-11-17 19:25:23 +0000</bug_when>
    <thetext>When it happens at the font-level the vulnerability is not the same, because all encodings are similarly affected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42597</commentid>
    <comment_count>4</comment_count>
    <who name="Yuhong Bao">yuhongbao_386</who>
    <bug_when>2010-11-17 19:27:24 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; When it happens at the font-level the vulnerability is not the same, because
&gt; all encodings are similarly affected.

And my point is that it is not a real vulnerability, which is why I am trying to get the standard changed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42598</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2010-11-17 19:30:06 +0000</bug_when>
    <thetext>Your point is about the encoding doing a substitution, but as I pointed out the encoding does no such substitution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42601</commentid>
    <comment_count>6</comment_count>
    <who name="Yuhong Bao">yuhongbao_386</who>
    <bug_when>2010-11-17 19:35:31 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Your point is about the encoding doing a substitution, but as I pointed out the
&gt; encoding does no such substitution.

On Windows only, where they use hacked fonts instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42620</commentid>
    <comment_count>7</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-11-18 22:13:48 +0000</bug_when>
    <thetext>Backslash has special meaning in JS and CSS, which are normally embedded in HTML, so using a character set where that byte has a different meaning could indeed lead to vulnerabilities.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43680</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-12-31 04:05:17 +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: Rejected
Change Description: no spec change
Rationale: Anytime this happens it can lead to a vulnerability, because code that expects something to do one thing may find it does another.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53808</commentid>
    <comment_count>9</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:17:32 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>