<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:53:58 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-20358] Usernames can contain NULL characters</title>
                <link>https://jira.mongodb.org/browse/SERVER-20358</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;It is possible to create usernames which contain NULL characters. It is not possible to log in to these accounts. It seems like if we wanted we could accept these characters. However &lt;a href=&quot;https://tools.ietf.org/html/rfc5802&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://tools.ietf.org/html/rfc5802&lt;/a&gt; defines `value-safe-char`, which is used in the username and authzid, as:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;   value-safe-char = %x01-2B / %x2D-3C / %x3E-7F /&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;                     UTF8-2 / UTF8-3 / UTF8-4&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;                     ;; UTF8-char except NUL, &quot;=&quot;, and &quot;,&quot;.&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;There seem to be no provisions for encoding NULL characters.&lt;/p&gt;

&lt;p&gt;The authenticate command seems to have an unrelated bug that manifests itself in the same way.&lt;/p&gt;

&lt;p&gt;It seems likely that we do not want to be able to store usernames containing this character.&lt;/p&gt;</description>
                <environment></environment>
        <key id="229231">SERVER-20358</key>
            <summary>Usernames can contain NULL characters</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="rahul.dhodapkar">Rahul Dhodapkar</assignee>
                                    <reporter username="spencer.jackson@mongodb.com">Spencer Jackson</reporter>
                        <labels>
                            <label>code-and-test</label>
                    </labels>
                <created>Thu, 10 Sep 2015 20:43:01 +0000</created>
                <updated>Fri, 18 Nov 2016 01:18:07 +0000</updated>
                            <resolved>Wed, 13 Jan 2016 15:51:04 +0000</resolved>
                                    <version>3.1.7</version>
                                    <fixVersion>3.0.9</fixVersion>
                    <fixVersion>3.2.3</fixVersion>
                    <fixVersion>3.3.1</fixVersion>
                                    <component>Admin</component>
                    <component>Security</component>
                                        <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="1133634" author="rahul.dhodapkar" created="Wed, 13 Jan 2016 15:45:27 +0000"  >&lt;p&gt;Backported fix.&lt;/p&gt;</comment>
                            <comment id="1133630" author="xgen-internal-githook" created="Wed, 13 Jan 2016 15:43:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rahuldhodapkar&apos;, u&apos;name&apos;: u&apos;rahuldhodapkar&apos;, u&apos;email&apos;: u&apos;rahul.m.dhodapkar@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20358&quot; title=&quot;Usernames can contain NULL characters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20358&quot;&gt;&lt;del&gt;SERVER-20358&lt;/del&gt;&lt;/a&gt; prevent creation of users containing NULL characters&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 6a46a7c34222329972b6c6b0fae70bc6cd72c2fa)&lt;br/&gt;
Branch: v3.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f8f5dab11c2ed931add8d34e5e5dcc666e1ed5c8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f8f5dab11c2ed931add8d34e5e5dcc666e1ed5c8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1133602" author="xgen-internal-githook" created="Wed, 13 Jan 2016 15:32:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rahuldhodapkar&apos;, u&apos;name&apos;: u&apos;rahuldhodapkar&apos;, u&apos;email&apos;: u&apos;rahul.m.dhodapkar@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20358&quot; title=&quot;Usernames can contain NULL characters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20358&quot;&gt;&lt;del&gt;SERVER-20358&lt;/del&gt;&lt;/a&gt; prevent creation of users containing NULL characters&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 6a46a7c34222329972b6c6b0fae70bc6cd72c2fa)&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/8e63ae06e2487989800e08e3d7e9cbf07ab76274&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/8e63ae06e2487989800e08e3d7e9cbf07ab76274&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1133593" author="xgen-internal-githook" created="Wed, 13 Jan 2016 15:26:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rahuldhodapkar&apos;, u&apos;name&apos;: u&apos;rahuldhodapkar&apos;, u&apos;email&apos;: u&apos;rahul.m.dhodapkar@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20358&quot; title=&quot;Usernames can contain NULL characters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20358&quot;&gt;&lt;del&gt;SERVER-20358&lt;/del&gt;&lt;/a&gt; prevent creation of users containing NULL characters&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6a46a7c34222329972b6c6b0fae70bc6cd72c2fa&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6a46a7c34222329972b6c6b0fae70bc6cd72c2fa&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12451" key="com.atlassian.jira.plugin.system.customfieldtypes:multiversion">
                        <customfieldname>Backport Completed</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="16007">3.0.9</customfieldvalue>
    <customfieldvalue id="15909">3.2.3</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 8 Oct 2015 21:03:41 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 5 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 5 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>rahul.dhodapkar</customfieldvalue>
            <customfieldvalue>spencer.jackson@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkv33:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrdqd3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="806">Security E (01/01/16)</customfieldvalue>
    <customfieldvalue id="852">Security F (01/29/16)</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;&amp;gt; db.createUser(&lt;/p&gt;
{user: &quot;user\0\0\0\0&quot;, pwd: &quot;test&quot;, roles: []}
&lt;p&gt;)&lt;br/&gt;
2015-09-10T16:25:11.720-0400 I COMMAND  &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; command test.$cmd command: createUser { createUser: &quot;user&quot;, pwd: &quot;xxx&quot;, roles: [], digestPassword: false, writeConcern: &lt;/p&gt;
{ w: &quot;majority&quot;, wtimeout: 30000.0 }
&lt;p&gt; } ntoreturn:1 ntoskip:0 keyUpdates:0 writeConflicts:0 numYields:0 reslen:22 locks:{ Global: { acquireCount: &lt;/p&gt;
{ r: 4, w: 4 }
&lt;p&gt; }, Database: { acquireCount: &lt;/p&gt;
{ W: 4 }
&lt;p&gt; }, Collection: { acquireCount: &lt;/p&gt;
{ w: 1 }
&lt;p&gt; } } protocol:op_command 160ms&lt;br/&gt;
Successfully added user: &lt;/p&gt;
{ &quot;user&quot; : &quot;user\u0000\u0000\u0000\u0000&quot;, &quot;roles&quot; : [ ] }
&lt;p&gt;&amp;gt; use admin&lt;br/&gt;
switched to db admin&lt;br/&gt;
&amp;gt; db.system.users.find()&lt;br/&gt;
{ &quot;_id&quot; : &quot;test.user\u0000\u0000\u0000\u0000&quot;, &quot;user&quot; : &quot;user\u0000\u0000\u0000\u0000&quot;, &quot;db&quot; : &quot;test&quot;, &quot;credentials&quot; : { &quot;SCRAM-SHA-1&quot; : &lt;/p&gt;
{ &quot;iterationCount&quot; : 10000, &quot;salt&quot; : &quot;KiCV1E3AlJr2QSI7K/DAiw==&quot;, &quot;storedKey&quot; : &quot;DGWmOyzDcwVKWHVzhs9VFIH01xQ=&quot;, &quot;serverKey&quot; : &quot;ZpyGGNlRUUCgmtXz3Y3oWIJg8Jw=&quot; }
&lt;p&gt; }, &quot;roles&quot; : [ ] }&lt;br/&gt;
&amp;gt; use test&lt;br/&gt;
switched to db test&lt;br/&gt;
&amp;gt; db.auth(&quot;user\0\0\0\0&quot;, &quot;test&quot;)&lt;br/&gt;
2015-09-10T16:26:13.987-0400 I ACCESS   &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; SCRAM-SHA-1 authentication failed for  on test from client 127.0.0.1 ; BadValue Incorrect number of arguments for first SCRAM-SHA-1 client message, got 2 expected 4&lt;br/&gt;
Error: Authentication failed.&lt;br/&gt;
0&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hsfodj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>