<?xml version="1.0" encoding="UTF-8"?>
<issue>
  <id>418</id>
  <project name="MyBB" id="1"/>
  <tracker name="Bug" id="1"/>
  <status name="Closed" id="5"/>
  <priority name="Low" id="3"/>
  <author name="Ryan Gordon" id="8"/>
  <assigned_to name="Ryan Gordon" id="8"/>
  <category name="Security Issue" id="12"/>
  <fixed_version name="1.4.9" id="17"/>
  <subject>Zero-width spaces allowed in usernames</subject>
  <description>MyBB allows you to copy another users name and put a zero-width space somewhere in it. To a human it looks exactly the same, which can be used to create problems</description>
  <start_date>2009-08-20</start_date>
  <due_date></due_date>
  <done_ratio>100</done_ratio>
  <estimated_hours></estimated_hours>
  <custom_fields>
    <custom_field name="Reproducibility" id="4">Always</custom_field>
    <custom_field name="Reported In MyBB Version" id="2">1.4.8</custom_field>
    <custom_field name="PHP Version" id="3"></custom_field>
    <custom_field name="Browser" id="7"></custom_field>
    <custom_field name="Database Type" id="5"></custom_field>
    <custom_field name="Database Version" id="6"></custom_field>
  </custom_fields>
  <created_on>Thu Aug 20 15:03:35 -0500 2009</created_on>
  <updated_on>Mon Sep 21 01:21:43 -0500 2009</updated_on>
  <journals>
    <journal id="1179">
      <user name="Ryan Gordon" id="8"/>
      <notes></notes>
      <details>
        <detail property="attr" old="1" name="status_id" new="2"/>
        <detail property="attr" old="" name="assigned_to_id" new="8"/>
        <detail property="cf" old="" name="4" new="Always"/>
        <detail property="cf" old="" name="2" new="1.4.8"/>
      </details>
    </journal>
    <journal id="1180">
      <user name="Ryan Gordon" id="8"/>
      <notes>Corresponding thread: http://community.mybboard.net/thread-54822.html</notes>
      <details>
      </details>
    </journal>
    <journal id="1270">
      <user name="Ryan Gordon" id="8"/>
      <notes>Applied in changeset r4441.</notes>
      <details>
        <detail property="attr" old="0" name="done_ratio" new="100"/>
      </details>
    </journal>
    <journal id="1275">
      <user name="Michael Schlechtinger" id="13"/>
      <notes>This fix is working but incomplete. In xmlhttp.php find:
&lt;pre&gt;
$username = str_replace(array(unicode_chr(160), unicode_chr(173), unicode_chr(0xCA), dec_to_utf8(8238), dec_to_utf8(8237)), array(" ", "-", "", "", ""), $username);
&lt;/pre&gt;
Replace with:
&lt;pre&gt;
$username = str_replace(array(unicode_chr(160), unicode_chr(173), unicode_chr(0xCA), dec_to_utf8(8238), dec_to_utf8(8237), dec_to_utf8(8203)), array(" ", "-", "", "", "", ""), $username);
&lt;/pre&gt;</notes>
      <details>
        <detail property="attr" old="2" name="status_id" new="4"/>
      </details>
    </journal>
    <journal id="1368">
      <user name="Ryan Gordon" id="8"/>
      <notes>Applied in changeset r4446</notes>
      <details>
        <detail property="attr" old="4" name="status_id" new="3"/>
      </details>
    </journal>
    <journal id="1496">
      <user name="Ryan Gordon" id="8"/>
      <notes></notes>
      <details>
        <detail property="attr" old="8" name="project_id" new="1"/>
      </details>
    </journal>
    <journal id="1500">
      <user name="Ryan Gordon" id="8"/>
      <notes></notes>
      <details>
        <detail property="attr" old="" name="category_id" new="12"/>
        <detail property="attr" old="" name="fixed_version_id" new="17"/>
      </details>
    </journal>
    <journal id="1502">
      <user name="Ryan Gordon" id="8"/>
      <notes></notes>
      <details>
        <detail property="attr" old="3" name="status_id" new="5"/>
      </details>
    </journal>
  </journals>
</issue>
