靜修中學 教學平台 RXSS & SXSS - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2024-01175
  •  發信 Vendor: 臺北市天主教靜修中學
  • Title: 靜修中學 教學平台 RXSS & SXSS
  • Introduction: (Reflected ) Cross-site scripting & (Stored Cross-Site Scripting)

處理狀態

目前狀態

公開
Last Update : 2024/10/23
  • 新提交
  • 已審核
  • 已通報
  • 已修補
  • 已複測
  • 公開

處理歷程

  • 2024/09/26 18:45:03 : 新提交 (由 tusoar 更新此狀態)
  • 2024/09/26 18:47:11 : 新提交 (由 tusoar 更新此狀態)
  • 2024/09/27 18:27:27 : 新提交 (由 tusoar 更新此狀態)
  • 2024/09/27 18:30:10 : 新提交 (由 tusoar 更新此狀態)
  • 2024/09/30 22:36:24 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2024/10/10 15:58:09 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2024/10/10 15:58:09 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2024/10/10 15:58:09 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2024/10/18 08:12:07 : 複測申請中 (由 組織帳號 更新此狀態)
  • 2024/10/19 11:56:41 : 確認已修補 (由 tusoar 更新此狀態)
  • 2024/10/23 03:00:07 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2024-01175
  • 通報者:tusoar (tusoar)
  • 風險:中
  • 類型:預存式跨站腳本攻擊 (Stored Cross-Site Scripting)

參考資料

攻擊者可經由該漏洞竊取使用者身份,或進行掛碼、轉址等攻擊行為。

漏洞說明: OWASP - Cross-site Scripting (XSS)
https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)

防護原則:
https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet

XSS 防禦繞過方式:
https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)

相關網址

https://xds3.bish.tp.edu.tw/tp/public/ma/5a.asp?cla=%BBy%A4%E5%BB%E2%B0%EC%B0%EA%A4%E5%AC%EC
https://xds3.bish.tp.edu.tw/tp/public/ma/1.asp
https://xds3.bish.tp.edu.tw/tp/public/ma/h3a.asp
https://xds3.bish.tp.edu.tw/tp/public/ma/h4a.asp

敘述

https://xds3.bish.tp.edu.tw/tp/public/ma/5a.asp?cla=TEST

圖片

發現訊息可控

輸入 <script>alert(1)</script>

https://xds3.bish.tp.edu.tw/tp/public/ma/5a.asp?cla=%3Cscript%3Ealert(1)%3C/script%3E

圖片

接著觀察 https://xds3.bish.tp.edu.tw/tp/public/ma/1.asp

圖片

https://xds3.bish.tp.edu.tw/tp/public/ma/h3a.asp

圖片

可以上傳檔案

嘗試上傳 有 xss payload 的 svg

圖片

成功上傳

圖片

點進去

圖片

成功XSS!

且沒有設置 httponly

圖片

修補建議

利用白名單過濾上傳檔案

擷圖

留言討論

聯絡組織

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