I'm not familiar with Javascript, but I want to know what can't be done in this steps in order to bypass SOP and extract sensitive data :
- set the tag
<script src="https://facebook.com/messages"></script> - the browser retrives the content of
https://facebook.com/messages - the browser, thinking it's a JS code, put the HTML content inside
<script>tag - another piece of JS code get the content of the
<script>tag and send it to attacker's server