dtwy2858 2015-08-06 13:48
浏览 103
已采纳

HTML Purifier - 如何知道是否找到了XSS注入?

I'm using HTML Purifier to remove all malicious code from user input. I want to send an alert email when a XSS code is detected (and removed) by HTML Purifier.

The purify() method returns purified HTML. I can't compare the input HTML with the purified HTML to detect changes because HTML Purifier ensures standards-compliant output by transforming HTML.

Is it possible?

Thanks for your help!

  • 写回答

1条回答 默认 最新

  • dtddjq9637 2015-08-06 17:22
    关注

    Nope, HTML Purifier doesn't support this use-case.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?