OAuth Misconfiguration
Detects common OAuth 2.0 implementation mistakes including missing state parameter, open redirect in redirect_uri, and token exposure.
от zakirkun★ 40 звёзд на GitHub
Установить OAuth Misconfiguration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
OAuth Misconfiguration
Overview
OAuth 2.0 implementations are prone to several security issues:
- Missing
stateparameter: Makes the OAuth flow vulnerable to CSRF attacks - Open redirect in
redirect_uri: Allows token theft by redirecting to attacker-controlled URL - Implicit flow usage: The OAuth implicit flow exposes tokens in URL fragments
- Token in URL: Access tokens logged in server logs or browser history
- Client secret exposure: OAuth client secrets hardcoded or leaked
Detection Strategy
- Check authorization URL construction for missing
stateparameter - Detect use of deprecated implicit grant type (
response_type=token) - Find hardcoded client secrets
- Detect redirect_uri validation that allows wildcards or subdomains
Remediation
- Always include a cryptographically random
stateparameter - Use PKCE for public clients instead of implicit flow
- Validate
redirect_uriagainst an exact allowlist - Store client secrets in environment variables, never in code
Vulnerable:
auth_url = f"https://auth.example.com/oauth/authorize?client_id={CLIENT_ID}&redirect_uri={uri}&response_type=token"
Safe:
import secrets
state = secrets.token_urlsafe(32)
session['oauth_state'] = state
auth_url = f"https://auth.example.com/oauth/authorize?client_id={CLIENT_ID}&redirect_uri={FIXED_URI}&response_type=code&state={state}"
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- patterns.yaml
FAQ
Что делает скилл OAuth Misconfiguration?
Detects common OAuth 2.0 implementation mistakes including missing state parameter, open redirect in redirect_uri, and token exposure.
Как установить скилл OAuth Misconfiguration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл OAuth Misconfiguration запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…