用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill wstg-sess-08命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
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
正在显示 SKILL.md
基于 SOC 职业分类
| 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