Command Palette

Search for a command to run...

Назад к скиллам
скилл № 59724

OAuth Misconfiguration

Detects common OAuth 2.0 implementation mistakes including missing state parameter, open redirect in redirect_uri, and token exposure.

БесплатноБез исполняемых скриптов
zakirkunот zakirkun★ 40 звёзд на GitHub

Установить OAuth Misconfiguration в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

OAuth Misconfiguration

Overview

OAuth 2.0 implementations are prone to several security issues:

  1. Missing state parameter: Makes the OAuth flow vulnerable to CSRF attacks
  2. Open redirect in redirect_uri: Allows token theft by redirecting to attacker-controlled URL
  3. Implicit flow usage: The OAuth implicit flow exposes tokens in URL fragments
  4. Token in URL: Access tokens logged in server logs or browser history
  5. Client secret exposure: OAuth client secrets hardcoded or leaked

Detection Strategy

  • Check authorization URL construction for missing state parameter
  • 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 state parameter
  • Use PKCE for public clients instead of implicit flow
  • Validate redirect_uri against 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), без исполняемых скриптов.

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

Сравнить OAuth Misconfiguration с