本文へスキップ
Skillpedia
セキュリティ6.5k · #14154

web-cookie-audit

できること

このスキルは、サイトのCookieを一覧にし、どのCookieがサイトの動作を変えるかをテストする方法を説明します。セッションに依存するアプリケーションから正確な結果を得たいテスター向けです。

使う場面

  • ✓ログイン後にだけ動く機能があり、どのCookieが重要かを知る必要があるテスターがいるとき。
  • ✓開発者が、サイトが設定するすべてのCookieと、その理由の一覧を求めているとき。
  • ✓テストの結果が遮断されているように見えるが、原因がセッションのCookieの欠落かもしれないとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/recon/web-recon/cookie-audit/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私たちのサイトはどのCookieを設定しており、そのうちどれが決済の動作を変えるか確認してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルはAIに、すべてのCookieを記録し、それぞれがある場合とない場合でテストし、動作を変えるCookieを記録するよう指示します。結果は表にまとめられます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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.

よくある質問

なぜCookieを1つずつ確認するのですか?

Cookieを1つずつ取り除くことで、どのCookieが機能を実際に制御しているかが分かるからです。

出力はどのような形ですか?

機能、それに必要なCookie、サイトの応答を並べた表です。

誰の役に立ちますか?

セッションに基づくアプリから、明確で正確な結果を得たいテスターと開発者です。

詳細

作者による元の説明

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

repo: BitterSecurity/Decepticon

人気

GitHubのスター
6.5k
ランキング
#14154
ライセンス
Apache-2.0
更新日
2026/11/1

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル