Please sign in to comment.
Modified styles, included readme
- Loading branch information...
Showing with 38 additions and 6 deletions.
|@@ -0,0 +1,11 @@|
|+This demo shows how a frame phishing attack can be launched on iframes making use of "Descendent navigation policy" followed by web browsers. In this, data sent from a genuine site to its partner widget is stolen by the attacker using an evil widget.|
|+Setup: There are 3 folders-partner, postMessage and attacker. Host each of them at different origins (host them on different domains or point them to different port numbers).|
|+>>The partner site just listens to onmessage event and prints the data.|
|+>>The postMessage site contains an iframe to partner site and sends message to the partner using HTML5 postMessage API.|
|+>>The attacker site has an iframe to postMessage site. Once the postMessage site is loaded in iframe, it redirects the partner site iframe to an evil gadget. This frame navigation is possible due to the "Descendent policy" followed by web browsers. Now, if the postMessage site sends a message to partner, it is actually reached to the evil gadget!!|