从对某电厂DCS控制系统的实体控制续谈工控安全(可控制电厂实体设备)
<!--StartFragment--><h3 class="detailTitle" style="margin:15px auto 0px;padding:5px 0px 0px;font-size:14px;font-weight:normal;width:950px;text-indent:10px;word-break:break-all;overflow-wrap:break-word;border-left:5px solid #999999;color:#000000;font-family:Verdana, "font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;orphans:2;text-align:left;text-transform:none;white-space:normal;widows:2;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-style:initial;text-decoration-color:initial;">
简要描述:
</h3>
<p class="detail wybug_description" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;color:#000000;font-family:Verdana, "font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:left;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-style:initial;text-decoration-color:initial;">
本案例本来应该接着第二案例发的可是由于个人的时间给拖到了这周末,结合第二案例正好是一次完整的渗透过程,感兴趣的童鞋可以结合在一起看,为了避免有刷Rank之嫌,以及被爆水表的风险,以下操作均在已知风险的情况下进行,涉及敏感信息的图片均已打码,请勿模仿,附带该案例的同时将会继续为cncert提供周末复现存在问题的2个MIS的入口地址,涉及对象为某国投电厂,以及某环保公司,以供参考,cncert如果需要什么细节可以向我详细了解。<br style="margin:0px;padding:0px;" />
-------------------------------------------<br style="margin:0px;padding:0px;" />
之前zeracker在报了一个煤矿SCADA系统漏洞的同时侃到了DCS上还有人装360,对于这种情况我想大家只能呵呵了。如果之前百度过DCS与SCADA的童鞋应该知道他们的区别,DCS方面更注重下位的过程控制,可以实现比较复杂的控制,而SCADA一般用于上位的状态监视等等,不过在这里不管是SCADA还是DCS都是跑在工业网络内部的系统,同时网络安全这个东西本来就是一环套一环,故即使上位应用上一个非常的小缺陷都可以导致,整个产网崩溃。虽然工信部早在2011年就下发了451号通知,但从目前来看感觉反映甚微,其实工控现场的诸多应用都是跑了N年,即使存在什么漏洞在没影响稳定运行的情况下基本都不会去管,因为工控现场的复杂性导致升级或者更换都是企业害怕的事情。总的来说存在的问题很多,路还很长,好吧,扯多了。
</p>
<h3 class="detailTitle" style="margin:15px auto 0px;padding:5px 0px 0px;font-size:14px;font-weight:normal;width:950px;text-indent:10px;word-break:break-all;overflow-wrap:break-word;border-left:5px solid #999999;color:#000000;font-family:Verdana, "font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;orphans:2;text-align:left;text-transform:none;white-space:normal;widows:2;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-style:initial;text-decoration-color:initial;">
详细说明:
</h3>
<div class="wybug_detail" style="margin:0px;padding:0px;color:#000000;font-family:Verdana, "font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:left;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-style:initial;text-decoration-color:initial;">
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
根据所测试的这几个案例准确来说存在问题的应该是SyncPlant 3.0,部分在升级时可能忽略了权限的控制,导致4.0部分有问题,同时默认密码,初始密码情况很普遍。该篇文章就不上图继续测试了,该案例为第二篇的补充
</p>
</div>
<h3 class="detailTitle" style="margin:15px auto 0px;padding:5px 0px 0px;font-size:14px;font-weight:normal;width:950px;text-indent:10px;word-break:break-all;overflow-wrap:break-word;border-left:5px solid #999999;color:#000000;font-family:Verdana, "font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;orphans:2;text-align:left;text-transform:none;white-space:normal;widows:2;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-style:initial;text-decoration-color:initial;">
漏洞证明:
</h3>
<div class="wybug_poc" style="margin:0px;padding:0px;color:#000000;font-family:Verdana, "font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:left;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;-webkit-text-stroke-width:0px;text-decoration-style:initial;text-decoration-color:initial;">
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
1,接上一篇案例已经详细介绍了该环境的网络状况
</p>
<p class="detail usemasaic" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<a href="https://w.hundan.org/articles/attach/201304/141817450befcd7e92112bc87c1b8d5400043fe2.jpg" target="_blank" style="margin:0px;padding:0px;color:#002E8C;text-decoration:none;"><img src="https://w.hundan.org/articles/attach/201304/141817450befcd7e92112bc87c1b8d5400043fe2.jpg" alt="1.jpg" width="600" onerror="javascript:errimg(this);" style="margin:0px;padding:0px;border:none;" /></a>
</p>
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<br />
</p>
<p class="detail usemasaic" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<a href="https://w.hundan.org/articles/attach/201304/1418182052846c1a2ab9a94e7aa6fe5a6d32ed1b.jpg" target="_blank" style="margin:0px;padding:0px;color:#002E8C;text-decoration:none;"><img src="https://w.hundan.org/articles/attach/201304/1418182052846c1a2ab9a94e7aa6fe5a6d32ed1b.jpg" alt="2.jpg" width="600" onerror="javascript:errimg(this);" style="margin:0px;padding:0px;border:none;" /></a>
</p>
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<br style="margin:0px;padding:0px;" />
2,通过百度和总结前二篇案例反复出现的密码,加上对目标企业案例查找,根据经验这里我们确认了DCS的登录口令<br style="margin:0px;padding:0px;" />
3,目标基于windows server2003(具体硬件环境请参考http://www.docin.com/p-589909037.html) 不同的DCS操作员使用不同账户通过远程瘦客户端的方式连接,具体如下图
</p>
<p class="detail usemasaic" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<a href="https://w.hundan.org/articles/attach/201304/14181910a0390da56da93bb120b8e6c3aacd307f.jpg" target="_blank" style="margin:0px;padding:0px;color:#002E8C;text-decoration:none;"><img src="https://w.hundan.org/articles/attach/201304/14181910a0390da56da93bb120b8e6c3aacd307f.jpg" alt="3.jpg" width="600" onerror="javascript:errimg(this);" style="margin:0px;padding:0px;border:none;" /></a>
</p>
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<br style="margin:0px;padding:0px;" />
4,首先这里我们确认网络与数据采集转发情况,如图,这里就不再赘述了
</p>
<p class="detail usemasaic" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<a href="https://w.hundan.org/articles/attach/201304/14181952c201d3646b10d0a80b4453c5a89853a7.jpg" target="_blank" style="margin:0px;padding:0px;color:#002E8C;text-decoration:none;"><img src="https://w.hundan.org/articles/attach/201304/14181952c201d3646b10d0a80b4453c5a89853a7.jpg" alt="4.jpg" width="600" onerror="javascript:errimg(this);" style="margin:0px;padding:0px;border:none;" /></a>
</p>
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<br />
</p>
<p class="detail usemasaic" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<a href="https://w.hundan.org/articles/attach/201304/14182018f8f66d20baad1bdba483f1731298f3ba.jpg" target="_blank" style="margin:0px;padding:0px;color:#002E8C;text-decoration:none;"><img src="https://w.hundan.org/articles/attach/201304/14182018f8f66d20baad1bdba483f1731298f3ba.jpg" alt="5.jpg" width="600" onerror="javascript:errimg(this);" style="margin:0px;padding:0px;border:none;" /></a>
</p>
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<br style="margin:0px;padding:0px;" />
5,人机管理界面
</p>
<p class="detail usemasaic" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<a href="https://w.hundan.org/articles/attach/201304/1418212913cfca4e1113520e6046ee8fa792fda5.jpg" target="_blank" style="margin:0px;padding:0px;color:#002E8C;text-decoration:none;"><img src="https://w.hundan.org/articles/attach/201304/1418212913cfca4e1113520e6046ee8fa792fda5.jpg" alt="7.jpg" width="600" onerror="javascript:errimg(this);" style="margin:0px;padding:0px;border:none;" /></a>
</p>
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<br />
</p>
<p class="detail usemasaic" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<a href="https://w.hundan.org/articles/attach/201304/14182159085a706eaefcc4f26429d3ff142c095a.jpg" target="_blank" style="margin:0px;padding:0px;color:#002E8C;text-decoration:none;"><img src="https://w.hundan.org/articles/attach/201304/14182159085a706eaefcc4f26429d3ff142c095a.jpg" alt="8.jpg" width="600" onerror="javascript:errimg(this);" style="margin:0px;padding:0px;border:none;" /></a>
</p>
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<br />
</p>
<p class="detail usemasaic" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<a href="https://w.hundan.org/articles/attach/201304/14182220f693a2c20f912b6a78b9bd3328804944.jpg" target="_blank" style="margin:0px;padding:0px;color:#002E8C;text-decoration:none;"><img src="https://w.hundan.org/articles/attach/201304/14182220f693a2c20f912b6a78b9bd3328804944.jpg" alt="9.jpg" width="600" onerror="javascript:errimg(this);" style="margin:0px;padding:0px;border:none;" /></a>
</p>
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<br style="margin:0px;padding:0px;" />
5.1,由于可以对工程直接编辑,其功能还不只限于上图,具体如下图(完全就一组态王的翻版)
</p>
<p class="detail usemasaic" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<a href="https://w.hundan.org/articles/attach/201304/141928533f442ab3392f6c7af30c4df6015d769f.jpg" target="_blank" style="margin:0px;padding:0px;color:#002E8C;text-decoration:none;"><img src="https://w.hundan.org/articles/attach/201304/141928533f442ab3392f6c7af30c4df6015d769f.jpg" alt="13.jpg" width="600" onerror="javascript:errimg(this);" style="margin:0px;padding:0px;border:none;" /></a>
</p>
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<br />
</p>
<p class="detail usemasaic" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<a href="https://w.hundan.org/articles/attach/201304/14192909d9ddba63b079274d64e051a85e2e8418.jpg" target="_blank" style="margin:0px;padding:0px;color:#002E8C;text-decoration:none;"><img src="https://w.hundan.org/articles/attach/201304/14192909d9ddba63b079274d64e051a85e2e8418.jpg" alt="15.jpg" width="600" onerror="javascript:errimg(this);" style="margin:0px;padding:0px;border:none;" /></a>
</p>
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<br style="margin:0px;padding:0px;" />
5.2,还记得上一篇中提到的AO,DO么?,我们找到寄存器地址就可以用Modbus功能码写数据,直接进行控制了
</p>
<p class="detail usemasaic" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<a href="https://w.hundan.org/articles/attach/201304/1420075773fdc06e52a6be691f95b6104329518d.jpg" target="_blank" style="margin:0px;padding:0px;color:#002E8C;text-decoration:none;"><img src="https://w.hundan.org/articles/attach/201304/1420075773fdc06e52a6be691f95b6104329518d.jpg" alt="20.jpg" width="600" onerror="javascript:errimg(this);" style="margin:0px;padding:0px;border:none;" /></a>
</p>
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
(双地址,冗余热备)
</p>
<p class="detail usemasaic" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<a href="https://w.hundan.org/articles/attach/201304/14192923fccb5ff58164c8a486044e768a05340d.jpg" target="_blank" style="margin:0px;padding:0px;color:#002E8C;text-decoration:none;"><img src="https://w.hundan.org/articles/attach/201304/14192923fccb5ff58164c8a486044e768a05340d.jpg" alt="16.jpg" width="600" onerror="javascript:errimg(this);" style="margin:0px;padding:0px;border:none;" /></a>
</p>
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<br />
</p>
<p class="detail usemasaic" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<a href="https://w.hundan.org/articles/attach/201304/141942383cff920315bad44e59add7b702447f4e.jpg" target="_blank" style="margin:0px;padding:0px;color:#002E8C;text-decoration:none;"><img src="https://w.hundan.org/articles/attach/201304/141942383cff920315bad44e59add7b702447f4e.jpg" alt="17.jpg" width="600" onerror="javascript:errimg(this);" style="margin:0px;padding:0px;border:none;" /></a>
</p>
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<br />
</p>
<p class="detail usemasaic" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<a href="https://w.hundan.org/articles/attach/201304/141942475a0a02b3ec363dc8d6a4c5adef6e66e8.jpg" target="_blank" style="margin:0px;padding:0px;color:#002E8C;text-decoration:none;"><img src="https://w.hundan.org/articles/attach/201304/141942475a0a02b3ec363dc8d6a4c5adef6e66e8.jpg" alt="19.jpg" width="600" onerror="javascript:errimg(this);" style="margin:0px;padding:0px;border:none;" /></a>
</p>
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<br style="margin:0px;padding:0px;" />
6,到这里我们可以回到4图,看到HMI软件通过Modbus协议连接了4个控制器,我们逆向一下,telnet测试
</p>
<p class="detail usemasaic" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<a href="https://w.hundan.org/articles/attach/201304/14182331e5657506f939d9a1127f6adb04117d29.jpg" target="_blank" style="margin:0px;padding:0px;color:#002E8C;text-decoration:none;"><img src="https://w.hundan.org/articles/attach/201304/14182331e5657506f939d9a1127f6adb04117d29.jpg" alt="10.jpg" width="600" onerror="javascript:errimg(this);" style="margin:0px;padding:0px;border:none;" /></a>
</p>
<p class="detail" style="margin:0px auto;padding:5px 12px;font-size:13px;width:870px;line-height:25px;word-break:break-all;overflow-wrap:break-word;">
<br style="margin:0px;padding:0px;" />
what? 闪瞎眼了,嵌入式Vxworks。<br style="margin:0px;padding:0px;" />
7,至此对目标电厂来说已经完全无安全可言了
</p>
</div>
<!--EndFragment-->
页:
[1]