SOC 직업 분류 기준
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill wstg-sess-08명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
macOS post-exploitation for credential harvesting, DTrace monitoring, TCC bypass, and stealth operations via native tools
Windows userland post-exploitation for credential harvesting, monitoring, AMSI/ETW bypass, and stealth operations
Kubernetes post-exploitation for container escape, secret extraction, RBAC abuse, and cluster persistence
| name | wstg-sess-08 |
| description | Testing for Session Puzzling |
| category | session-management |
| owasp_id | WSTG-SESS-08 |
| version | 1.0.0 |
| author | cyberstrike-official |
| tags | ["session","cookies","csrf","token","wstg","sess"] |
| tech_stack | [] |
| cwe_ids | ["CWE-200"] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
WSTG-SESS-08
Testing for Session Puzzling (Session Variable Overloading)
Session puzzling occurs when session variables are used for multiple purposes across different application flows. Attackers can manipulate session state in one flow to affect behavior in another, potentially bypassing authentication or authorization controls.
# Track session variables across different flows
# 1. Login flow
# 2. Registration flow
# 3. Password reset flow
# 4. Account verification flow
# Look for common session variables:
# - user_id, email, username
# - authenticated, verified
# - role, permissions
# - step, stage, phase
#!/usr/bin/env python3
import requests
class SessionPuzzlingTester:
def __init__(self, base_url):
self.base_url = base_url
self.findings = []
def test_password_reset_bypass(self):
"""Test if password reset flow can bypass login"""
print()
session = requests.Session()
session.post(,
data={: })
response = session.get()
response.status_code == response.url.lower():
()
.findings.append({
: ,
:
})
():
()
session = requests.Session()
session.post(,
data={: , : })
response = session.get()
response.status_code == :
()
():
()
session = requests.Session()
response = session.post(,
data={: })
response.status_code == :
()
tester = SessionPuzzlingTester()
tester.test_password_reset_bypass()
tester.test_registration_bypass()
tester.test_step_manipulation()
# Use separate namespaces for different flows
session['auth'] = {
'user_id': user.id,
'authenticated': True
}
session['password_reset'] = {
'email': email,
'token': token,
'verified': False
}
# Never share variables between flows
# Clear flow-specific data when flow completes or is abandoned
| Finding | CVSS | Severity |
|---|---|---|
| Auth bypass via flow manipulation | 9.8 | Critical |
| Step bypass in multi-step flow | 7.5 | High |
| CWE ID | Title |
|---|---|
| CWE-488 | Exposure of Data Element to Wrong Session |
[ ] Session variables mapped per flow
[ ] Password reset flow tested
[ ] Registration flow tested
[ ] Multi-step flows tested
[ ] Flow isolation verified
[ ] Findings documented