How can I allow WYSIWYG editors and disable XSS attacks using Laravel?

前端 未结 5 1354
你的背包
你的背包 2021-02-08 22:31

I have a enterprise level application where logged in users are authorized to post articles to page using a WYSIWYG editor. (You can consider this application as a website build

5条回答
  •  佛祖请我去吃肉
    2021-02-08 23:10

    I beleive that xss attacks are an output problem.

    There is no security risk if you store

    in your database - it is just text - it doesnt mean anything. I encourage escaping all output, regardless where it came from. Here is a good discussion with further points on why you should filter output, not input:

    html/XSS escape on input vs output

提交回复
热议问题