台灣大哥大 OAuth Open Redirect and Reflected XSS - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2025-00528
  •  發信 Vendor: 台灣大哥大股份有限公司
  • Title: 台灣大哥大 OAuth Open Redirect and Reflected XSS
  • Introduction: 此漏洞涉及Reflected XSS,攻擊者可以利用該漏洞在瀏覽器重導時執行惡意腳本

處理狀態

目前狀態

公開
Last Update : 2025/07/27
  • 新提交
  • 已審核
  • 已通報
  • 已修補
  • 已複測
  • 公開

處理歷程

  • 2025/06/05 16:27:04 : 新提交 (由 CheN.. 更新此狀態)
  • 2025/06/05 16:29:18 : 新提交 (由 CheN.. 更新此狀態)
  • 2025/06/05 17:30:37 : 新提交 (由 CheN.. 更新此狀態)
  • 2025/06/08 17:09:24 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2025/06/12 16:20:49 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2025/06/12 16:20:50 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2025/06/12 16:20:50 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2025/06/16 10:31:49 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2025/07/17 14:50:06 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2025/07/23 15:36:50 : 確認已修補 (由 CheN.. 更新此狀態)
  • 2025/07/27 03:00:08 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2025-00528
  • 通報者: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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)

相關網址

https://oauth.taiwanmobile.com/MemberOAuth/logout?client_id=gfn2&redirect_uri=https://samchen.blog

https://oauth.taiwanmobile.com/MemberOAuth/common/goto?redirectUrl=https://samchen.blog

https://oauth.taiwanmobile.com/MemberOAuth/logout?client_id=gfn2&redirect_uri=javascript:alert(document.domain)

https://oauth.taiwanmobile.com/MemberOAuth/common/goto?redirectUrl=javascript:alert(document.domain)

敘述

備註:同步通報至客服

使用輝達服務時意外發現的問題

說明

(共有2站點存在問題,以下為一)
起因是在輝達這站點(static-login.nvidia.com)看到可以使用提供商帳號登錄網站(內有台灣大哥大),然後使用者點擊「台灣大哥大帳號登入」後,會先被導至:
https://oauth.taiwanmobile.com/MemberOAuth/logout?client_id=gfn2&redirect_uri=...............
此階段的 redirect_uri 參數允許任意外部網址,導致 Open Redirect,也未過濾 URI 開頭是否為 javascript:,因此攻擊者可直接將其設為 javascript:…,導致瀏覽器在重導時執行惡意腳本造成Reflected XSS

(第二個站點)
登入完成並獲得授權碼後,會再透過:
https://oauth.taiwanmobile.com/MemberOAuth/common/goto?redirectUrl=................
跳轉回輝達網站,該 redirectUrl 同樣未做白名單限制,可接受 javascript: 協議,造成 Reflected XSS。
在這兩道 URL 中皆實際測試到「Open Redirect」及「Reflected XSS」問題。

PoC

漏洞網址

Open Redirect
https://oauth.taiwanmobile.com/MemberOAuth/logout?client_id=gfn2&redirect_uri=https://samchen.blog

https://oauth.taiwanmobile.com/MemberOAuth/common/goto?redirectUrl=https://samchen.blog

Reflected XSS
https://oauth.taiwanmobile.com/MemberOAuth/logout?client_id=gfn2&redirect_uri=javascript:alert(document.domain)

https://oauth.taiwanmobile.com/MemberOAuth/common/goto?redirectUrl=javascript:alert(document.domain)

圖片
圖片

修補建議

加強 redirectUrl 和 redirect_uri 驗證:嚴格限制可用的重定向網址,僅允許預先定義的白名單域名,並拒絕任何非授權的請求。

禁止 javascript: 協議跳轉:在解析或輸出 redirectUrl 前,若字串開頭為 javascript:,立即拒絕。

擷圖

留言討論

聯絡組織

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