Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2018-01229
- Vendor: Cardinal Blue
- Title: PicCollage 拼貼趣 可上傳 Ghostscript 圖片導致 Remote Code Execution
- Introduction: Remote Code Execution
處理狀態
目前狀態
公開
Last Update : 2018/09/14
-
新提交
-
已審核
-
已通報
-
已修補
-
已複測
-
公開
處理歷程
- 2018/08/28 18:04:20 : 新提交 (由 <svg/onload=alert(1)> 更新此狀態)
- 2018/08/28 18:05:09 : 新提交 (由 <svg/onload=alert(1)> 更新此狀態)
- 2018/08/28 18:08:07 : 新提交 (由 <svg/onload=alert(1)> 更新此狀態)
- 2018/08/28 18:08:36 : 新提交 (由 <svg/onload=alert(1)> 更新此狀態)
- 2018/08/28 18:09:07 : 新提交 (由 <svg/onload=alert(1)> 更新此狀態)
- 2018/08/28 18:09:45 : 新提交 (由 <svg/onload=alert(1)> 更新此狀態)
- 2018/08/28 18:10:42 : 新提交 (由 <svg/onload=alert(1)> 更新此狀態)
- 2018/08/28 18:18:07 : 新提交 (由 <svg/onload=alert(1)> 更新此狀態)
- 2018/08/28 18:23:40 : 新提交 (由 <svg/onload=alert(1)> 更新此狀態)
- 2018/08/28 18:24:32 : 新提交 (由 <svg/onload=alert(1)> 更新此狀態)
- 2018/08/28 18:25:22 : 新提交 (由 <svg/onload=alert(1)> 更新此狀態)
- 2018/08/28 18:26:10 : 新提交 (由 <svg/onload=alert(1)> 更新此狀態)
- 2018/08/28 18:26:44 : 新提交 (由 <svg/onload=alert(1)> 更新此狀態)
- 2018/08/28 23:03:06 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/08/30 15:37:16 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/08/30 15:37:16 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2018/09/10 09:27:15 : 複測申請中 (由 組織帳號 更新此狀態)
- 2018/09/11 02:36:03 : 確認已修補 (由 <svg/onload=alert(1)> 更新此狀態)
- 2018/09/14 03:00:13 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2018-01229
- 通報者: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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
https://pic-collage.com/account/edit
敘述
問題點發生在 https://pic-collage.com/account/edit 上傳大頭照的地方
透過上傳一個 postscript 格式的圖片,就能直接拿到網站的 shell
主要可以執行的原因是因為 postscript 存在 safer bypass 的漏洞,可以直接利用
這個問題可以參考 http://openwall.com/lists/oss-security/2018/08/21/2
另外這篇也有提到 pic-collage 有使用 imagemagick
https://tech.pic-collage.com/use-imagemagick-with-mozilla-jpeg-encoder-on-heroku-a86ffe657279
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。