Clickjacking: IE8 XSS filter

ClickjackingExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

This filter has visibility into all parameters of each request and response flowing through the web browser and it compares them to a set of regular expressions in order to look for reflected XSS attempts. When the filter identifies a possible XSS attacks; it disables all inline scripts within the page, including frame busting scripts (the same thing could be done with external scripts). For this reason an attacker could induce a false positive by inserting the beginning of the frame busting script into a request's parameters.

html
<script>
    if ( top != self )
    {
        top.location=self.location;
    }
</script>

Attacker View:

html
<iframe src=”http://target site/?param=<script>if”>

Comments

No comments yet.