Ways to insert javascript into URL?

前端 未结 9 1038
感动是毒
感动是毒 2020-12-17 17:32

Duplicate of:

What common web exploits should I know about?

This is a security question.

What should I

9条回答
  •  半阙折子戏
    2020-12-17 17:49

    JavaScript injection is not at attack on your web application. JavaScript injection simply adds JavaScript code for the browser to execute. The only way JavaScript could harm your web application is if you have a blog posting or some other area in which user input is stored. This could be a problem because an attacker could inject their code and leave it there for other users to execute. This attack is known as Cross-Site Scripting. The worst scenario would be Cross-Site Forgery, which allows attackers to inject a statement that will steal a user's cookie and therefore give the attacker their session ID.

提交回复
热议问题