Ah thanks, interesting reading on the fragment identifiers.
I think where I'm getting a little muddled is where the intitial iFrame is injected, and it's target.
I think I wrongly assumed that a page under your total control, would create an iFrame with a target of the site you wanted to exploit, and use that relationship to execute further javascript within the context of the framed site; but now I'm guessing that the relationship works the other way around? Site out of your control gets an iFrame injected via XSS vulnerability, which then caters for a full comms relationship between the two, the iFrame being the controlling site and the site containing the iFrame being a victim? Or am I off base again?
DM
That sounds about right. Each site can read and write the src attribute of the other, so once the "payload" is injected in the iframed site (which has to contain a vulnerable form for any of this to work, remember!), you have complete and utter control over the child (iframed) site.
None of this is really new or earth-shattering, and the fact that it relies on an easily-averted exploit ensures that it won't ruin the "internet as we know it" any time soon, which is why I believe in full disclosure of what I'm doing. None of the techniques are new, it's the combination of them that I'm doing here that I think makes it kind of neat.