Langsung ke konten
Skillpedia
Keamanan48k Β· #4898

hunt-session

Fungsinya

Tool ini membantu memeriksa apakah sesi pengguna pada website dan aplikasi sudah aman. Tool ini mencari celah yang bisa membuat penyerang mengakses akun orang lain, bahkan setelah pengguna logout atau mengganti kata sandi.

Kapan dipakai

  • βœ“Saat menguji keamanan sebuah website atau aplikasi.
  • βœ“Untuk memastikan logout benar-benar mengakhiri sesi pengguna.
  • βœ“Untuk memastikan penggantian kata sandi membatalkan sesi lama.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-session/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/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-session/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

β€œPeriksa keamanan manajemen sesi pada website example.com”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Tool ini mensimulasikan tindakan seperti login, logout, dan mengganti kata sandi, lalu mengamati apakah sesi pengguna benar-benar dibatalkan. Tool ini juga mencari pola celah manajemen sesi yang sudah dikenal.

Konten teknis (SKILL.md asli)

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

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

Autonomous Testing Priority

Missing HttpOnly on cookies is auto-detected β€” focus your active testing on lifecycle invalidation (higher impact).

Pattern 1 β€” Session survives logout (most common high-value finding):

  1. Login and note the session token/cookie value
  2. Call the logout endpoint (/logout, POST /api/logout, etc.)
  3. Try to use the OLD session token to access a protected resource (/api/me, /dashboard, /account)
  4. If 200 with user data β†’ session not invalidated on logout = ATO persistence

Pattern 2 β€” Session not regenerated on login (session fixation):

  1. GET any page to receive a pre-authentication session token/cookie
  2. POST valid credentials to the login endpoint
  3. Compare the session token BEFORE and AFTER login
  4. If the token is unchanged β†’ session fixation vulnerability

Pattern 3 β€” Session survives password change:

  1. Login β†’ record session A value
  2. Change the password via the account settings endpoint
  3. Replay session A on a protected endpoint
  4. If 200 β†’ token not rotated on credential change = persistent ATO (critical chain when combined with XSS/cookie theft)

Content-type: Login and session endpoints vary β€” use application/json for REST APIs, application/x-www-form-urlencoded for traditional web forms. Try both if the first returns an unexpected response.

Proof: A protected-resource 200 response (with user data) using a session token that should have been invalidated confirms the finding.


HUNT-SESSION β€” Session Management

Crown Jewel Targets

Session fixation leading to admin hijack = Critical. Session surviving a password change = High-to-Critical (persistent ATO from a stolen cookie that the victim believes they revoked by resetting their password).

Highest-value chains:

  • Session fixation β€” server accepts a session ID set by the client and does NOT regenerate it on login β†’ attacker pre-plants an ID, victim authenticates, attacker rides the now-authenticated session β†’ persistent ATO.
  • No invalidation on logout β€” old token still works after /logout β†’ theft window never closes.
  • No invalidation on password / email change β€” a stolen session survives the victim's "I think I was hacked, let me reset" β†’ persistent ATO. This is the single highest-paid session bug class.
  • Refresh-token reuse without rotation-detection β€” a leaked refresh token mints fresh access tokens forever; no reuse-detection means the legitimate user's later refresh does NOT revoke the attacker's branch.
  • Predictable / low-entropy session ID β€” sequential, timestamp- or userId-derived IDs β†’ brute-force or compute other users' sessions.
  • JWT-as-session with no exp / no revocation list β€” stolen JWT = permanent access; logout is cosmetic.

Grounding β€” patterns that shaped each phase

No invented CVE/report IDs below. These are the named, publicly-documented patterns this skill encodes:

  • Session fixation, login-CSRF, no-regeneration-on-auth β€” OWASP WSTG-SESS-03 / WSTG-SESS-01; the classic ACROS / Mitja KolΕ‘ek session-fixation paper. Highest-impact variant: fixing the session of an SSO/admin user.
  • SameSite=Lax sibling-subdomain CSRF reaching session state β€” Argo CD CVE-2024-22424 (Lax cookies sent on top-level cross-site navigations from a sibling subdomain). Use this when a session cookie relies on SameSite=Lax as its only CSRF defence.
  • Refresh-token rotation & automatic reuse-detection β€” the Auth0/IETF OAuth-Security-BCP model: a rotated refresh token, if replayed, must invalidate the entire token family. Absence = the core bug to prove.

…

Pertanyaan umum

Apa itu 'sesi'?

Sesi itu seperti tanda pengenal sementara yang diberikan website setelah Anda login. Dengan tanda ini, website tahu siapa Anda pada kunjungan berikutnya tanpa meminta kata sandi lagi.

Apa itu 'invalidasi sesi'?

Invalidasi sesi adalah proses 'logout' atau pengakhiran sesi pengguna, yang memastikan tanda pengenal sementara tersebut sudah tidak berlaku lagi.

Mengapa pengujian ini penting?

Jika sesi tidak dibatalkan dengan benar, penyerang bisa menggunakan tanda pengenal lama (meskipun korban sudah logout) untuk tetap mengakses akun korban.

Detail

Deskripsi asli dari pembuat

Hunt Session Management vulnerabilities

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#4898
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa