문제

Within my app (http://www.example.com) I am running an iFrame (https://www.example.com/iframe-application).

The main page (www.example.com) only renders custom data based on cookies set by the iFrame. The iFrame has all the smarts, the Javascript, the secure cookies, etc. The iFrame has NO text, images, etc. only javascript code.

Is there any risk that someone would embed the iFrame in another site and access secure cookies, login tokens, etc?

도움이 되었습니까?

해결책

By default cookies are bound to the domain name, so in normal case that should not possible.

If you got a XSS Vuln. on your site, he could access the cookies, so rather be sure to escape all Inputstrings.

다른 팁

That would be a cross-site scripting attack and most browser will prevent it unless the user has configured them not to.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top