[Bounty] 台灣電力公司 Remote Code Execution - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2020-01256
  •  發信 Vendor: 台灣電力公司
  • Title: [Bounty] 台灣電力公司 Remote Code Execution
  • Introduction: Remote Code Execution

處理狀態

目前狀態

公開
Last Update : 2021/03/16
  • 新提交
  • 已審核
  • 已通報
  • 未回報修補狀況
  • 未複測
  • 公開

處理歷程

  • 2020/12/31 00:03:49 : 新提交 (由 Hzllaga 更新此狀態)
  • 2020/12/31 00:04:53 : 新提交 (由 Hzllaga 更新此狀態)
  • 2020/12/31 12:53:58 : 新提交 (由 Hzllaga 更新此狀態)
  • 2020/12/31 15:23:41 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2021/03/16 03:00:02 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2020-01256
  • 通報者:haihai (Hzllaga)
  • 風險:嚴重
  • 類型:遠端命令執行 (Remote Code Execution)

參考資料

攻擊者可經由該漏洞取得主機完整權限、任意寫入檔案及取得大量內網資訊。

漏洞說明: OWASP - Code Injection
https://www.owasp.org/index.php/Code_Injection

漏洞說明: OWASP - Command Injection
https://www.owasp.org/index.php/Command_Injection

漏洞說明: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
http://cwe.mitre.org/data/definitions/77.html

漏洞說明: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
http://cwe.mitre.org/data/definitions/78.html
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)

相關網址

https://taipowerdsm-reservation.taipower.com.tw/user.aspx

敘述

根據ZD-2020-01255的SQL Injection可以發現db user是管理者權限,可以通過xp_cmdshell來RCE

whoami:

nt service\mssqlserver

c:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\ERRORLOG

圖片

修補建議

非必要webapp不要用高權限的db user

擷圖

留言討論

聯絡組織

 發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。
;