What are the risks of letting users upload and run Javascript

前端 未结 4 1664
死守一世寂寞
死守一世寂寞 2021-01-03 05:38

If you have say an HTML5 games arcade, that allows users to upload a script that runs a game with HTML5 and Javascript, assuming you have no filters on their input (apart fr

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-03 06:23

    Allowing javascript to be uploaded an run opens up quite a lot of options for an attacker.

    See Cross Site Scripting (wikipeda) and on OWASP.

    In general - if you allow this, then an attacker can post any code, redirect users, exploit their browsers, install viruses and more.

提交回复
热议问题