asvd / jailed

execute untrusted code with custom permissions
MIT License
1k stars 73 forks source link

Dom manipulation in jailed #48

Open AKNiazi opened 6 years ago

AKNiazi commented 6 years ago

Is there a way to manipulate parent dom in jailed iframe.

TangentFoxy commented 6 years ago

Yes, by making a function that does this manipulation accessible to the jailed script. The first example shows how to do this with alert().