-
Notifications
You must be signed in to change notification settings - Fork 82
Prevent external sites from embedding Build #302
Comments
how does that compromise the credentials? |
Something like in nginx |
@issa-tseng An attacker could put ODK cloud or forum or whatever credentials here in the outside frame and claim it will enable some better functionality. @florianm What I've used in the past is this:
I'm not sure if/how Build uses cookies so we may want to explore adding |
Remediation: 1st-way X-Frame-Options: You may set X-Frame-Options as per your requirement according to their use case.
DENY – does not allow any domain to display this page within a frame
SAMEORIGIN – allows the current page to be displayed in a frame on another page, but only within the current domain. Content Security Policy (CSP) Common uses of CSP frame-ancestors: Content-Security-Policy: frame-ancestors 'none'; This prevents any domain from framing the content. This setting is recommended unless a specific need has been identified for framing.
This only allows the current site to frame the content.
This allows the current site, as well as any page on somesite.com (using any protocol), and only the page myfriend.site.com, using HTTPS only on the default port (443). |
@issa-tseng Attacker scenario: " As the Server is responding same whether a website open in an iframe or website is open in normal mode." Let's assume your user opens his account in the iframe and he is using your platform, as your web server is responding to each request normally so he will consider himself in a safe environment. While using your platform a message is shown "Click here for a free iPhone " as the user was receiving every response from your server he will be sure the offer is from your website but once he clicks on the button he would be a victim of the attacker's trick. BOOM! I shared the detailed article on clickjacking below: https://auth0.com/blog/preventing-clickjacking-attacks/#Prevent-Clickjacking-Attacks |
Is there any update regarding the reported issue and bounty reward for my responsible disclosure? |
Thanks for the responsible disclosure. We do not have a bounty program. We will resolve this issue in due time. |
Build can be run in an iframe and that means someone harvest credentials when in an iframe.
The text was updated successfully, but these errors were encountered: