Перейти к содержанию
Skillpedia
Безопасность48k · #5166

marketplace-rbac-audit

Что он делает

Этот инструмент проверяет, правильно ли работают права доступа на маркетплейсе. Он следит за тем, чтобы просматривать или изменять конкретную информацию, например заказы или данные клиентов, могли только нужные люди.

Когда использовать

  • ✓Когда вы проверяете правила доступа на сайте с несколькими продавцами.
  • ✓Когда добавляете или меняете то, кто что может делать в системе.
  • ✓Когда расследуете, не получил ли кто-то доступ к информации, которую не должен был видеть.

Ссылка на скилл

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/marketplace-rbac-audit/SKILL.md

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/marketplace-rbac-audit/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Проверь, может ли курьер увидеть адрес другого покупателя.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Инструмент сравнивает заданные правила доступа с тем, что реально происходит в системе. Он анализирует, кто и к чему может получить доступ, в какой ситуации и через какие части системы.

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с GitHub.

Marketplace RBAC Audit

Overview

Audit authorization in marketplaces where customers, vendors, fulfillment staff, couriers, support agents, administrators, and service accounts act on shared orders and resources. Build an explicit policy matrix, trace enforcement from route to data access, and verify both allowed and denied behavior without treating hidden UI controls as security.

This is a read-only review by default. It does not grant permission to scan a live service, create test accounts, alter permissions, or access another person's data.

When to Use This Skill

  • Reviewing authorization in a marketplace, delivery platform, multi-vendor store, or fulfillment system.
  • Adding or changing roles, administrative powers, ownership rules, or order-state transitions.
  • Investigating whether one customer, vendor, courier, hub, or tenant can access another party's resources.
  • Preparing negative authorization tests before release or after an access-control incident.

Do not use this skill for authentication design alone, generic multi-tenant architecture, offensive ID enumeration, or penetration testing outside an explicitly authorized test environment.

Establish the Authorization Contract

Record the actual actors and resources instead of assuming standard role names.

For each actor, capture:

  • identity source and role-assignment authority;
  • tenant, organization, store, hub, region, or assignment scope;
  • resource relationships such as owner, seller, assigned courier, servicing hub, or support case;
  • permitted operations and state transitions;
  • emergency, support, delegated, and service-account access;
  • audit-log and approval requirements for privileged actions.

Separate these policy dimensions:

  1. Role — what this actor type may generally do.
  2. Relationship — which specific object the actor may access.
  3. Tenant or operational scope — where the permission applies.
  4. Resource state — whether the operation is valid now.
  5. Field scope — which attributes may be viewed or changed.

A matching role is not sufficient when ownership, assignment, tenant, state, or field rules fail.

Build the Policy Matrix

Create one row per meaningful actor-resource-operation combination.

Field Required content
Actor Role plus relevant tenant/store/hub/assignment
Resource Order, product, inventory, payout, address, profile, delivery, refund, or admin object
Operation List, view, create, update, delete, assign, transition, refund, export, or impersonate
Relationship Owner, seller, assignee, servicing hub, same tenant, or none
Required state Order/payment/delivery state in which the operation is allowed
Field scope Allowed and prohibited fields
Expected result Allow or deny, including disclosure policy such as 403 versus 404
Enforcement point Route, policy layer, service, query predicate, database policy, or queue consumer
Evidence Code reference, test ID, request ID, or audit event

Mark an undocumented decision as UNDEFINED; do not invent a permission merely because current code allows it.

Audit Workflow

1. Inventory Entry Points

Map HTTP routes, GraphQL operations, server actions, background jobs, webhooks, file downloads, exports, administrative tools, and queue consumers that access marketplace resources. Include bulk operations and alternate HTTP methods.

2. Trace Identity and Scope

For every entry point, trace how the authenticated principal becomes an authorization context. Confirm that role, tenant, store, hub, assignment, and delegation claims come from a trusted server-side source and are current enough for the operation.

Do not accept actor, tenant, owner, vendor, hub, courier, price, payout, or privilege fields from the request merely because they are present in a signed-in session.

3. Trace Object Authorization

Follow the resource identifier from request to data access. Prefer a scoped query or atomic mutation that includes every required predicate:

resource_id
+ tenant/store/hub scope
+ owner/seller/assignee relationship
+ permitted current state
= authorized object or no match

A separate “check then update” sequence may race with reassignment or state changes. Record where a transaction, conditional update, row-level lock, or equivalent consistency control is required.

4. Check Field-Level Authorization

…

Частые вопросы

Меняет ли этот инструмент чьи-либо права?

Нет, этот инструмент предназначен только для проверки и аудита существующих прав. Он ничего не меняет в системе.

Что такое RBAC?

RBAC расшифровывается как Role-Based Access Control, то есть «контроль доступа на основе ролей». Права выдаются в зависимости от роли человека, например покупатель, продавец или курьер.

Что такое «переходы между состояниями заказа»?

Это разные этапы, через которые проходит заказ, например «ожидает», «отправлен», «доставлен». Инструмент проверяет, кто может перевести заказ с одного этапа на другой.

Подробности

Оригинальное описание автора

Audit multi-role marketplace authorization across roles, resource ownership, tenant boundaries, and order-state transitions; use when access rules need evidence, not UI assumptions.

repo: sickn33/agentic-awesome-skills

Популярность

Звёзды на GitHub
48k
Место в рейтинге
#5166
Лицензия
MIT
Обновлён
15.10.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы