当前位置:首页 > 报告详情

再给我解析一次宝贝:通过解析差异绕过 HTML 清理器.pdf

上传人: 竿*** 编号:981593 2025-11-29 83页 17.42MB

1、#BHEU BlackHatEventsParse Me Baby One More Time:Bypassing HTML Sanitizervia Parsing DifferentialsSpeaker:David Klein PhD CandidateResearch interests:Web Security Privacy Application Security1About MeClient-Sidedocument.write(location.hash);Server-Side?phpecho$_GETname;2Cross Site Scripting(XSS)Clien

2、t-Sidedocument.write(location.hash);Server-Side?phpecho$_GETname;User InputUser Input2Cross Site Scripting(XSS)Client-Sidedocument.write(location.hash);Server-Side?phpecho$_GETname;ReflectionReflection2Cross Site Scripting(XSS)Client-Sidedocument.write(location.hash);Server-Side?phpecho$_GETname;Suc

3、h Code Patterns Are Everywhere!2Cross Site Scripting(XSS)Client-Sidedocument.write(location.hash);Server-Side?phpecho$_GETname;Such Code Patterns Are Everywhere!2Cross Site Scripting(XSS)3Everywhere?Client-SideDynamic Taint Tracking!A taint browserProject FoxhoundServer-SideLess clearSAST?DAST?Linte

4、r?4Detecting XSS?Simply remove or change dangerous parts from the input Allow formatting tags to pass through,but remove everything dangerous E.g.,This is called sanitization5Sanitization to Prevent XSS?Simply remove or change dangerous parts from the input Allow formatting tags to pass through,but

5、remove everything dangerous E.g.,This is called sanitization5Sanitization to Prevent XSS?Simply remove or change dangerous parts from the input Allow formatting tags to pass through,but remove everything dangerous E.g.,This is called sanitization5Sanitization to Prevent XSS?Simply remove or change d

6、angerous parts from the input Allow formatting tags to pass through,but remove everything dangerous E.g.,This is called sanitizationDefinition:SanitizerFunction taking arbitrary input and returns a safe valueThe output shall resemble the input I.e.,perserve benign parts5Sanitization to Prevent XSSRe

word格式文档无特别注明外均可编辑修改,预览文件经过压缩,下载原文更清晰!
三个皮匠报告文库所有资源均是客户上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作商用。
根据报告的内容,全文主要内容概括如下: 1. **XSS 防御问题**:文章指出,现有的 HTML 清洗器(sanitizers)在防止跨站脚本攻击(XSS)方面存在缺陷,因为它们依赖于不完美的 HTML 解析器,导致解析差异。 2. **解析差异**:文章强调了解析差异的存在,即不同浏览器或解析器对相同 HTML 代码的解析结果可能不同,这可能导致安全漏洞。 3. **MutaGen 工具**:介绍了一种名为 MutaGen 的 HTML 负载生成器,用于发现解析差异,并绕过 HTML 清洗器。 4. **清洗器缺陷**:研究发现,11 种跨 5 种编程语言的清洗器(包括 DOMPurify、sanitize-html 等)都存在功能性缺陷,平均解析相似度低于 60%,且即使安全,也会因解析错误而损坏输入。 5. **DOMPurify 的利用**:文章提到,DOMPurify 可以被用于辅助利用,因为其清洗过程可能不正确处理某些 HTML 特性。 6. **常见问题**:文章列举了处理注释、noscript 标签和命名空间混淆等常见问题,这些问题可能导致清洗器无法正确工作。 7. **结论**:文章呼吁需要新的清洗器方法来解决这个问题,并指出当前的解析-序列化-解析(Parse → Serialize → Parse)方法总是容易受到解析差异的影响。
HTML净化器失效之谜?" 安全神话还是现实挑战?" 揭秘HTML净化器的安全盲点!"
客服
商务合作
小程序
服务号
折叠