session-context
Skill1 starsChanged 10 days agoMITView on GitHub
Manage parallel authenticated identities (user A / user B / admin / anonymous) for access-control testing. Use before ANY IDOR, broken-access-control, privilege escalation, or multi-tenant testing: registers each identity's cookies/tokens in engine/sessions.py so cross-identity requests are isolated, reproducible, and attributable in evidence. Keywords: session, multi-account, user A user B, cookie jar, token refresh, IDOR setup, horizontal privilege, tenant isolation, diff requests. Do NOT use for single-user authenticated scanning where no cross-identity comparison is needed.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- ryantlee25-droid/tagestheir own version, first seen Nov 8, 2026
- michaelalber/ai-toolkittheir own version, first seen Nov 1, 2026
- Vinay-R/vibe-engineering-templatetheir own version, first seen Nov 1, 2026
- pskoett/pskoett-ai-skillstheir own version, first seen Oct 25, 2026
- sandraschi/onenote-mcptheir own version, first seen Oct 9, 2026
- InsightStudio-2026/agent-assetstheir own version, first seen Jul 1, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- pskoett/pskoett-ai-skills★ 327same name
- paolomoz/skills★ 4same name
- ryantlee25-droid/tages★ 4same name
- michaelalber/ai-toolkit★ 3same name
- InsightStudio-2026/agent-assets★ 1same name
- sandraschi/onenote-mcp★ 1same name
- Vinay-R/vibe-engineering-template★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository124 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ai-agent-reconSkill
- ai-supply-chainSkill
- exfiltration-via-aiSkill
- indirect-injectionSkill
- llm-fuzzingSkill
- prompt-injectionSkill
- rag-poisoningSkill
- tool-abuseSkill
- chain-analysisSkill
- chain-auth-to-takeoverSkill
- chain-customSkill
- chain-graph-walkSkill
- chain-idor-to-mass-dataSkill
- chain-info-to-exploitSkill
- chain-multi-appSkill
- chain-ssrf-to-cloudSkill
- chain-web-to-rceSkill
- chain-xss-to-account-takeoverSkill
- email-securitySkill
- engagement-flowSkill
- finding-disciplineSkill
- http-headers-securitySkill
- oob-interactionsSkill
- opsec-disciplineSkill
- research-firstSkill
- scope-disciplineSkill
- scope-importSkill
- 2fa-bypassSkill
- api-abuseSkill
- auth-bypassSkill
- broken-access-controlSkill
- business-logicSkill
- cache-poisoningSkill
- clickjackingSkill
- corsSkill
- credential-testingSkill
- crlf-injectionSkill
- cryptographic-oracleSkill
- csrfSkill
- css-injectionSkill
- data-exfiltration-testSkill
- deserializationSkill
- email-injectionSkill
- file-uploadSkill
- fuzzingSkill
- graphqlSkill
- grpcSkill
- host-headerSkill
- http-smugglingSkill
- idorSkill
- info-disclosureSkill
- jwtSkill
- lateral-movementSkill
- lfi-rfiSkill
- mass-assignmentSkill
- oauthSkill
- open-redirectSkill
- parameter-pollutionSkill
- password-resetSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 68
Evidence attribution: use curl_flags(name) to build requests so the exact identity used is reproducible from the evidence log.
- Distinctive: line 70
Write actions as B: never modify A's data while authenticated as B without an operator gate — cross-tenant writes can be destructive and …
- Distinctive: line 91
Don't stop at read: If scope allows, test cross-identity UPDATE/DELETE and function-level access (B invoking admin endpoints) — but each …
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Purpose
IDOR and access-control findings live or die on the quality of the identity
setup. Improvised headers cause the two classic failures: (1) sessions get
mixed and a "finding" is actually A reading A's own data, (2) evidence can't
show WHO made the request, so it fails the anti-fabrication bar. This skill
makes identities first-class: one Session per test account in
engine/sessions.py, credentials from engine/vault.py.
Setup protocol (before hunting starts)
- Run an authenticated browser walk before any sweep. For every role × tenant × plan
(free/paid) in scope, log in with the correct isolated profile and manually visit the sensitive
workflows: account/org settings, billing, import/export, uploads, sharing, notifications,
webhooks, integrations, API tokens, legacy routes and administrative functions. Capture the
requests, roles, object IDs and state transitions into
identity-map/state-map. Do not inject payloads into every registration/profile field by default: active probes require the ROE gate, unique markers and reversible fixtures. Missing roles or an incomplete walk are explicit coverage gaps, not evidence that authenticated surface was tested. - Inventory identities from
identity-map: every role the app has (user, premium, org-admin, support, API client...) × every tenant in scope. Record unavailable accounts and plan differences instead of silently reducing the matrix. - Minimum viable pair: two same-role accounts in different data scopes
(user_a, user_b). Without a pair, NO horizontal access-control finding can
be demonstrated —
SessionManager.has_pair()returns False and hunting in these classes must not start. - Register each session with its live material:
Passwords stay in the vault; sessions store only live tokens/cookies.Session(name="user_a", role="tenant1-user", cookies={"session": "..."}, headers={"X-CSRF-Token": "..."}) - Snapshot an anonymous baseline too (name="anon", empty material) — "unauthenticated can reach X" findings need it.
Testing discipline
- Same request, swapped identity. The canonical test: capture A's request to A's own resource, replay verbatim as B (and as anon) changing NOTHING else. Any difference attributable only to identity is the signal.
- Record every cross-identity diff with
SessionManager.record_diff()— status codes + bodies for both identities.data_crossed=Truewith B's data visible in A's response (or vice versa) is the Demonstrated bar for IDOR. - Token expiry mid-engagement: refresh via
update_material(), never by hand-editing commands — stale sessions produce false "access denied" results that look like secure behavior. - Evidence attribution: use
curl_flags(name)to build requests so the exact identity used is reproducible from the evidence log. - Write actions as B: never modify A's data while authenticated as B without an operator gate — cross-tenant writes can be destructive and are usually beyond read-only authorization.
Response-diff interpretation
| A gets own resource | B gets A's resource | Reading |
| 200 + own data | 200 + A's data | IDOR demonstrated |
| 200 + own data | 403/404 | Control present — check method-switching, content-type confusion, parameter pollution before closing |
| 200 + own data | 200 + empty/redacted | Partial — check fields individually (mass-assignment style) |
| 200 | 401 → then 200 after token refresh | Stale session, not a control |
Gotchas
- 404 ≠ 403. Apps hiding existence with 404 for foreign objects is a valid control; don't report "403 missing" — report what the app actually does.
- UUIDs don't fix authorization. Guessable-vs-unguessable IDs change exploitability, not whether the control exists. Test with B's known IDs.
- GraphQL/batch endpoints often check auth on the operation but not per resolved object — diff at the node level, not the query level.
- Don't stop at read. If scope allows, test cross-identity UPDATE/DELETE and function-level access (B invoking admin endpoints) — but each write test is an operator gate.
Chain Anchors
- Horizontal read confirmed → enumerate ID pattern breadth (sequentials? UUIDs in responses elsewhere?) → mass data extraction potential (feeds chain-idor-to-mass-data).
- Horizontal confirmed → test vertical: B (plain user) invoking admin
functions from
identity-map's role inventory. - Any cross-identity write confirmed → operator gate, then assess business-logic impact (changing another tenant's settings, prices, ACLs).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

