본문으로 건너뛰기
Skillpedia
보안6.5k · #14154

web-cookie-audit

하는 일

이 스킬은 사이트의 쿠키를 나열하고 어떤 쿠키가 사이트 동작을 바꾸는지 테스트하는 방법을 설명합니다. 세션에 의존하는 애플리케이션에서 정확한 결과를 원하는 테스터를 위한 스킬입니다.

사용하는 경우

  • ✓테스터가 로그인 후에만 작동하는 기능을 보고 어떤 쿠키가 중요한지 알아야 할 때.
  • ✓개발자가 사이트가 설정하는 모든 쿠키와 그 이유의 목록을 원하는 경우.
  • ✓테스트 결과가 막힌 것처럼 보이지만 세션 쿠키가 없어서일 수 있을 때.

스킬 링크

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/recon/web-recon/cookie-audit/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우리 사이트는 어떤 쿠키를 설정하고, 그중 어떤 쿠키가 결제 과정을 바꾸는지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 AI에게 모든 쿠키를 기록하고, 각 쿠키를 넣거나 뺀 상태로 테스트하며, 어떤 쿠키가 동작을 바꾸는지 기록하라고 지시합니다. 결과는 표로 정리합니다.

기술 내용 (원본 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-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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬