Broken Object Level Authorization (BOLA / IDOR)
Detects API endpoints that use user-supplied IDs to access objects without verifying the requesting user owns or has permission to access that object.
от zakirkun★ 40 звёзд на GitHub
Установить Broken Object Level Authorization (BOLA / IDOR) в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Broken Object Level Authorization (BOLA / IDOR)
Overview
BOLA (also called IDOR — Insecure Direct Object Reference) is the #1 API vulnerability. It occurs when an API endpoint uses a user-supplied ID (from URL, query parameter, or request body) to access an object without verifying that the current user is authorized to access that specific object.
Example: GET /api/v1/users/{userId}/orders — if userId from the path is trusted without checking that the authenticated user matches userId, any user can access any other user's orders.
Detection Strategy
- Route handlers that use URL path parameters (
:id,:userId) to query the database directly without an ownership check - No comparison between the authenticated user's ID and the requested resource's owner ID
- Use of
findById()orgetById()without a tenant/user scope filter
Remediation
Always scope database queries to the authenticated user's context.
Vulnerable (Express.js):
app.get('/api/orders/:orderId', auth, async (req, res) => {
const order = await Order.findById(req.params.orderId); // No ownership check!
res.json(order);
});
Safe:
app.get('/api/orders/:orderId', auth, async (req, res) => {
const order = await Order.findOne({ _id: req.params.orderId, userId: req.user.id });
if (!order) return res.status(404).json({ error: 'Not found' });
res.json(order);
});
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- patterns.yaml
FAQ
Что делает скилл Broken Object Level Authorization (BOLA / IDOR)?
Detects API endpoints that use user-supplied IDs to access objects without verifying the requesting user owns or has permission to access that object.
Как установить скилл Broken Object Level Authorization (BOLA / IDOR)?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Broken Object Level Authorization (BOLA / IDOR) запускает скрипты?
Нет, скилл состоит только из инструкций (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…