Author Topic: With this Javascript, why split the scrtipt tag?  (Read 1166 times)

0 Members and 1 Guest are viewing this topic.

Offline polonus

  • Avast Überevangelist
  • Probably Bot
  • *****
  • Posts: 33923
  • malware fighter
With this Javascript, why split the scrtipt tag?
« on: July 29, 2015, 05:52:05 PM »
See:
Code: [Select]

<script type="text/javascript">
    if(!jQuery().pagination) { document.write('<scr' + 'ipt type="text/javascript" src="htxp://telegraaf.tcdn.nl/javascript/jquery/jquery.30d8f5727c58e4dcb536a39d3fb3618a.pagination.js"></sc' + 'ript>'); }
    stylesheetOnDemand("/css/videopage/video.css");
</script>

pagination.js vulnerable - http://www.securityfocus.com/bid/69135/info Network exploitable;
You can't embed <script> tags, as some jQuery magic will remove them, but this isn't necessary as shown.

polonus
Cybersecurity is more of an attitude than anything else. Avast Evangelists.

Use NoScript, a limited user account and a virtual machine and be safe(r)!