跳到正文
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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/marketplace-rbac-audit/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“检查一下配送员能否看到其他客户的收货地址。”

每周 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
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能