How does XSS work?

前端 未结 6 1117
栀梦
栀梦 2020-11-29 04:52

Can someone explain how XSS works in plain english? Maybe with an example. Googling didn\'t help much.

6条回答
  •  再見小時候
    2020-11-29 05:06

    An XSS vulnerability exists whenever a string from outside your application can be interpreted as code.

    For example, if you're generating HTML by doing this:

    
      
    
    

    then if the $myQueryParameter variable contains a

提交回复
热议问题