Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2026-00781
- Vendor: 高雄醫學大學
- Title: 高雄醫學大學 中風復健系統平台,白箱測試 - SQL Injection
- Introduction: 該網頁應用程式經白箱分析之後,具有 SQL Injection 之風險
處理狀態
目前狀態
公開
Last Update : 2026/07/10
-
新提交
-
已審核
-
已通報
-
已修補
-
已複測
-
公開
處理歷程
- 2026/05/30 16:10:44 : 新提交 (由 阿文 更新此狀態)
- 2026/05/30 16:12:41 : 新提交 (由 阿文 更新此狀態)
- 2026/05/30 16:14:56 : 新提交 (由 阿文 更新此狀態)
- 2026/06/01 15:50:36 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/07/02 12:25:45 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/07/02 12:25:45 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/07/02 12:25:45 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/07/06 16:59:14 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/07/06 19:32:27 : 確認已修補 (由 阿文 更新此狀態)
- 2026/07/10 03:00:13 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2026-00781
- 通報者:littlebabywen (阿文)
- 風險:嚴重
- 類型:資料庫注入攻擊 (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://163.15.164.85/site/patient_detail.php
https://163.15.164.85/site/update.php
https://163.15.164.85/site/doctor.php
https://163.15.164.85/site/update.php
https://163.15.164.85/site/doctor.php
敘述
-
根據 ZD-2026-00780 通報,稍微審計了一下此中風復健系統平台之 php 原始碼(patient_detail.php、update.php、doctor.php等),幾乎所有系統之應用程式功能都具有 SQL Injection 之風險,模糊測試時也會跳出完整的 sql 詳細錯誤資訊。
-
這邊只用 patient_detail.php 功能當作漏洞範例: https://163.15.164.85/site/patient_detail.php (POST) - 參數 account 。
- 利用 sqlmap dump 出 DB 資訊。
sqlmap -r /home/james/Desktop/sql.txt --proxy=http://127.0.0.1:8080 --dbs --force-ssl --random-agent --tamper=space2comment
免責聲明
原始碼審計完之後,已全部刪除乾淨
- 利用 sqlmap dump 出 DB 資訊。
修補建議
1. 使用參數化查詢(Prepared Statements): 始終使用參數化查詢或預備語句來處理輸入資料,這樣可以確保使用者輸入的資料不會被當作 SQL 指令的一部分執行,而是作為純數據處理。
2. 嚴格的輸入驗證與過濾: 在後端對使用者輸入的資料進行嚴格的驗證與過濾,避免非預期的特殊字符進入 SQL 查詢。例如,對字符串型輸入過濾掉特殊字符,對數字型輸入確保僅為數字。
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。