Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 399 Bytes

CVE-2016-1688.md

File metadata and controls

21 lines (14 loc) · 399 Bytes

CVE-2016-1688

  • Date: May 2016
  • Credit: Max Korenko

PoC

var ARROW_ARG = /^([^\(]+?)=>/;

var fn = foo => { foo(); }

var args = fn.toString().match(ARROW_ARG);
// ["foo =>", "foo ", index: 0, input: "foo => { foo(); }"]
var args2 = fn.toString().match(ARROW_ARG);
// null in Chrome 50

Reference