Langsung ke konten
Skillpedia
Keamanan6.5k ยท #14154

web-cookie-audit

Fungsinya

Skill ini menjelaskan cara mendaftar cookie sebuah situs dan menguji cookie mana yang mengubah perilakunya. Skill ini untuk penguji yang ingin hasil yang akurat dari aplikasi yang bergantung pada sesi.

Kapan dipakai

  • โœ“Saat seorang penguji melihat fitur yang hanya berfungsi setelah login dan perlu tahu cookie mana yang berpengaruh.
  • โœ“Saat seorang pengembang ingin daftar setiap cookie yang ditetapkan situsnya dan alasannya.
  • โœ“Saat hasil uji tampak terblokir, tetapi penyebabnya mungkin cookie sesi yang hilang.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/recon/web-recon/cookie-audit/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œCookie apa saja yang ditetapkan situs kami, dan mana yang mengubah cara checkout bekerja?โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill meminta AI mencatat setiap cookie, menguji dengan dan tanpa setiap cookie, dan mencatat cookie mana yang mengubah perilaku. Hasilnya dimasukkan ke dalam tabel.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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.

Pertanyaan umum

Mengapa cookie diuji satu per satu?

Menghapus satu cookie setiap kali menunjukkan cookie mana yang benar-benar mengatur sebuah fitur.

Seperti apa keluarannya?

Berupa tabel fitur, cookie yang dibutuhkannya, dan bagaimana situs meresponsnya.

Siapa yang diuntungkan?

Penguji dan pengembang yang menginginkan hasil yang jelas dan akurat dari aplikasi berbasis sesi.

Detail

Deskripsi asli dari pembuat

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

repo: BitterSecurity/Decepticon

Popularitas

Bintang GitHub
6.5k
Peringkat
#14154
Lisensi
Apache-2.0
Diperbarui
1/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa