V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
q2425940
V2EX  ›  程序员

问个 xss 问题,防 xss 时 如果不转义&符号,其他的都转义,会有漏洞吗?

  •  
  •   q2425940 · Oct 20, 2017 · 3130 views
    This topic created in 3111 days ago, the information mentioned may be changed or developed.
    2 replies    2017-10-21 09:32:12 +08:00
    xmcp
        1
    xmcp  
       Oct 20, 2017
    什么叫“其他”?所有字符?还是<>"'?
    什么叫转义? URL Encode ? HTML Entity Encode ? JSON.stringify ?
    用户输入出现在什么位置? innerHTML 里?属性里? JS 代码里?
    这些都要说清楚呀。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1002 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 22:23 · PVG 06:23 · LAX 15:23 · JFK 18:23
    ♥ Do have faith in what you're doing.