Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-24055-OAuth-Langfuse | Kitploit
Tools/GitHubGitHub/imzanggg/cve-2026-24055-oauth-langfuse
Vulnerability AnalysisExploitationWeb Application ExploitationAPI Security TestingLearning & EducationLabs & Practice
GitHubimzanggg/cve-2026-24055-oauth-langfuse

CVE-2026-24055-OAuth-Langfuse

View Repository
41 month agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-24055 — Unauthenticated Slack OAuth Install in Langfuse

Đồ án môn Bảo mật Web và Ứng dụng — Nhóm 06, lớp NT213.Q21.ANTT

📌 Tóm tắt

Dự án tái hiện lại (reproduce) một lỗ hổng bảo mật thực tế đã được công bố (CVE-2026-24055) trên nền tảng Langfuse — một endpoint OAuth cho phép kẻ tấn công chiếm quyền kết nối Slack workspace vào project của người khác mà không cần đăng nhập.

Dự án bao gồm: dựng môi trường Docker mô phỏng cả phiên bản có lỗ hổng và phiên bản đã vá, thực hiện khai thác từng bước, và xác minh bản vá hoạt động đúng. Qua đó thực hành phân tích lỗ hổng Access Control trong luồng OAuth, một kỹ năng áp dụng trực tiếp khi xây dựng hoặc audit các hệ thống xác thực web.

Kỹ năng thể hiện: phân tích luồng OAuth2, Docker, đọc security advisory, viết báo cáo kỹ thuật, kiểm thử bảo mật (security testing).


Mục lục

  • Mô tả lỗ hổng
  • Yêu cầu hệ thống
  • Chuẩn bị trước khi chạy
  • Demo khai thác — Vulnerable v3.146.0
  • Verify bản vá — Patched v3.147.0
  • Tắt môi trường
  • Tài liệu tham khảo

Mô tả lỗ hổng

CVE-2026-24055 là lỗ hổng Improper Access Control trong Langfuse từ phiên bản 3.89.0 đến .

Download Tool
3.146.0

Endpoint /api/public/slack/install không yêu cầu xác thực, cho phép attacker bind Slack workspace của mình vào bất kỳ project nào chỉ cần biết projectId. Khi victim tạo automation gửi thông báo lên Slack, toàn bộ nội dung prompt sẽ bị rò rỉ sang workspace của attacker.

Thuộc tínhChi tiết
CWECWE-284 — Improper Access Control
Phiên bản bị ảnh hưởngLangfuse 3.89.0 – 3.146.0
Phiên bản đã váLangfuse 3.147.0
GitHub AdvisoryGHSA-pvq7-vvfj-p98x
NVDCVE-2026-24055

Luồng tấn công

Sequence Diagram


Yêu cầu hệ thống

Công cụPhiên bản tối thiểu
Docker Desktop24.0+
Docker Composev2
Gitbất kỳ
RAM8 GB

Chuẩn bị trước khi chạy

Tạo Slack App

Slack API cho phép sử dụng http://localhost:3000 làm Redirect URL.

  1. Vào https://api.slack.com/apps → Create New App → From scratch
  2. Đặt tên app, chọn workspace
  3. Vào OAuth & Permissions → Redirect URLs → thêm:
    root@kitploit:~
    http://localhost:3000
    
  4. Lưu lại Client ID và Client Secret

Demo khai thác — Vulnerable v3.146

Bước 1 — Cấu hình môi trường

root@kitploit:~
cd vulnerable
cp .env.example .env

Mở file .env, điền các giá trị sau:

root@kitploit:~
NEXTAUTH_URL=http://localhost:3000
SLACK_CLIENT_ID=<your-slack-client-id>
SLACK_CLIENT_SECRET=<your-slack-client-secret>
SLACK_STATE_SECRET=any-random-string

Bước 2 — Khởi động Langfuse v3.146.0

root@kitploit:~
docker compose up -d

Kiểm tra các container đã sẵn sàng:

root@kitploit:~
docker compose ps

Chờ khoảng 30–60 giây. Tất cả container phải ở trạng thái Up (healthy).

Bước 3 — Tạo tài khoản

Truy cập http://localhost:3000:

  1. Tài khoản Victim

    • Đăng ký tài khoản, tạo Organization → tạo Project
    • Vào Settings → ghi lại Project ID
  2. Tài khoản Attacker

    • Mở tab ẩn danh, đăng ký tài khoản khác (hoặc không đăng nhập)

Bước 4 — Thực hiện khai thác

Trên trình duyệt của attacker (không cần đăng nhập Langfuse), truy cập:

root@kitploit:~
http://localhost:3000/api/public/slack/install?projectId=<victim-project-id>

Luồng diễn ra:

  • Server không kiểm tra xác thực, redirect thẳng đến Slack OAuth
  • Đăng nhập Slack workspace của attacker → click Allow
  • Workspace của attacker đã được bind vào project của victim

Bước 5 — Xác nhận dữ liệu bị rò rỉ

Đăng nhập với tài khoản victim:

  1. Vào Settings → Integrations → kiểm tra Slack đã kết nối (workspace của attacker)
  2. Tạo Automation: Prompts → Automations → New
    • Trigger: Prompt created / updated / deleted
    • Action: Slack → chọn channel
  3. Victim tạo một prompt mới
  4. Slack của attacker nhận thông báo chứa metadata của prompt (tên, version, labels, tags)

Verify bản vá — Patched v3.147

Bước 1 — Tắt môi trường cũ

root@kitploit:~
cd ../vulnerable
docker compose down

Bước 2 — Khởi động Langfuse v3.147.0

root@kitploit:~
cd ../patched
cp .env.example .env
# Điền các giá trị giống phần vulnerable
docker compose up -d

Bước 3 — Chạy lại khai thác

Thử không đăng nhập:

root@kitploit:~
http://localhost:3000/api/public/slack/install?projectId=<any-project-id>

Kết quả mong đợi — HTTP 401:

root@kitploit:~
{ "error": "Authentication required" }

Thử đăng nhập attacker, dùng projectId của victim:

root@kitploit:~
http://localhost:3000/api/public/slack/install?projectId=<victim-project-id>

Kết quả mong đợi — HTTP 403:

root@kitploit:~
{ "error": "You do not have permission to configure Slack for this project" }

Lỗ hổng đã được vá hoàn toàn.


Tắt môi trường

root@kitploit:~
docker compose down

Nếu muốn xóa toàn bộ data (volumes):

root@kitploit:~
docker compose down -v

Cấu trúc thư mục

root@kitploit:~
cve-2026-24055/
├── README.md                  ← file này
├── vulnerable/
│   ├── docker-compose.yml     ← Langfuse v3.146.0 (có lỗ hổng)
│   └── .env.example
└── patched/
    ├── docker-compose.yml     ← Langfuse v3.147.0 (đã vá)
    └── .env.example

Tài liệu tham khảo

  • GitHub Security Advisory — GHSA-pvq7-vvfj-p98x
  • NVD — CVE-2026-24055
  • Commit fix — 3adc89e