zerodom_add_identity
Register a second user identity or auth header for cross-tenant IDOR testing. Set it up from a Chrome profile endpoint, live tab cookies, or a storage_state file, then compare responses.
Instructions
Register a second identity (e.g. user B) for cross-tenant IDOR testing.
Source of the session (pick one):
endpoint— a SECOND real Chrome profile, already logged in as B, reached over its own relay:endpoint="ws://127.0.0.1:8766/cdp/local". Each request leaves through that profile's real Chrome (real fingerprint, its own live login) — no snapshot, no re-login, no blank browser. Set it up once:zerodom relay --port 8766, load the extension in profile B and click Connect (it auto-finds a free port — no URL to paste), log in. The port it lands on shows in that profile's popup; pass its/cdp/endpoint here. Its active tab must be on the target origin (same-origin, like 'live'). Best for a WAF target where two real profiles beat cookie-swap.from_live=True— snapshot the CURRENT logged-in tab's cookies. Log in as B, call this, then log the tab back into A. No file to manage.storage_state— a Playwright storage_state JSON file (cookies + origins).neither — anonymous (only useful with
headerfor token auth).
header adds one extra request header ('Authorization: Bearer …'); call
again to add more. The current logged-in session is always available as
identity 'live' without registering.
via picks the transport:
"auto" (default) — if a browser is attached, send with the REAL Chrome fingerprint by swapping this identity's cookies into the live tab per request (passes a fingerprinting WAF like DataDome); else Playwright's HTTP client.
"live" — force the real-fingerprint swap path.
"http" — force Playwright's APIRequestContext (cookies yes, Chrome's TLS fingerprint no). For CI/headless, or a cross-origin URL the in-page fetch can't reach (no CORS).
Once two identities exist, zerodom_compare_identities(url) fetches the same URL as each and flags a byte-identical response — the cross-tenant IDOR tell.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "zerodom_add_identity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| via | No | auto | |
| name | Yes | ||
| header | No | ||
| endpoint | No | ||
| from_live | No | ||
| storage_state | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |