bff-parameter-override
Test for hidden middleware/BFF parameters that override backend identity, authorization, or object resolution when supplied by the client
от VigilOSS★ 35 звёзд на GitHub
Установить bff-parameter-override в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
BFF Parameter Override Testing
A BFF, gateway or middleware enriches each request with internal parameters (user identity, tenant, permissions) before forwarding it. The flaw: (1) the middleware sets parameter X from the session, (2) it does not strip a client-supplied X, and (3) the backend trusts X because "it comes from the BFF". The attacker supplies X directly.
When to Activate
- A BFF/API gateway/Express or Next.js middleware proxies to internal services.
- Source analysis or recon shows parameters used in backend calls but absent from client code.
- The middleware sets identity-bearing parameters (
userId,tenantId,accountId) before forwarding, or a response echoes a session-derived value (the mirror parameter: you areabc123and the response says"userId":"abc123", so try supplyinguserId=xyz789).
Mechanics
--technique AUTHfor identity override,IDORfor object override;--probe-kind payloadfor injection,exploitfor a demonstrated override.kali execalso needs--intent,--phase,--timeout; run probes as named identities (idor-testing "Vigil mechanics").- Candidate names come from source-analyzer output, JS API-client wrappers, validation errors,
OpenAPI specs and echoed responses, then the framework wordlist in
agent/references/payloads/bff-override-params.md(Express, Next.js, Nuxt, DRF, Rails, Spring, Kong, Apollo; its "Parameter Location Matrix" gives query/body/header/cookie placement). Load it once a BFF/middleware layer is identified. - Quick-start, highest-yield first regardless of framework:
userId,$id$,notAuthUserId,tenantId,isAdmin,X-User-Id,X-Forwarded-User,X-Tenant-Id,checkPassword,skipValidation. - Inject the wordlist one parameter per request, write one
{url,status,content_length,title}record per parameter (put the parameter name inurl), and rank withvigil assess anomaly-score <file.jsonl> --top 5: the honoured override breaks from the identical-to-baseline cluster. Confirm the winner with the protocol below. - No second account:
vigil assess classify-payload "$MY_USER_ID" --mutationsand use its escalation/neighbor/boundary variants as override values.
Override families
- Identity —
userId/X-User-Id-style values in any location. - Tenant/org — including sigil-wrapped names (
$agencyId$,$originId$) that some middleware use for injected context. - Role and bypass flags —
checkPassword:false,nonAuthorizedUpdate,skipValidation,isAdmin. - Object resolution —
$ownerId$-style overrides, often on export endpoints. - Also vary Content-Type and location for each candidate.
Confirm override vs ignore
- Baseline as user A. 2. Add the parameter pointing at user B. 3. The response shows B's data.
- Remove it; the response reverts. 5. Repeat with a third identity to rule out coincidence.
Impact and severity follow
agent/references/finding-fp-and-severity-gate.mdandagent/rules/hunting.md§2: show what the attacker gains (victim data, write to victim account, cross-tenant read, admin action), not that the parameter is accepted.
What to Record
The parameter name and the location that achieved the override, whose session ran it and whose
data came back, baseline vs override vs revert evidence. Format:
agent/references/runtime-guides/web-finding-recording.md.
Kill Signals
- Every candidate is rejected with a validation error, or responses are identical regardless of value (stripped or ignored).
- The override works only with an admin session: an admin feature, not a vulnerability.
- Content-Type and location variants all produce the same result.
Escalate When
- One override shows another user's data → test every endpoint with it (account-takeover path).
- It works on writes → demonstrate impact with approval.
- It works unauthenticated → any user's data via the parameter alone.
- Several overrides are accepted together → combine identity + tenant + role.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл bff-parameter-override?
Test for hidden middleware/BFF parameters that override backend identity, authorization, or object resolution when supplied by the client
Как установить скилл bff-parameter-override?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bff-parameter-override запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…