Scan your site now

Security Report Summary
E
Site:
Scanned Site(s):
1
IP Address:
13.224.93.79
Report Time:
30 Nov 2020 02:13:21 UTC
Checks:
Window Referrer
Window Opener
Comments
Enabled Debugging
Unsafe Functions
Warning:
Please have a look at the security issues / warnings in the report.
Security Issues
Window Referrer
  • window.open(g.url)}),E.addEventListener("click",function(){(0,i.cookie)(_+":"+t,T,O)})),k.addEventListener("click",function(){setTimeout(function(){b.parentNode.removeChild(b)},100),j(c,o,u,t)}),E.addEventListener("click",function(e){e.preventDefault(),setTimeout(function(){b.parentNode.removeChild(b)},100),j(c,o,u,t)})}}function F(e){document.cookie=e+";expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"}a.pushNotifications=R,a.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};((0,s.externalDebug)("------------------------"),(0,s.path)("TMCONFIG.features.writeTagToLocalStorage",window))&&((0,p.checkForQueue)()&&((0,s.externalDebug)("Queue exists will start adding channels"),(0,p.recursivelyAddTags)()));[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • window.open(l,"_self")}()}function i(){document.querySelector("#property-search-form .search-location").placeholder="Enter location"}e&&n.default.listen(document.body,e,function n(){var o=r.default.getPartnerSectionConfigParameter("partner.property.search.googleApiKey"),s=r.default.getPartnerSectionConfigParameter("partner.property.search.url");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
Warnings
Comments
Comments should be removed from the public code of a web application, since it can give an aggressor critical insights into the inner structure of the program. By using this information, the attacker could easier understand how the user session is handled by javascript or figure out the pathway data is sent to the server.
  • /*! * $script.js JS loader & dependency manager * https://github.com/ded/script.js * (c) Dustin Diaz 2014 | License MIT */[https://www.birminghammail.co.uk/special-features/cbd-oil-uk-buy-online-17313842/]
  • /* Drone Build Number: 2062 1606325068699 */[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/withnail/tags/js/runForceReconsent.min.js?v=b76405c8cee7caaa807c7b4a27ec4913]
  • /* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0*/[https://securepubads.g.doubleclick.net/tag/js/gpt.js]
  • /* prebid.js v3.27.1Updated : 2020-11-10 */[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/withnail/lib/prebid/prebid.js?v=079cfe0dfcfc2e0533a230e7e4528b50]
  • /* Drone Build Number: 2062 1606325068699 */[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/withnail/tags/js/tags.min.js?v=f39da68479b7934cfc3b31da50c45efc]
  • /* Drone Build Number: 2062 1606325068699 */[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/withnail/scriptsCore/js/withnail.min.js?v=1a27e5a96c9a23d14c89e30bea88c047]
Enabled Debugging
The JavaScript debugging functions should always removed after development stage, because they could expose informations on the inner workings of the code. In production, it is a loophole and could show a possible attacker where to find possibly exploitable vulnerabilities or interesting variables.
  • console.log("IndexExchange script loading: ");[https://www.birminghammail.co.uk/special-features/cbd-oil-uk-buy-online-17313842/]
  • console.log("IX tag: ERROR parsing scriptConfig",e)}if(window.console.log("IX tag: scriptConfig",t),(t.indexExchange||{}).enabled&&t.indexExchange.headerTag){var n=document.createElement("script");[https://www.birminghammail.co.uk/special-features/cbd-oil-uk-buy-online-17313842/]
  • console.log("A9 loaded: ",JSON.stringify(e))}),window.apstagDEBUG={testBidTimeout:200},function(){var e=function(e){var t,n=window,a={A9Loaded:!0};window.console.log("fireA9Loaded: "+JSON.stringify(e),1),n&&(document.createEvent?((t=document.createEvent("HTMLEvents")).initEvent("A9.loaded",!0,!0),t.data=a,n.dispatchEvent(t)):document.createEventObject&&((t=document.createEventObject()).data=a,n.fireEvent("onA9.loaded",t)),window.addEventListener("DOMContentLoaded",function(){n.dataEvents=n.dataEvents||{},n.dataEvents["A9.loaded"]=n.dataEvents["A9.loaded"]||[],n.dataEvents["A9.loaded"].push(!0)},!1))};!function(t,n,a,d,o,i,s){function c(e,a){n[t]._Q.push([e,a])}n[t]||(n[t]={init:function(){c("i",arguments)},fetchBids:function(){c("f",arguments)},setDisplayBids:function(){},targetingKeys:function(){return[]},_Q:[]},(i=a.createElement(d)).async=!0,i.src="https://c.amazon-adsystem.com/aax2/apstag.js",i.onload=e,(s=a.getElementsByTagName(d)[0]).parentNode.insertBefore(i,s))}("apstag",window,document,"script"),window.TMFeatures||(window.TMFeatures={}),window.TMFeatures.amazonHeaderEnabled=!0}());[https://www.birminghammail.co.uk/special-features/cbd-oil-uk-buy-online-17313842/]
  • console.log("[TM PWA] "+e)});[https://www.birminghammail.co.uk/special-features/cbd-oil-uk-buy-online-17313842/]
  • console.log("OFFLINE"),caches.match(n+c)});[https://www.birminghammail.co.uk/special-features/cbd-oil-uk-buy-online-17313842/]
  • console.log("[TM PWA] "+e)}),e.cacheFirst&&(s+="&cacheFirst=true"),e.offlineSupport&&(s+="&offlineSupport=true"),t&&(s=s+"&pushDisplayService="+t+"&vap="+v(n.vapidKey)+"&a="+v(n.appKey)+"&t="+v(n.token)+"&i="+v());[https://www.birminghammail.co.uk/special-features/cbd-oil-uk-buy-online-17313842/]
  • console.log("GTM in unknown state - Dom Ready did not fire")})},timer:function(e,t){d({type:"timing."+e,data:{timingCategory:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Generic Timer",timingVar:e,timingValue:Math.round(t)}})},getClientId:function(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=(t=u,(t=(document.cookie+";").match(new RegExp(t+"=.*;")))&&t[0].split(/=|;/)[1]);[https://www.birminghammail.co.uk/special-features/cbd-oil-uk-buy-online-17313842/]
  • console.log("Client ID response error: "+e)}l(e);[https://www.birminghammail.co.uk/special-features/cbd-oil-uk-buy-online-17313842/]
  • console.log("Client ID error: "+r.statusText)}}else window.console.log("No Client ID endpoint!")}}},{2:2}],8:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});[https://www.birminghammail.co.uk/special-features/cbd-oil-uk-buy-online-17313842/]
  • console.log("iPhone/Edge Fix running...");[https://www.birminghammail.co.uk/special-features/cbd-oil-uk-buy-online-17313842/]
  • console.log(s,"[INFO] Changing consent version number:","Version change: From version ".concat(i," to version ").concat(r,".")),n=!0,p(r)):(window.console.log(s,"[INFO] Initialising for the user with a monitor cookie, no consent cookie exists yet:","Initializing user with monitor cookie version ".concat(i,".")),n=!0,p(r))}else f(u,l,r),n=!0;h(n),m(r)}var y={init:g};n.default=y},{"../../scriptsCore/js/dataLayerUtilities":21,"@trinitymirrordigital/chameleon-utilities":9}],25:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.setReachID=function(){var e=o.default.getCookie("ruid"),t=localStorage.getItem("ruid");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/withnail/tags/js/runForceReconsent.min.js?v=b76405c8cee7caaa807c7b4a27ec4913]
  • console.log("%cIAS_DEBUG: "+t,n)}}])&&s(t.prototype,n),a&&s(t,a),e}()),l="gpt",f="longreq",d="m",g="na",h="profile",p="x",y="xe",m="xt";function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var b=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,(n=[{key:"sendXHR",value:function(e,t,n,a){var r,i;try{(r=new XMLHttpRequest)&&(i=encodeURI(e+"?"+t),r.open("GET",i),r.onreadystatechange=function(){var e;if(4===r.readyState&&200===r.status)if((e=r.responseText).code)c.error("XMLHttpRequest failure code: "+e.code+", message: "+e.message);[https://cdn.adsafeprotected.com/iasPET.1.js]
  • console.log("Error rendering component: "+e)}}function c(e){var t;return(e=e||{}).contexts?t=function(t,a){s(t,e.contexts[a].template)}:e.template&&(t=function(t){s(t,e.template)}),{init:function(t){e.init&&e.init(t),t.setAttribute("data-init",!0)},render:t,css:e.css,offsets:e.offsets}}a.create=c,a.activate=o,a.default={create:c,activate:o}},{5:5}],4:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • console.log("Error rendering component: "+e)}}function c(e){var t;return(e=e||{}).contexts?t=function(t,a){s(t,e.contexts[a].template)}:e.template&&(t=function(t){s(t,e.template)}),{init:function(t){e.init&&e.init(t),t.setAttribute("data-init",!0)},render:t,css:e.css,offsets:e.offsets}}a.create=c,a.activate=o,a.default={create:c,activate:o}},{11:11}],10:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • console.log("Preferences for newsletter have been saved"):window.console.log("An error occurred when trying to save preferences for newsletter"))},t&&(a.mode=t);[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • console.log(i.replace(/&/gi,"\n")),n.send(i)},b=function(e){var t=e.form;e.preferences.map(function(e){return c(t,'*[name="'+e.name+'"]')&&(e.type=c(t,'*[name="'+e.name+'"]').tagName),c(t,'input[name="'+e.name+'[]"][type="checkbox"]')&&(e.type="CHECKBOX"),e}).map(function(e){"INPUT"===e.type?c(t,'input[name="'+e.name+'"]').value=e.value:"SELECT"===e.type?c(t,'select[name="'+e.name+'"]').value=e.value:"CHECKBOX"===e.type&&e.value.split(",").map(function(a){a&&(c(t,'input[name="'+e.name+'[]"][value="'+a+'"]').checked=!0)})})},w=function(e){c(e,'input[name="email"]').value.length&&(c(e,'input[type="checkbox"][data-pure360-listToggle]').checked=!0)};window.toggleForm=function(e){var t=c(document,".collapse-toggle[data-collapse-publication-id='"+e+"']"),a=t.parentElement.nextSibling;"none"===a.style.display?(a.style.display="block",t.classList.remove("hidden-form"),t.classList.add("visible-form")):(a.style.display="none",t.classList.remove("visible-form"),t.classList.add("hidden-form"))};var y=function(e){window.console.log("drawNewsletters",e);[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • console.log("publicationContainers",a),a&&a.length>0&&(window.console.log("Inside pubContainer map"),a.map(function(e){var t=e.getAttribute("data-publication-id");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • console.log("publicationName map item",t),v(t)}))},k=function(){!function(e,t){var a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType="json",a.onload=function(){var e=a.status;200==e?t(null,a.response):t(e)},a.send()}(p+"/@trinitymirrordigital/newsletter-pref-centre/"+f+".json",function(e,t){e?window.console.error(e):y(t)})};window.publicationFormSubmit=function(e,t){if(function(e){if(0===e.length)return!1;return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}(m())){var a=[];l(document,"div[data-publication-id='"+e+"'] form[data-pure360-preferenceCentre]").map(function(e){var n=c(e,"input[data-pure360-listToggle]");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • console.log("submitted "+e.querySelector('input[name="listName"]').value),c(e,'input[name="email"]').value&&u()||(c(e,'input[name="email"]').value=m()),a.push({type:"subscribed",publication:t+" "+n.name}),g(e,"update");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • console.log("mode=remove on "+e.querySelector('input[name="listName"]').value),a.push({type:"unsubscribed",publication:t+" "+n.name}),g(e,"remove"))}}),function(e){var t=c(document,".messages");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • console.log("Loaded newsletter preferences"),document.getElementById("newsletter-preferences-container").innerHTML=(0,i.default)({emailHash:u(),listName:s.get("listName")||""}),h(),k()}});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • console.log("[TM PWA] "+e)});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • console.log("OFFLINE"),caches.match(a+s)});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • console.log("[TM PWA] "+e)}),e.cacheFirst&&(l+="&cacheFirst=true"),e.offlineSupport&&(l+="&offlineSupport=true"),t&&(l=l+"&pushDisplayService="+t+"&vap="+h(a.vapidKey)+"&a="+h(a.appKey)+"&t="+h(a.token)+"&i="+h());[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • console.log("Error rendering component: "+t)}}function l(t){var e;return(t=t||{}).contexts?e=function(e,a){o(e,t.contexts[a].template)}:t.template&&(e=function(e){o(e,t.template)}),{init:function(e){t.init&&t.init(e),e.setAttribute("data-init",!0)},render:e,css:t.css,offsets:t.offsets}}a.create=l,a.activate=s,a.default={create:l,activate:s}},{2:2}],2:[function(t,e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/article-service/js/section.min.js?v=193871b43f7f6f3c2033083bfad4ca3f]
  • console.log("Error rendering component: "+t)}}function l(t){var e;return(t=t||{}).contexts?e=function(e,a){o(e,t.contexts[a].template)}:t.template&&(e=function(e){o(e,t.template)}),{init:function(e){t.init&&t.init(e),e.setAttribute("data-init",!0)},render:e,css:t.css,offsets:t.offsets}}a.create=l,a.activate=s,a.default={create:l,activate:s}},{7:7}],6:[function(t,e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/article-service/js/section.min.js?v=193871b43f7f6f3c2033083bfad4ca3f]
  • console.log(e),t.parentNode.replaceChild(e,t)})},a.actions=function(t){window.vfQ=window.vfQ||[];var e=n();[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/article-service/js/section.min.js?v=193871b43f7f6f3c2033083bfad4ca3f]
  • console.log("Error rendering component: "+e)}}function l(e){var t;return(e=e||{}).contexts?t=function(t,a){s(t,e.contexts[a].template)}:e.template&&(t=function(t){s(t,e.template)}),{init:function(t){e.init&&e.init(t),t.setAttribute("data-init",!0)},render:t,css:e.css,offsets:e.offsets}}a.create=l,a.activate=o,a.default={create:l,activate:o}},{2:2}],2:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • console.log("Error rendering component: "+e)}}function l(e){var t;return(e=e||{}).contexts?t=function(t,a){s(t,e.contexts[a].template)}:e.template&&(t=function(t){s(t,e.template)}),{init:function(t){e.init&&e.init(t),t.setAttribute("data-init",!0)},render:t,css:e.css,offsets:e.offsets}}a.create=l,a.activate=o,a.default={create:l,activate:o}},{9:9}],8:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • console.log("Error rendering component: "+e)}}(e)}});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • console.log("Error while sending GA track data"),!1}},getAttrValue:function(e,t){var a=e.getAttribute(t);[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • console.log("Error tracking widget: "+e)}}(e)}});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • console.log("fish4 api is down"+e)})}function m(){var t=e.querySelector(".job-search-form");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • console.log("Error rendering component: "+e)}}function c(e){var t;return(e=e||{}).contexts?t=function(t,n){d(t,e.contexts[n].template)}:e.template&&(t=function(t){d(t,e.template)}),{init:function(t){e.init&&e.init(t),t.setAttribute("data-init",!0)},render:t,css:e.css,offsets:e.offsets}}n.create=c,n.activate=r,n.default={create:c,activate:r}},{2:2}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-static-html/js/chameleon-static-html.min.js?v=d67cadfaca8783a467a088a11a0cea11]
  • console.log("Error rendering component: "+e)}}function c(e){var t;return(e=e||{}).contexts?t=function(t,n){d(t,e.contexts[n].template)}:e.template&&(t=function(t){d(t,e.template)}),{init:function(t){e.init&&e.init(t),t.setAttribute("data-init",!0)},render:t,css:e.css,offsets:e.offsets}}n.create=c,n.activate=r,n.default={create:c,activate:r}},{7:7}],6:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-static-html/js/chameleon-static-html.min.js?v=d67cadfaca8783a467a088a11a0cea11]
  • console.log("-------------- posting user object to data layer",e),l.pageView(e),window.login_radius_user_profile=e,window.dispatchEvent(new CustomEvent("loginradius.user.profile",{detail:e})),e}).then(function(e){window.console.log("DISPATCH LR LOGIN STATE");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-static-html/js/chameleon-static-html.min.js?v=d67cadfaca8783a467a088a11a0cea11]
  • console.log("LR ERROR ",e)})};function p(){return Promise.resolve().then(v).then(function(e){var t=window.localStorage.getItem("loginRadiusInitials");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-static-html/js/chameleon-static-html.min.js?v=d67cadfaca8783a467a088a11a0cea11]
  • console.log("------------------ ends with .ece? ",window.location.pathname.endsWith(".ece")),window.console.log("------------------ ends with .ece?/ ",window.location.pathname.endsWith(".ece/")),window.console.log("------------------ is lr? ",i(t)),!window.location.pathname.endsWith(".ece")&&!window.location.pathname.endsWith(".ece/")&&i(t)&&("email"===o&&window.localStorage.setItem("lr-position","email"),"registration"===n||d.get("token")?l.register():"autologin"===n?(l.automaticLogin(),w()):"socialregistration"===n?l.socialRegistration():"socialaccess"===n&&l.socialLogin(),t)){var r=window.localStorage.getItem("loginRadiusToken");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-static-html/js/chameleon-static-html.min.js?v=d67cadfaca8783a467a088a11a0cea11]
Unsafe Functions
eval() is eval! This functions and similar ones (document.write(), document.writeln(), element.innerHTML, element.outerHTML, element.insertAdjacentHTML()) should never be used in production stage of a website, because the parsing of the executable string is often not secure and result therefore often in a cross-site scripting vulnerability. Instead of these functions create html elements by script and add it to the DOM object.
  • eval(publisherTag)):(__WEBPACK_IMPORTED_MODULE_4__src_utils_js__.logWarn("Invalid Criteo FastBid found"),storage.removeDataFromLocalStorage(fastBidStorageKey))))}catch(t){}}Object(__WEBPACK_IMPORTED_MODULE_1__src_adapters_bidderFactory_js__.registerBidder)(spec)},384:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/withnail/lib/prebid/prebid.js?v=079cfe0dfcfc2e0533a230e7e4528b50]
  • document.write(e),t.contentWindow.document.close()},t.insertUserSyncIframe=se,t.createTrackPixelHtml=function(e){if(!e)return"";var t=encodeURI(e),r='<div style="position:absolute;left:0px;top:0px;visibility:hidden;">';return r+='<img src="'+t+'"></div>'},t.createTrackPixelIframeHtml=de,t.getValueString=fe,t.uniques=le,t.flatten=pe,t.getBidRequest=function(r,e){return r?(e.some(function(e){var t=s()(e.bids,function(t){return["bidId","adId","bid_id"].some(function(e){return t[e]===r})});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/withnail/lib/prebid/prebid.js?v=079cfe0dfcfc2e0533a230e7e4528b50]
  • insertAdjacentHTML("beforeend",(0,r.default)({ingredient:e,pancake:s.pancake}))}),i.events.fire(c,"component.activate"),t.classList.remove("loading")}))},{preventDefault:!0})}var l=i.component.create({init:function(e){c(e),function(e){var t=[],a=e.querySelectorAll(".pancake");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • insertAdjacentHTML("afterend",(0,o.default)({futureRender:!0,data:a,layout:n})),i.events.fire(document.querySelector("main"),"component.activate"),e.target.remove()}})},{rootMargin:"1500px",threshold:0}).observe(t),t.setAttribute("observing","true"))}(e)}});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • insertAdjacentHTML("beforeend",n)});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • insertAdjacentHTML("beforeend",A),P=C.querySelector(".all-publications-form"),(0,o.removeComponentListener)(".prompt-close",P),(0,o.removeComponentListener)(".confirm-close",P),P.querySelector(".subscription-list").addEventListener("submit",function(e){P.remove(),e.preventDefault(),e.stopPropagation();[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • insertAdjacentHTML("beforeend",o);[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • insertAdjacentHTML("beforeend",(0,v.default)({isMobile:o,browserType:r})),(n=document.querySelector(".browser-prompt-overlay")).addEventListener("click",function(){return n.remove()}))},100)),a.then(function(e){t&&(n?n.remove():clearTimeout(r)),(0,i.analytics)(""+w+P),e===S?((0,i.cookie)(k,e,x),(0,i.analytics)(""+w+C),window.felix.click("web-alert-notification",0,0,{})):((0,i.analytics)(""+w+L),window.felix.click("web-alert-notification-close",0,0,{}))}),a}function H(e,t,a){(0,s.externalDebug)("subscribeToPublication"),(0,s.externalDebug)("pushNotification - airship detected, attempting airship signup");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • insertAdjacentHTML("beforeend",(0,g.default)({component:"pwaPrompt",triggerImmediately:x})),document.body.insertAdjacentHTML("beforeend",(0,g.default)({component:"pwaTerminator",triggerImmediately:x})),document.body.insertAdjacentHTML("beforeend",(0,g.default)({component:"pwaPopup",triggerImmediately:x})),l.default.fire(document.body,"component.activate");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/marwood/TM/js/section.min.js?v=7a27dd890031cf6d21fc689330dedcf8]
  • insertAdjacentHTML("afterbegin",T({entry:t})),i.default.fire(document.body,"modules.ready"),n.default.activate(g)):Array.from(e).every(function(e){var a=parseInt(e.getAttribute("data-post-time"),10);[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/article-service/js/section.min.js?v=193871b43f7f6f3c2033083bfad4ca3f]
  • insertAdjacentHTML("beforebegin",r),i.default.fire(document.body,"modules.ready"),n.default.activate(e.previousSibling),!1}return!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/article-service/js/section.min.js?v=193871b43f7f6f3c2033083bfad4ca3f]
  • insertAdjacentHTML("beforeend",a),i.default.fire(document.body,"modules.ready"),n.default.activate(g)))}function N(){if(t=x,P===window?t.getBoundingClientRect().bottom<=window.innerHeight:t.getBoundingClientRect().bottom<=P.getBoundingClientRect().bottom){if(A(),i.default.fire(window,"analytics.track","liveEventScroll"),q())return void P.removeEventListener("scroll",E,!1);[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/article-service/js/section.min.js?v=193871b43f7f6f3c2033083bfad4ca3f]
  • insertAdjacentHTML("beforeend",o),t.partnerCarousel.classList.remove("loading"),t.autroScrollOption.listItemWidth=document.querySelector(".partner-carousel-listing li").clientWidth,a>t.autroScrollOption.visibleElements-1?r.default.init(t.autroScrollOption):(document.querySelector(".scroll-left-partner").classList.add("hidden"),document.querySelector(".scroll-right-partner").classList.add("hidden"))}(l,s)}else t.partnerCarousel.classList.add("hidden")}else t.partnerCarousel.classList.add("hidden")}e&&n.default.listen(document.body,e,function a(){var n,r=document.querySelector(".partner-carousel"),i=document.getElementById("partnerCarouselConfig"),l=i&&i.getAttribute("content")||!1,c=l&&JSON.parse(l)||!1;r&&c&&(o.default.loadCss(window.TMCONFIG.frontendRoot+"/@trinitymirrordigital/chameleon-partnership-widgets/scss/rps-style.css"),n=r,t.partnerCarousel=n,t.autroScrollOption={orientation:"horizontal",speed:20,isLoop:!0,frameRate:24,containerSelector:".carousel-container",listingSelector:".partner-carousel-listing",leftArrow:".scroll-left-partner",rightArrow:".scroll-right-partner",visibleElements:5,manualScrollSpeed:50,isDelayRequired:!0},function(){var e,t,a=document.querySelectorAll(".pancake[data-group^='sectionGroup']");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",l),e.classList.remove("loading")}else e.classList.add("hidden");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",d),e.classList.remove("loading")}else e.classList.add("hidden")}else e.classList.add("hidden")}(n,l),document.body.removeEventListener(e,a)},{purgeEventData:!0})}},{17:17,2:2,49:49}],22:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",l),e.classList.remove("loading")}else e.classList.add("hidden")}else e.classList.add("hidden")}(n,l),document.body.removeEventListener(e,a)},{purgeEventData:!0})}},{16:16,2:2,49:49}],23:[function(e,t,a){var n=e(11);[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",r);[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",o),i.default.loadCss(window.TMCONFIG.frontendRoot+"/@trinitymirrordigital/chameleon-partnership-widgets/scss/rps-style.css")),document.body.removeEventListener(e,t),document.querySelector(".primary.star-page")&&document.body.classList.add("horoscope-page")}})}},{2:2,36:36,49:49}],44:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",o),i.default.loadCss(window.TMCONFIG.frontendRoot+"/@trinitymirrordigital/chameleon-partnership-widgets/scss/rps-style.css")),document.body.removeEventListener(e,t),document.querySelector(".primary.star-page")&&document.body.classList.add("horoscope-page")}})}},{2:2,38:38,49:49}],45:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",s)}(o),document.body.removeEventListener(e,n)}})}},{2:2,28:28,34:34}],46:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",o),document.getElementById("horoscope-signslist").classList.add("horoscope")),document.body.removeEventListener(e,t),document.body.classList.add("horoscope-main")}})}},{2:2,28:28,40:40}],47:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",o),document.body.classList.add("has-horoscope-signup")}document.body.removeEventListener(e,t)})}},{2:2,42:42,49:49}],48:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",s),y.setAttribute("data-group","partner-"+i.templateName),i&&i.title&&(y.querySelector(".title").innerHTML=i.title),!1!==c.default.isClickTracked(o)&&y.classList.add("click-track"),function(e,t){!1!==c.default.isImprTracked(t)&&e.setAttribute("data-impr-tracking","true")}(y,o),y.setAttribute("data-element-type",c.default.getWidgetTrackName(o)),y.setAttribute("data-link-partner",c.default.getPartnerName(o)),function(e,t){var a=c.default.getInitMethod(e);[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",d)}}}(document.querySelector(".karma-partners-content"),l);[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",r),t.element.classList.remove("hidden"),t.element.parentElement.classList.remove("hidden"),i.default.init(t.autroScrollOption)}})}e&&n.default.listen(document.body,e,function n(){t.element=document.querySelector(".hotjobs"),a(),(0,o.default)("X2JS").then(function(){var e=l.default.getPartnerSectionConfigParameter("partner.madgex.hot-job-url");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",(0,s.default)(t))}).catch(function(e){window.console.log("fish4 api is down"+e)})}function m(){var t=e.querySelector(".job-search-form");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",(0,o.default)()),e.location=document.querySelector(".job-location"),e.suggestions=e.querySelector(".autocomplete-suggestions"),v(),g(),n.default.listen(e.suggestions,"click",h),n.default.listen(e.suggestions,"mouseover",y),n.default.listen(e.suggestions,"touchenter",y),n.default.listen(e.suggestions,"mouseout",g),n.default.listen(e.suggestions,"touchleave",g),n.default.listen(document.getElementById("job-submit"),"click",m),l.default.loadCss(window.TMCONFIG.frontendRoot+"/@trinitymirrordigital/chameleon-partnership-widgets/scss/rps-style.css")})}}}().init})},{1:1,2:2,4:4,49:49,58:58,59:59,61:61}],65:[function(e,t,a){var n=e(11);[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",f),a||(t.adForm=document.getElementById("adform"),t.submit=t.advertiseContainer.querySelector(".submit"),t.adForm.addEventListener("input",u),t.adForm.addEventListener("change",c),t.submit.addEventListener("click",m))}function c(){t.inputCount++}function u(e){p(e.target)}function p(e){!e.validity.valid||e.validity.typeMismatch?(e.classList.add("error"),e.previousElementSibling.classList.add("show"),t.isFormValid&&(t.isFormValid=!1,function(e){for(var t,a=0,n=window.scrollY;e;)a+=e.offsetTop,e=e.offsetParent;a-=document.querySelector("header .primary").offsetHeight+30,t&&clearInterval(t),t=setInterval(function(){window.scrollY>a?(n-=20,window.scroll(0,n)):clearInterval(t)},30)}(e))):(e.classList.remove("error"),e.previousElementSibling.classList.remove("show"))}function m(e){var a=(performance.now()-t.loadedTime)/1e3;t.isFormValid=!0;var n=t.advertiseContainer.querySelectorAll("[required]");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",(0,i.default)(n)),e.setAttribute("data-link-partner","Big Brum")}}},{69:69}],76:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",(0,i.default)(a)),e.setAttribute("data-link-partner","itison")}}},{70:70}],77:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",(0,i.default)(p)),e.setAttribute("data-link-partner",m||"Masthead takeover"),h&&(v=h,g=e.querySelector(".pipeline-container"),l.test(v)&&(v=v+"?widgetId="+c[window.TMCONFIG.platform]+"&isCallback=true"),n.ajax(v,function(e){g.innerHTML=e.responseText,g.querySelectorAll("script").forEach(function(e){var t=document.createElement("SCRIPT");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",(0,r.default)(a));[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",(0,i.default)(a)),e.setAttribute("data-link-partner","we stand together")}}},{74:74}],83:[function(e,t,a){var n=e(11);[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",y),function(e){n.default.delegate(e,".msm-more-info-btn","click",function(e){var t=document.getElementById(this.getAttribute("data-show"));[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",(0,r.default)(t))}})},{1:1,91:91}],93:[function(e,t,a){var n=e(11);[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",r),t.propertyFormContent.classList.add("results-content"),t.searchContainer.querySelector(".active").classList.remove("active"),t.searchContainer.querySelector("."+t.attributes.next).classList.add("active")}(n),t.submitElement.setAttribute("data-link-desc",(a=t.postcode.value,a+="|sale:"+t.jsonValpalResponse.valuation,a+="|rent:"+t.jsonValpalResponse.rentalvaluation)),t.submitElement.setAttribute("data-link-track","Valpal submit");[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",n),t.selectWrapper.classList.remove("hidden"),t.valpalValidate.classList.remove("hidden")}}function k(e){var a=e.keyCode||e.which,n=this.value.trim().length;n>=5&&n<10?(t.findAddr.classList.add("active"),13===a&&b(e)):t.findAddr.classList.remove("active")}function S(){var e={content:"policy"===this.getAttribute("data-ref")?(0,p.default)():(0,u.default)(),className:"valpal-property-popup",maxWidth:800,minWidth:100,referenceTag:"main"};c.default.init(e)}function T(e){return e.replace("£","")}function C(e){return e.replace(/\s/g,"")}function L(){var e=C(t.postcode.value);[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforeend",(0,o.default)()),t.propertyFormContent=t.searchContainer.querySelector(".valpal-property-container")),t.propertyForm=document.getElementById("valpal-property-form"),t.userForm=document.getElementById("valpal-user-form"),t.propertyFormContent.classList.remove("hidden"),t.selectWrapper=t.propertyFormContent.querySelector(".addr-select-wrapper"),t.findAddr=t.propertyFormContent.querySelector(".find-button"),t.valpalValidate=t.propertyFormContent.querySelector(".valpal-validate"),t.valuation=t.propertyFormContent.querySelector(".valuation"),t.postcode=t.propertyFormContent.querySelector(".postcode"),n.default.delegate(t.searchContainer,".valpal-validate","click",g),n.default.delegate(t.searchContainer,".untrack-links","click",S),t.postcode.addEventListener("blur",L),t.postcode.addEventListener("keydown",i.debounce(k,100)),t.findAddr.addEventListener("click",b)})}}}().init})},{1:1,2:2,4:4,49:49,51:51,58:58,93:93,94:94,95:95,96:96,97:97,98:98}]},{},[50]);[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/chameleon-partnership-widgets/js/partner.min.js?v=a44c4a62d050857c19df67c69dc928bd]
  • insertAdjacentHTML("beforebegin",'<div class="wrapper-adv"></div>')),c.sticky?"sidebar"!==c.sticky.mode&&"topVBL"!==c.sticky.mode&&(t=l.parentNode):t=l,t&&!t.style.height&&t.firstChild)){var p=t.firstChild.clientHeight;u<p&&G(t.firstChild,p)}"false"!==l.getAttribute("data-stick")&&(n=c,o=d,i=u,m.default.log("[INFO] Checking stickiness ",n.name,n.sticky,o,i),n.sticky&&n.sticky.sizes&&(a=n.sticky.sizes.filter(function(e){if(m.default.log("[INFO] Comparing sticky sizes",n.sticky,e,o,i),e[0]===o&&e[1]===i)return m.default.log("[INFO] Found sticky size ",e,o,i),!0})),8<i&&n.sticky&&(a&&0<a.length||!n.sticky.sizes))&&(c.sticky.delayStickiness?function(t,r){if(!0===_||"true"===_)return me(t,r);[https://s2-prod.birminghammail.co.uk/@trinitymirrordigital/withnail/scriptsCore/js/withnail.min.js?v=1a27e5a96c9a23d14c89e30bea88c047]
Additional Information
Link Opener
The window.open("https://example.com/", "_blanc", "noopener"); attribute should always be added to the window.open() function, which open a site in a new tab, to reduce the risk of reverse tabnabbing. Otherwise javascript on the new page has full control over the previous visited page, including permission to change the DOM object and possibly steal session cookies.
Link Referrer
The window.open("https://example.com/", "_blanc", "referrer"); attribute should always be added to the window.open() function to prevent reverse tabnabbing for older browser, which do not support the noopener attribute and to prevent phishing attacks.
Comments
Comments should be removed from the public code of a web application, since it can give an aggressor critical insights into the inner structure of the program. By using this information, the attacker could easier understand how the user session is handled by javascript or figure out the pathway data is sent to the server.
Enabled Debugging
The JavaScript debugging functions should always removed after development stage, because they could expose informations on the inner workings of the code. In production, it is a loophole and could show a possible attacker where to find possibly exploitable vulnerabilities or interesting variables.
Unsafe Functions
eval() is eval! This functions and similar ones (document.write(), document.writeln(), element.innerHTML, element.outerHTML, element.insertAdjacentHTML()) should never be used in production stage of a website, because the parsing of the executable string is often not secure and result therefore often in a cross-site scripting vulnerability. Instead of these functions create html elements by script and add it to the DOM object.
Scanned URL(s)
Birmingham Live - Birmingham news, features, information and sport