united-states name data-storage
My child&#39;s name is &quot;Robert&#39;); drop table *;--&quot; Is he in trouble?
<p>(Source:  <a href="https://xkcd.com/327/" rel="noreferrer">https://xkcd.com/327/</a>)</p>

<p>So with the upcoming birth of my first child, I suggested the name "Robert'); drop table *;--". While I was quickly told that wasn't going to happen, I have to wonder what could happen if he was actually named that.</p>

<p>For the less technical, this name contains what is called 
a SQL injection attack. If the name is entered into a poorly designed SQL system, it could potentially execute a sql command and drop all tables (i.e. cause the organization's IT manager to have a somewhat bad day, depending on how good their backups are).</p>

<p>So assuming I am able to get this name on his birth certificate and get his SSN assigned under that name (let us assume that the government has been able to build their system such that this name can be handled without issue), what would happen if his name fulfills its intended purpose when signing him up for day care? In that while signing little Bobby tables up for day care, his name wiped out all their data, and because of their lack of a good IT policy, they have no backups, causing no small amount of trouble for the day care.</p>

<p>What would I be charged with or sued for in this case?</p>

<p>I assume I am on the hook for some sort of malicious destruction of data or somehow liable for the loss of data. </p>

<p>Would this being his name afford any sort of protection? Or would the fact that it was selected intentionally to cause damage be an issue? </p>

<p>Jurisdiction: United States, pick any state you feel like.</p>

<p>Your kid is not in trouble; he's a minor. You're in trouble.</p>

<p>A criminal case for the charges a prosecutor would bring, i.e. destruction of property (the data) or for a relevant cyber or computer crime (malware, etc.), and/or a civil case for damages due to the destruction of the data would both hinge on one point: the concept of <em>intent</em>. See <a href="https://www.law.cornell.edu/wex/intent" rel="noreferrer">intent - Wex Legal Information Institute</a> and <a href="https://www.rasmussen.edu/degrees/justice-studies/blog/civil-law-versus-criminal-law/" rel="noreferrer">Civil Law vs. Criminal Law: The Differences | Rasmussen College</a>.</p>

<p>Did you knowingly intend to cause damage or data loss with the structure of the name? It's pretty clear you did. The structure of a name that can invoke an SQL command is not in any sense a standard name in spelling or format or punctuation. So how would you convince the jury or judge that you had no intent when you named your kid?</p>

<p>The possible poor design of a data system that didn't sanitize inputs is no defense. Saying <em>the door was unlocked so I assume the homeowners didn't care if I trashed their house</em> will get you laughed into jail or on the hook for a stiff civil judgement.</p>

<p>No, your future first child would not get into trouble, since they cannot be held responsible for the initial name gave to them by another. </p>

<p>You, as the 'responsible' parent may be held responsible in states such as </p>

<ul>
<li>Connecticut</li>
</ul>

<p>where </p>

<blockquote>
  <p>not for fraudulent or nefarious purposes and does not infringe on the rights of another person,</p>
</blockquote>

<p>is a condition (if if legal in one state, but used in another where it is not). </p>

<hr>

<blockquote>
  <p><strong>Robert'); drop table *;--</strong></p>
</blockquote>

<p>Would not be allowed in some US-States, since it contains <strong>symbols</strong> that are not allowed:</p>

<blockquote>
  <blockquote>
    <p><strong>) ; *</strong></p>
  </blockquote>
</blockquote>

<ul>
<li>Alabama, Arizona, Arkansas, Colorado, Connecticut, Georgia, Idaho</li>
<li>Kansas, Massachusetts, Michigan, Minnesota, Montana, New Jersey</li>
<li>New Mexico, New York, North Carolina, North Dakota, Ohio, Oklahoma</li>
<li>South Dakota, Texas, West Virginia</li>
</ul>

<hr>

<blockquote>
  <p>In many U.S. states, hyphens and apostrophe <strong>are the only two symbols</strong> personal names can officially contain. In some computer systems and in the machine-readable zone of a passport, they are omitted (Mary-Kate O'Neill → Mary Kate ONeill)</p>
</blockquote>

<hr>

<p><strong>Sources</strong>:</p>

<ul>
<li><a href="https://en.wikipedia.org/wiki/Naming_in_the_United_States#Names_with_symbols_and_capital_letters_in_the_middle" rel="nofollow noreferrer">Naming in the United States</a> </li>
<li><a href="https://www.thebump.com/a/baby-name-rules" rel="nofollow noreferrer">Craziest Baby Naming Laws By State</a> </li>
</ul>

<blockquote>
  <p>My child's name is “Robert'); drop table *;--” Is he in trouble?</p>
</blockquote>

<p><em>When signing up</em>, the name itself is unlikely to cause system --and hence legal-- issues. That is, in most cases that scenario of injection would be a <em>non sequitur</em>. Consider the following:</p>

<ol>
<li><p>Database implementations typically store first, middle, and last name in separate fields, whence the middle (or last) name starting with <em>drop table</em> would be surrounded by quotes (and thus, be disabled) when inserting into table(s).</p></li>
<li><p>Tables are set up --via DDL-- so as to prevent important fields from being null (or have length equal to zero). Accordingly, code <em>prior</em> to the insert command ought to parse the entry so as to avoid abends from the database. Decent parsing code would catch entries for field middle_name (or last_name) which consist of a supposedly empty name '' followed by the <em>drop</em> command.</p></li>
<li><p>I am not sure DDL commands accept wildcards as arguments. Of course, that could vary among RDBMSs, I haven't tried this, and I would have to start my test db (no plans to do that right now, haha).</p></li>
</ol>

<p>Thus, in the event that signing up does cause a mess, the parent should conduct discovery on the implementation of the system to examine its robustness. Depending on the results of discovery, the parent could support the argument that the database was so weak that <a href="https://legal-dictionary.thefreedictionary.com/But+for+causation" rel="nofollow noreferrer"><em>proximate</em> or <em>but for</em> causation</a> shall be ruled out. Similarly, poor design &amp; implementation of the database is a <em>mitigating factor</em>, which would reduce the liability --if any-- traceable to the father's choice of name.</p>

<p>I started emphasizing the phrase "<em>when signing up</em>" because harm and liability might ensue <em>if/when</em> the kid's entire name is typed afterwards in other fields that are more "free format". As you surely know, there are fields of much greater length and intended for extended description, narrative, or elaboration of an event. Whereas one may expect reasonable robustness on crucial/key fields of a database table, that expectation does not necessarily hold for free-format fields. That being said, a short version of the kid's long name would most likely be used in free-format fields.</p>

<blockquote>
  <p>What if the name was unintentionally selected?</p>
</blockquote>

<p>(Per <a href="https://law.stackexchange.com/revisions/47600/2">initial version</a> of your post ...)</p>

<p>That argument would be unavailing. It is just not credible that (1) a person with no background in databases would choose a name of that sort; and (2) a person with background in databases "did not know" that such last name could harm the database/catalog.</p>

<h2>That string of characters is not acceptable as a name in some jurisdictions in the first place.</h2>
<p><a href="/questions/tagged/germany" class="post-tag" title="show questions tagged &#39;germany&#39;" aria-label="show questions tagged &#39;germany&#39;" rel="tag" aria-labelledby="tag-germany-tooltip-container">germany</a> will block the name on the basis that the name is on one hand <a href="https://law.stackexchange.com/a/88512/10334">prone to damaging the child</a>, and ]on the other hand <a href="https://law.stackexchange.com/questions/85325/can-i-legally-include-a-line-break-in-my-childs-name/85328#85328">is unprintable by the Bundesdruckerei.</a> Insted, your child will only be registered as the closest equivalent, Robert Drop Table.</p>
<p><a href="/questions/tagged/japan" class="post-tag" title="show questions tagged &#39;japan&#39;" aria-label="show questions tagged &#39;japan&#39;" rel="tag" aria-labelledby="tag-japan-tooltip-container">japan</a> will block the name, because it does not use <a href="https://law.stackexchange.com/questions/85325/can-i-legally-include-a-line-break-in-my-childs-name/85328#85328">Hiragana, Katakana or approved kanji.</a> The closest would be the phonetic ロバート ドロップ テーブル (Robāto doroppu tēburu) or, using the proper words for drop and spreadhseet ロバート 落とす 表計算  (Robāto Otosu Omotekeisan)</p>
