Chuyển đến nội dung
Skillpedia
Bảo mật6.5k · #14154

web-cookie-audit

Skill này làm gì

Skill giải thích cách liệt kê cookie của site và kiểm tra cookie nào làm thay đổi hành vi của site. Dành cho người kiểm thử muốn kết quả chính xác từ ứng dụng phụ thuộc vào phiên đăng nhập.

Khi nào nên dùng

  • ✓Khi người kiểm thử thấy một tính năng chỉ chạy sau khi đăng nhập và cần biết cookie nào quan trọng.
  • ✓Khi lập trình viên muốn có danh sách mọi cookie site đặt và lý do của từng cookie.
  • ✓Khi kết quả kiểm thử cho thấy bị chặn nhưng nguyên nhân có thể là thiếu cookie phiên.

Liên kết skill

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/recon/web-recon/cookie-audit/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/recon/web-recon/cookie-audit/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Site của chúng tôi đặt những cookie nào, và cookie nào ảnh hưởng đến cách thanh toán hoạt động?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill yêu cầu AI ghi lại mọi cookie, kiểm thử có và không có từng cookie, rồi ghi nhận cookie nào làm thay đổi hành vi. Kết quả được đưa vào một bảng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Cookie-Conditional Sink Discovery

A "sink" (eval, deserialize, exec, template render) may behave differently — or not fire at all — depending on which session cookies are present. Recon MUST enumerate every cookie the app sets and re-test each candidate sink with and without each cookie before declaring the sink unreachable. Skipping this step is the most common cause of exploit handing back a false "blind sink" verdict.

Procedure

  1. Walk the app unauthenticated; record every Set-Cookie (name, attributes, source endpoint).
  2. Authenticate (every auth tier: anon, low-priv user, high-priv user) and record the full cookie jar after each.
  3. For each candidate sink (parameter, route, header, body field):
    • Probe with NO cookies.
    • Probe with FULL authenticated jar.
    • Bisect: drop one cookie at a time and re-probe. The cookie whose removal silences the sink is the gating cookie.
  4. Document a "Sink preconditions" table in recon_notes.md and SUMMARY.md:
Sink Endpoint Method Required cookies Behavior w/o cookie Behavior w/ cookie Notes
bookmark_data (deser) /bookmarks/import POST session=...; auth_tier=user 302 → /login 200 + processed gated by auth_tier

4a. Session mutation audit. For every endpoint that READS session, trace which other endpoints WRITE to the SAME session key BEFORE the security verdict (login, password check, role lookup). This is the data race-condition exploit needs. Output a "Session-write timeline" table:

Endpoint Reads session keys Writes session keys (pre-verdict) Slow ops (bcrypt/DB/network) Race window (ms)
POST /login — user, auth_tier (set BEFORE bcrypt) bcrypt ~200ms ~200
GET /admin_panel user, auth_tier — — reads during the login bcrypt window

If the challenge tag includes race_condition, toctou, concurrent, or smuggling_desync and recon hands off WITHOUT this table, exploit MUST flag the handoff back as "recon incomplete: session-write timeline missing".

  1. In the handoff to exploit/postexploit, ALWAYS include a Required session state line:
Required session state: cookies=[session, auth_tier=user]; obtained via POST /login (creds: user@example.com / hunter2)

If recon hands off without this line, exploit is required to re-run cookie enumeration before concluding any sink is unreachable.

Câu hỏi thường gặp

Vì sao phải kiểm tra từng cookie một?

Việc bỏ đi từng cookie một cho thấy cookie nào thực sự kiểm soát một tính năng.

Kết quả trông như thế nào?

Đó là một bảng gồm các tính năng, cookie mà chúng cần và cách site phản hồi.

Ai được lợi?

Người kiểm thử và lập trình viên muốn kết quả rõ ràng, chính xác từ ứng dụng dựa trên phiên.

Chi tiết

Mô tả gốc của tác giả

Cookie-conditional sink discovery — bisect required cookies per sink, session-write timeline for race-condition challenges.

repo: BitterSecurity/Decepticon

Độ phổ biến

Sao GitHub
6.5k
Vị trí xếp hạng
#14154
Giấy phép
Apache-2.0
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự