Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2025-00950
- Vendor: 網路開店-JOO品牌開店平台
- Title: 網路開店-JOO品牌開店平台 搜尋頁 Reflected XSS
- Introduction: 搜尋頁 Reflected XSS
處理狀態
目前狀態
公開
Last Update : 2025/10/11
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2025/08/11 09:07:15 : 新提交 (由 yusheng 更新此狀態)
- 2025/08/11 09:43:22 : 新提交 (由 yusheng 更新此狀態)
- 2025/08/11 09:48:28 : 新提交 (由 yusheng 更新此狀態)
- 2025/08/11 10:17:01 : 新提交 (由 yusheng 更新此狀態)
- 2025/08/14 21:24:13 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/26 15:36:06 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/08/26 15:36:06 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2025/10/11 03:00:03 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2025-00950
- 通報者:cat1528985 (yusheng)
- 風險:高
- 類型:反射型跨站腳本攻擊 (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://communitypharmacy-shop.com/comdrug/index.php?action=product_search&prod_keyword=%3Cscript%3Elet%20hasAlert%20=%20false;if%20(!hasAlert)%20alert(1);%20hasAlert%20=%20true;%3C/script%3E
乙木羊 - 搜尋頁
https://www.immugoat.com/immugoat/index.php?action=product_search&prod_keyword=%3Cscript%3Elet%20hasAlert%20=%20false;if%20(!hasAlert)%20alert(1);%20hasAlert%20=%20true;%3C/script%3E
https://communitypharmacy-shop.com/comdrug/index.php?action=product_search&prod_keyword=%3Cscript%3Elet%20hasAlert%20=%20false;if%20(!hasAlert)%20alert(1);%20hasAlert%20=%20true;%3C/script%3E
乙木羊 - 搜尋頁
https://www.immugoat.com/immugoat/index.php?action=product_search&prod_keyword=%3Cscript%3Elet%20hasAlert%20=%20false;if%20(!hasAlert)%20alert(1);%20hasAlert%20=%20true;%3C/script%3E
敘述
如何判斷 "康宜庭生活藥局" 跟 "乙木羊" 都是使用 "網路開店-JOO品牌開店平台":
- 在 "康宜庭生活藥局" 跟 "乙木羊" 的網站,Response Header 的 Access-Control-Allow-Origin 都指向 https://www.joo.com.tw ,也就是 "網路開店-JOO品牌開店平台"
- 在 https://www.joo.com.tw ,也就是 "網路開店-JOO品牌開店平台" 的官網可以看到 "乙木羊" 這個品牌
重現漏洞方式:
- 進到搜尋頁 https://communitypharmacy-shop.com/comdrug/index.php?action=product_search&prod_keyword=
- 在 prod_keyword 注入以下 html(為了避免多次 alert,所以加一個 flag 來判斷)
<script>let hasAlert = false;if (!hasAlert) alert(1); hasAlert = true;</script> - 成功注入
影響:
- 竊取使用者在登入狀態的 cookie, localStorage, sessionStorage, 訂單資訊, 個資等等
- 使用 "網路開店-JOO品牌開店平台" 的店家,若有開啟搜尋頁功能,都會受到影響,但我這邊只挑 "康宜庭生活藥局" 跟 "乙木羊" 測試
修補建議
https://www.php.net/manual/en/function.htmlspecialchars.php
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。