【问题标题】:Will HTTPS site have some security issue if the site is been embed to other HTTPS site?如果站点被嵌入到其他 HTTPS 站点,HTTPS 站点是否会有一些安全问题?
【发布时间】:2018-03-21 23:59:57
【问题描述】:

我在 Google 或 StackExchange 的网站上找到了一些关于 HTTPS iframe 的文章,但这些问题都与我的问题不符,因为大多数人都在询问 HTTP 网站中的 HTTPS 框架。

所以我的问题是让我们支持有一个来自 Let's encrypt 的 SSL 问题的域 secureframe.com,并且有一个托管在 Heroku 上的应用程序,域为 secureapp.herokuapp.com,我们在该站点中发送敏感数据,将如果我们在secureframe.com 提交数据,它会生成一个嵌入secureapp.herokuapp.com 网页的iframe,会出现安全问题吗?

或者换句话说,如果我们使用 .htaccess 通配符而不是 REDIRECT 将 secureframe.com 重写为 secureapp.herokuapp.com,是否也会导致安全问题?

详情:

第一种情况:

secureframe.com:

<!DOCTYPE HTML>
<html>
  <body>
    <iframe src="https://secureapp.herokuapp.com" width="100%" height="100vh" />
  </body>
</html>

secureapp.herokuapp.com:

<!DOCTYPE HTML>
<html>
  <body>
    <form action="/data" method="post">
      <b>Security Number:</b>
      <br />
      <input type="password" name="security number">
    </form>
  </body>
</html>

【问题讨论】:

    标签: .htaccess security iframe https


    【解决方案1】:

    不,不会有安全问题,因为从您的父站点的上下文中,您通过 HTTPS 隧道连接到 iframe 中的内容。您的数据绝不会在隧道之外。

    【讨论】:

    • 重写方法怎么样?该方法会导致问题吗?或者它也是安全的,因为链中的所有站点都在 HTTPS 中?
    • 你的意思是 URL 重写...?如果是,那也很安全
    • 有点,但不是,在 Apache 中我们有一个文件调用 .htaccess,其中有一个规则调用 rewrite,这意味着它将使用以下地址提供 secureapp.herokuapp.com 的内容:secureframe。 com 在地址栏中
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-24
    • 2013-10-26
    • 2017-09-06
    • 2017-08-21
    • 2018-09-30
    • 2013-04-23
    相关资源
    最近更新 更多