← Zurück zu PlayCanvas Engine · Projektplanungspaket

Skill · Version 1.0.0

Rechte und Mandantengrenzen prüfen

Prüft den Zugriff auf Spieler-, Gilden- und Projektbereichsdaten. Verfolgt Rechte auch durch verschachtelte IDs, Downloads und Live-Ereignisse, statt ausgeblendeten Bedienelementen zu vertrauen.

authorization-tenant-boundary-review

Agenten mit diesem Skill

Entdecke, wie der Skill hilft

Wann ist der Skill hilfreich?

Nutze diesen Skill bei API-, Hintergrundjob- oder Exportänderungen mit Kundendaten.

Wobei hilft er dir?

  • Kontrolliert verschachtelte Kennungen zusätzlich zum Datensatz in der URL.
  • Untersucht Listen, Caches und Livekanäle auf mandantenfremde Daten.
  • Findet beschreibbare geschützte Felder und unzulässige Antwortdaten.

Das könntest du fragen

Prüfe einen Endpunkt für Gildenlager-Transfers mit einem Mitglied, einem ehemaligen Mitglied und einer Gegenstands-ID aus einer fremden Gilde. Verfolge Datenbankabfragen und Ereignisse: Abgewiesene Transfers dürfen keines der Lager verändern oder private Inhalte der anderen Gilde offenlegen.

Ausführliche Dokumentation

Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.

Details…Weniger anzeigen

Authorization & Tenant Boundary Review

Use this skill during specification and code review to verify that every read, write, list, export, and background operation enforces identity, workspace membership, and action permissions on the server.

Workflow

  1. Check the three-part access control invariant on every entry point:
    • Verify that every new or modified route, RPC handler, or job checks:
      1. Authentication: Who is the caller?
      2. Tenant / Workspace scope: Does the caller belong to the active workspace, and does the target resource belong to that exact same workspace (WHERE id = ? AND workspace_id = ?)?
      3. Action & resource permission: Does the caller's role, ownership, or approval state permit this specific operation on this specific resource state?
  2. Spot Indirect Object Reference (IDOR) and cross-tenant leaks:
    • Check nested IDs in request bodies (projectId, assigneeId, parentId, attachmentId, templateId): never verify only the top-level URL parameter while allowing the body to link or copy a record belonging to another tenant!
    • Check list, search, aggregation, and export queries to ensure every query is scoped by tenant_id / workspace_id.
    • Check cache keys, pub/sub channels, and SSE/WebSocket streams to ensure events for Tenant A are never broadcast to connections held by Tenant B.
  3. Verify field-level and state-dependent restrictions:
    • Confirm that read-only or restricted fields (e.g., role, status, approvedBy, internalNotes, priceOverride) cannot be mass-assigned by standard users on create/update endpoints, and sensitive fields are stripped from unauthorized responses.
    • Route deep policy-engine or cryptographic security questions to the authorization and security specialists.

Enthaltene Dateien 1

  • SKILL.md