⚡Megatron LLM Hub
←Back to search
Twitter

PHP 库 svg-sanitizer 过滤标签、属性与远程引用,阻止 SVG 内脚本执行

允许上传 SVG 的应用存在存储型 XSS 入口,已有现成库可接入。
工具xss供应链
svg-sanitizer — PHP library that sanitizes untrusted SVG/XML by filtering tags, attributes, and remote references to prevent XSS and script injection in uploaded or inlined SVG files. https://t.co/h4dKsULtCR https://t.co/KvFxrRHJYr