3 ms·
They were implied as "execution of server-side content" in the sentence: "It is relatively easy to look for and identify any execution of server-side content."
by arghwhat 9y ago
They were implied as "execution of server-side content" in the sentence: "It is relatively easy to look for and identify any execution of server-side content."
It is correct that it would be complicated to do for an arbitrary hosted app that may inject server-side rendered content with scripts in them, but this is not the case here.
There are very few places where "external" content is inserted into the DOM (decrypted mailbox content that may be HTML, account info), and those should all employ proper script stripping techniques. Finding DOM append or assignment (including attribute assignment) points is relatively easy.
With the DOM out of the way, you only have places where the application intentionally executes JavaScript through eval and new Function (potentially wrapped in whatever frameworks they use).
It really isn't very hard. And yes, I have done it before—and no, I couldn't have missed something when I did it, as only interaction I had found would succeed in my sandbox.