vuln-patterns-auth-bypass

Analyze Python authentication flows for bypass vulnerabilities across CWE-285, CWE-287, and CWE-863.

74|10|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/yhy0/ghsa-skill-builder --skill vuln-patterns-auth-bypass
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vuln-patterns-auth-bypass
Source: https://github.com/yhy0/ghsa-skill-builder/tree/main/vuln-skills/skills/vuln-patterns-auth-bypass
Command: npx skills add https://github.com/yhy0/ghsa-skill-builder --skill vuln-patterns-auth-bypass

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps identify and prevent authentication bypass vulnerabilities in Python code, ensuring that only authorized users can access sensitive resources and perform privileged actions.

Core Features & Use Cases

  • Detects Bypass Patterns: Identifies common flaws in authentication flows, permission checks, access control logic, JWT/token validation, and SSO/OAuth implementations.
  • Covers CWEs: Addresses vulnerabilities related to CWE-285 (Improper Authorization), CWE-287 (Improper Authentication), and CWE-863 (Incorrectly Implemented Security Check).
  • Use Case: When auditing a web application's user management API, this Skill can pinpoint instances where an attacker might exploit weak session handling or improper permission checks to gain unauthorized access to administrative functions.

Quick Start

Analyze the provided Python code for authentication bypass vulnerabilities.

Frequently Asked Questions about vuln-patterns-auth-bypass

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect authentication bypass vulnerabilities in Python code?

Detect authentication bypass vulnerabilities in Python code by analyzing authentication flows, permission checks, and access control logic. This process identifies improper JWT verification, SSO/OAuth flaws, and decorator-based protection bypasses.

What are common CWEs associated with authorization bypass in web applications?

Common CWEs for authorization bypass include CWE-285 for improper authorization, CWE-287 for improper authentication, and CWE-863 for incorrectly implemented security checks. These target flaws in access control logic and token validation.

How do I audit OAuth and SSO implementations for permission check flaws?

Audit OAuth and SSO implementations for permission check flaws by analyzing authentication flows and access control logic in Python code. This identifies weak session handling and improper permission checks that allow unauthorized access to privileged actions.

Can I identify improper JWT validation and token verification issues automatically?

Identify improper JWT validation and token verification issues automatically by scanning Python code for authentication bypass patterns. The analysis targets incorrect token validation implementations that expose sensitive resources.

What is the best way to prevent decorator-based protection bypass in Python APIs?

Prevent decorator-based protection bypass in Python APIs by analyzing access control logic to ensure decorators properly enforce permission checks. This identifies gaps where attackers exploit weak session handling to reach administrative functions.