javascript - escape.alf.nu answers to questions 17,18 and 21 -


i found site escape.alf.nu. nerd sniped me hard , couldn't leave before solving or @ least knowing solutions challenges. answers blew mind. still can't solve 17, 18 , 21 , can't find on internet.

17 , 18 lead me read lot sop bypasses. bypasses (through frame names, address hashes, more recent postmessage()) require js code on both side. known can load javascript or css , maybe info out of requires specific input formats (even javascript error messages blocked in modern browsers). setting document.domain won't work though domains similar cant set on token17.alf.nu (or 18) iframe.

it seems me blatant violation of sop can bypassed browser vulnerabilities (like ones found on android default browsers). against style of other challenges have 1 requires specific browser. in 18 says "i expect 1 won't work in browsers", sounds if expects work in (so not vulnerability), , more importantly - if contradicts previous level should apparently work in browsers.

and there 21. 20 got more attention other late levels alf linked answer this question proof short answer "not quite enough". answer people gave level defining function called "window" or "console" - definition gets hoisted top of scope, before statement, , console.foo never checked. works because runs inside function scope. if tried bypass blocking of console (only theoretical there no longer known way of blocking it) couldn't define new window or console running in global scope , can't redefine names.

21 based on salman a's answer question. seems it's meant show code facebook used better alf's example, matters level runs code settimeout making sure runs in global scope , can't override window or console. i'm starting think level has no solution... found anything?


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -