<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>176114</bug_id>
          
          <creation_ts>2017-08-30 11:27:08 -0700</creation_ts>
          <short_desc>semicolon is being interpreted as an = in the LiteralParser</short_desc>
          <delta_ts>2017-09-03 13:01:52 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=176115</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Oliver Hunt">oliver</reporter>
          <assigned_to name="Saam Barati">saam</assigned_to>
          <cc>benjamin</cc>
    
    <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>erights</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>gskachkov</cc>
    
    <cc>jfbastien</cc>
    
    <cc>keith_miller</cc>
    
    <cc>ljharb</cc>
    
    <cc>ljokerp</cc>
    
    <cc>mark.lam</cc>
    
    <cc>mathias</cc>
    
    <cc>msaboff</cc>
    
    <cc>oliver</cc>
    
    <cc>rmondello</cc>
    
    <cc>rmorisset</cc>
    
    <cc>saam</cc>
    
    <cc>ticaiolima</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1343614</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2017-08-30 11:27:08 -0700</bug_when>
    <thetext>The following test cases fail

x = 0;
x;5
assert(x != 5)

var y;5
assert(y!=5)

etc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343639</commentid>
    <comment_count>1</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-08-30 12:19:31 -0700</bug_when>
    <thetext>*** Bug 176115 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343640</commentid>
    <comment_count>2</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-08-30 12:21:18 -0700</bug_when>
    <thetext>(In reply to Oliver Hunt from comment #0)
&gt; The following test cases fail
&gt; 
&gt; x = 0;
&gt; x;5
&gt; assert(x != 5)
&gt; 
&gt; var y;5
&gt; assert(y!=5)
&gt; 
&gt; etc
This is not right. You need code like this:

// test.js
x=undefined;
load(&quot;test2.js&quot;);
print(x); // prints 123
// test2.js
x;123


It appears to be related to the literal parser. If you run the above example with JSC_dumpGeneratedBytecodes=1, we don&apos;t even generate bytecode for the second program in test2.js</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343651</commentid>
    <comment_count>3</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-08-30 12:45:35 -0700</bug_when>
    <thetext>I&apos;ve verified commenting out the literal parser for programs inside Interpreter.cpp removes this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343654</commentid>
    <comment_count>4</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2017-08-30 12:52:27 -0700</bug_when>
    <thetext>have there been any changes in that code recently? because this seems to be a regression from shipping. Very strange.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343655</commentid>
    <comment_count>5</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-08-30 12:56:21 -0700</bug_when>
    <thetext>I have a vague memory of Yusuke doing some work there. It&apos;s really bizarre to me that the literal parser is causing a variable assignment. Is that expected behavior?

I don&apos;t even really understand what the literal parser is for, I always though it was a way to quickly create objects that are in JSON format.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343656</commentid>
    <comment_count>6</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-08-30 12:58:10 -0700</bug_when>
    <thetext>Maybe it was this bug?
https://bugs.webkit.org/show_bug.cgi?id=156953

I believe this is the last change there that isn&apos;t related to basic refactoring.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343657</commentid>
    <comment_count>7</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2017-08-30 13:00:28 -0700</bug_when>
    <thetext>(In reply to Saam Barati from comment #5)
&gt; I have a vague memory of Yusuke doing some work there. It&apos;s really bizarre
&gt; to me that the literal parser is causing a variable assignment. Is that
&gt; expected behavior?
&gt; 
&gt; I don&apos;t even really understand what the literal parser is for, I always
&gt; though it was a way to quickly create objects that are in JSON format.

LiteralParser is used for JSON and for JSONP.

To do JSONP quickly we have magic logic to handle

(a(.b)*=json | a(.b)*\(json\))+

which we parse and call directly to avoid jumping through the interpreter. We need this because people still insist on sending megs of data as executable script. because reasons.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343663</commentid>
    <comment_count>8</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-08-30 13:07:40 -0700</bug_when>
    <thetext>It&apos;s not related to:
https://bugs.webkit.org/show_bug.cgi?id=156953</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343664</commentid>
    <comment_count>9</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2017-08-30 13:09:28 -0700</bug_when>
    <thetext>(In reply to Saam Barati from comment #6)
&gt; Maybe it was this bug?
&gt; https://bugs.webkit.org/show_bug.cgi?id=156953
&gt; 
&gt; I believe this is the last change there that isn&apos;t related to basic
&gt; refactoring.

I suspect change would only occur in the jsonp handling. Which used to be in interpreter.cpp but I don&apos;t have a webkit checkout handy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343665</commentid>
    <comment_count>10</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-08-30 13:10:31 -0700</bug_when>
    <thetext>(In reply to Oliver Hunt from comment #4)
&gt; have there been any changes in that code recently? because this seems to be
&gt; a regression from shipping. Very strange.

I can reproduce it in a shipping macOS. So if it&apos;s a regression, it is from further back than the last macOS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343668</commentid>
    <comment_count>11</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-08-30 13:16:00 -0700</bug_when>
    <thetext>Ima work on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343672</commentid>
    <comment_count>12</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-08-30 13:24:53 -0700</bug_when>
    <thetext>This code looks suspicious inside the lex() function:
        

        if (*m_ptr == &apos;;&apos;) {
            token.type = TokSemi;
            token.end = ++m_ptr;
            return TokAssign;
        }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343674</commentid>
    <comment_count>13</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2017-08-30 13:29:33 -0700</bug_when>
    <thetext>(In reply to Saam Barati from comment #12)
&gt; This code looks suspicious inside the lex() function:
&gt;         
&gt; 
&gt;         if (*m_ptr == &apos;;&apos;) {
&gt;             token.type = TokSemi;
&gt;             token.end = ++m_ptr;
&gt;             return TokAssign;
&gt;         }

that does indeed seem questionable. I&apos;m so sad I wrote it :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343675</commentid>
    <comment_count>14</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-08-30 13:31:44 -0700</bug_when>
    <thetext>Patch forcoming. I&apos;m adding an assertion to next() for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343677</commentid>
    <comment_count>15</comment_count>
      <attachid>319392</attachid>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-08-30 13:45:57 -0700</bug_when>
    <thetext>Created attachment 319392
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343741</commentid>
    <comment_count>16</comment_count>
      <attachid>319392</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-08-30 15:27:13 -0700</bug_when>
    <thetext>Comment on attachment 319392
patch

Clearing flags on attachment: 319392

Committed r221400: &lt;http://trac.webkit.org/changeset/221400&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343742</commentid>
    <comment_count>17</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-08-30 15:27:15 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343744</commentid>
    <comment_count>18</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-08-30 15:28:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/34173912&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343863</commentid>
    <comment_count>19</comment_count>
    <who name="LiJunPan(evil7)">ljokerp</who>
    <bug_when>2017-08-30 21:43:13 -0700</bug_when>
    <thetext>It was a nice XSS victor for me. And it&apos;s a just little mistake not even a bug.
So, thx for Ur mistake &amp; don&apos;t write more like &quot;OMG I forget change the return when I paste codes&quot;.
Have nice day! XD</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343875</commentid>
    <comment_count>20</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2017-08-30 22:06:52 -0700</bug_when>
    <thetext>(In reply to LiJunPan(evil7) from comment #19)
&gt; It was a nice XSS victor for me. And it&apos;s a just little mistake not even a
&gt; bug.
&gt; So, thx for Ur mistake &amp; don&apos;t write more like &quot;OMG I forget change the
&gt; return when I paste codes&quot;.
&gt; Have nice day! XD

The XSS vector is mercifully limited as it requires the right hand side of the assignment to be side effect free (it&apos;s not arbitrary expressions, at least it shouldn&apos;t be), basically the right hand side has to be a slightly more accepting version of JSON: &quot;s and &apos;s are are allowed for string literals, and a few other minor differences in that vein.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1343879</commentid>
    <comment_count>21</comment_count>
    <who name="LiJunPan(evil7)">ljokerp</who>
    <bug_when>2017-08-30 22:39:53 -0700</bug_when>
    <thetext>(In reply to Oliver Hunt from comment #20)
&gt; (In reply to LiJunPan(evil7) from comment #19)
&gt; &gt; It was a nice XSS victor for me. And it&apos;s a just little mistake not even a
&gt; &gt; bug.
&gt; &gt; So, thx for Ur mistake &amp; don&apos;t write more like &quot;OMG I forget change the
&gt; &gt; return when I paste codes&quot;.
&gt; &gt; Have nice day! XD
&gt; 
&gt; The XSS vector is mercifully limited as it requires the right hand side of
&gt; the assignment to be side effect free (it&apos;s not arbitrary expressions, at
&gt; least it shouldn&apos;t be), basically the right hand side has to be a slightly
&gt; more accepting version of JSON: &quot;s and &apos;s are are allowed for string
&gt; literals, and a few other minor differences in that vein.

Yep.I just found it from a CTF-game at last week. That&apos;s a strangely POC but OMG it&apos;s worked. SO I tryed to input some others like &quot;foo;test;&quot; or &quot;var test;&apos;string&apos;&quot; wanna make it working but NOT，It ONLY worked with &quot;location;&apos;(String:)str&apos;&quot; and ONLY at macOS. So I realized it&apos;s hardly to make a XSS in web framework. Just maybe a little mistake in the sourses of Webkit.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>319392</attachid>
            <date>2017-08-30 13:45:57 -0700</date>
            <delta_ts>2017-08-30 15:27:13 -0700</delta_ts>
            <desc>patch</desc>
            <filename>a-backup.diff</filename>
            <type>text/plain</type>
            <size>3821</size>
            <attacher name="Saam Barati">saam</attacher>
            
              <data encoding="base64">SW5kZXg6IEpTVGVzdHMvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIEpTVGVzdHMvQ2hhbmdlTG9n
CShyZXZpc2lvbiAyMjEzOTUpCisrKyBKU1Rlc3RzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpA
QCAtMSwzICsxLDEzIEBACisyMDE3LTA4LTMwICBTYWFtIEJhcmF0aSAgPHNiYXJhdGlAYXBwbGUu
Y29tPgorCisgICAgICAgIHNlbWljb2xvbiBpcyBiZWluZyBpbnRlcnByZXRlZCBhcyBhbiA9IGlu
IHRoZSBMaXRlcmFsUGFyc2VyCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3df
YnVnLmNnaT9pZD0xNzYxMTQKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4K
KworICAgICAgICAqIHN0cmVzcy9qc29ucC1saXRlcmFsLXBhcnNlci1zZW1pY29sb24taXMtbm90
LWFzc2lnbm1lbnQuanM6IEFkZGVkLgorICAgICAgICAqIHN0cmVzcy9yZXNvdXJjZXMvbGl0ZXJh
bC1wYXJzZXItdGVzdC1jYXNlLmpzOiBBZGRlZC4KKwogMjAxNy0wOC0zMCAgT2xla3NhbmRyIFNr
YWNoa292ICA8Z3NrYWNoa292QGdtYWlsLmNvbT4KIAogICAgICAgICBbRVNOZXh0XSBBc3luYyBp
dGVyYXRpb24gLSBJbXBsZW1lbnQgYXN5bmMgaXRlcmF0aW9uIHN0YXRlbWVudDogZm9yLWF3YWl0
LW9mCkluZGV4OiBKU1Rlc3RzL3N0cmVzcy9qc29ucC1saXRlcmFsLXBhcnNlci1zZW1pY29sb24t
aXMtbm90LWFzc2lnbm1lbnQuanMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gSlNUZXN0cy9zdHJlc3MvanNvbnAt
bGl0ZXJhbC1wYXJzZXItc2VtaWNvbG9uL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gICAgaWYgKG1fbW9kZSA9
PSBOb25TdHJpY3RKU09OKQotICAgICAgICByZXR1cm4gbGV4PE5vblN0cmljdEpTT04+KG1fY3Vy
cmVudFRva2VuKTsKLSAgICBpZiAobV9tb2RlID09IEpTT05QKQotICAgICAgICByZXR1cm4gbGV4
PEpTT05QPihtX2N1cnJlbnRUb2tlbik7Ci0gICAgcmV0dXJuIGxleDxTdHJpY3RKU09OPihtX2N1
cnJlbnRUb2tlbik7CisgICAgICAgIHJlc3VsdCA9IGxleDxOb25TdHJpY3RKU09OPihtX2N1cnJl
bnRUb2tlbik7CisgICAgZWxzZSBpZiAobV9tb2RlID09IEpTT05QKQorICAgICAgICByZXN1bHQg
PSBsZXg8SlNPTlA+KG1fY3VycmVudFRva2VuKTsKKyAgICBlbHNlCisgICAgICAgIHJlc3VsdCA9
IGxleDxTdHJpY3RKU09OPihtX2N1cnJlbnRUb2tlbik7CisgICAgQVNTRVJUKG1fY3VycmVudFRv
a2VuLnR5cGUgPT0gcmVzdWx0KTsKKyAgICByZXR1cm4gcmVzdWx0OwogfQogCiB0ZW1wbGF0ZSA8
Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>