Paul's Weblog 1/24/2019

Cross-site Scripting </script> Vulnerability

Read Original

This technical article details a Cross-Site Scripting (XSS) vulnerability that occurs when embedding JSON data directly within HTML <script> tags. It explains how a closing </script> sequence within the data can break the script block and allow arbitrary code execution. The solution provided is to escape the '<' character to \u003c to prevent the browser from prematurely closing the script tag.

Cross-site Scripting </script> Vulnerability

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week