Broken Function Level Authorization
Detects API endpoints that perform privileged operations without verifying the caller has the required role or permission.
от zakirkun★ 40 звёзд на GitHub
Установить Broken Function Level Authorization в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Broken Function Level Authorization
Overview
BFLA (API Security Top 10 #5) occurs when an API does not properly enforce which users can access which functions. Common manifestations:
- Admin-only endpoints accessible to regular users
- HTTP method confusion:
GET /api/usersis protected,DELETE /api/users/{id}is not - Predictable admin paths:
/api/v1/admin/userswith no role check
Detection Strategy
- Route handlers for admin operations (delete, ban, role-change) without role middleware
- Missing
isAdmin,hasRole(), or@PreAuthorizechecks on privileged endpoints
Remediation
Apply role-based access control at every sensitive endpoint.
Vulnerable:
app.delete('/api/admin/users/:id', authenticate, async (req, res) => {
// No admin role check!
await User.findByIdAndDelete(req.params.id);
});
Safe:
app.delete('/api/admin/users/:id', authenticate, requireRole('admin'), async (req, res) => {
await User.findByIdAndDelete(req.params.id);
});
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- patterns.yaml
FAQ
Что делает скилл Broken Function Level Authorization?
Detects API endpoints that perform privileged operations without verifying the caller has the required role or permission.
Как установить скилл Broken Function Level Authorization?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Broken Function Level Authorization запускает скрипты?
Нет, скилл состоит только из инструкций (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…