zhangxiao
V2EX  ›  问与答

敏感信息form提交时候的https问题

  •  
  •   zhangxiao · Oct 3, 2013 · 4108 views
    This topic created in 4786 days ago, the information mentioned may be changed or developed.
    第一种方案(已经否定):
    页面是http的,form在页面里,post到一个https的url,会有man in the middle的风险。

    第二种方案
    页面是http的,内嵌一个https的iframe显示form,form在iframe里提交。

    第三种方案
    整页https。

    问题是第二种方案安全吗?man in the middle是不是可以篡改iframe的地址伪造表单?
    8 replies  •  1970-01-01 08:00:00 +08:00
    lhx2008
    lhx2008
    Oct 3, 2013
    1
    第二种应该安全,post一般词不会查的,很特殊的词才会截post
    zhangxiao
    zhangxiao
    OP
    Oct 3, 2013
    2
    @lhx2008 呃...没太理解你的意思,或者你的想法主要是针对GFW的?
    msg7086
    msg7086
    Oct 3, 2013
    3
    内嵌https的时候难道不会被钓鱼替换?
    zhangxiao
    zhangxiao
    OP
    Oct 3, 2013
    4
    @msg7086 你说的被钓鱼替换,意思就是http的页面被劫持然后iframe的src被篡改,对吧?
    cctvsmg
    cctvsmg
    Oct 3, 2013
    5
    登陆那里单独搞个https就行吧,反正大家都这么做

    如果考虑的太深
    就算是像支付宝那样整站https
    仍然会被中间人攻击
    zhangxiao
    zhangxiao
    OP
    Oct 3, 2013
    6
    @cctvsmg 比较头疼的是网站顶部有登录框,意味着整站都要https了...
    Mutoo
    Mutoo
    Oct 3, 2013
    7
    支付宝还有一个方案是用安全控件
    lhx2008
    lhx2008
    Oct 3, 2013
    8
    @zhangxiao 是,对不起,我理解错你的意思了,不过好像除了GFW很少截吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4655 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 06:21 · PVG 14:21 · LAX 22:21 · JFK 01:21
    ♥ Do have faith in what you're doing.