Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2022-00672
- Vendor: 高雄市立高級中學
- Title: 高雄市立高級中學SQL注入
- Introduction: 存在SQL注入, 可getshell
處理狀態
目前狀態
公開
Last Update : 2022/10/25
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2022/08/25 16:03:46 : 新提交 (由 失眠鋒ISSAC 更新此狀態)
- 2022/08/26 11:40:18 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/08/31 17:54:36 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/08/31 17:54:36 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/08/31 17:54:36 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/10/25 03:00:04 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2022-00672
- 通報者:ISSAC_f0ng (失眠鋒ISSAC)
- 風險:嚴重
- 類型:資料庫注入攻擊 (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://www.rwm.kh.edu.tw/index.php?prog=board&item=view&id=6242
敘述
官網
https://www.rwm.kh.edu.tw
SQLMAP注入
sqlmap.py -u "rwm.kh.edu.tw/index.php?prog=board&item=view&id=6242" -p id --random-agent --dbs
成功得到管理員(admin)密碼, 這邊需要說一下, 密碼設得太簡單了, 很容易就破解出來.....
不過後來發現還有另一帳號是webadmin,
有可能admin已經不再使用? 如果是請停止使用或加強密碼
登錄頁面
https://www.rwm.kh.edu.tw/webadmin/login.php
上傳webshell, 成功getshell
數據庫可入侵
後來想執行cmd shell, 不過發現好像在php函數上做了限制, 可以透過修改配置解決,
這邊就不修改數據了。
聲名:本人無惡意,為政府, 學校, 企業等網站進行測試只為了找出漏洞然後通報,希望達到加強網站安全的目的,避免被其他有心人士的利用,並在過程中不斷學習。截圖後圖片已經全部刪除, 木馬(webshell)已刪除, 無修改或下載任何數據, 如圖片有任何敏感數據請馬上通知。
謝謝。
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。