go-vuln-auth-bypass

Audit Go code for authentication and authorization bypass vulnerabilities.

74|10|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/yhy0/ghsa-skill-builder --skill go-vuln-auth-bypass
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-vuln-auth-bypass
Source: https://github.com/yhy0/ghsa-skill-builder/tree/main/vuln-skills/skills/go-vuln-auth-bypass
Command: npx skills add https://github.com/yhy0/ghsa-skill-builder --skill go-vuln-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 and authorization bypass vulnerabilities in Go applications, ensuring secure access control for sensitive resources.

Core Features & Use Cases

  • Detects Auth Bypass Patterns: Analyzes Go code for common vulnerabilities in authentication flows, RBAC policies, JWT/OAuth validation, and Kubernetes admission webhooks.
  • Identifies Weaknesses: Pinpoints insecure configurations in middleware, API proxies, and ServiceAccount permissions.
  • Use Case: Audit a Go-based microservice to ensure that all API endpoints are properly protected by authentication middleware and that RBAC policies are correctly enforced, preventing unauthorized access.

Quick Start

Analyze the Go code in the current directory for authentication bypass vulnerabilities.

Frequently Asked Questions about go-vuln-auth-bypass

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

FAQPage Schema
How do I detect authentication bypass vulnerabilities in Go applications?

You can detect authentication bypass vulnerabilities in Go by auditing code for insecure patterns in authentication flows, RBAC policies, JWT/OAuth validation, and Kubernetes admission webhooks to ensure secure access control.

What causes RBAC authorization bypass in Kubernetes admission webhooks?

RBAC authorization bypass in Kubernetes admission webhooks is often caused by incorrect policy enforcement, insecure ServiceAccount permissions, or improper validation of token claims, allowing unauthorized access to sensitive resources.

How do I audit JWT and OAuth token validation for privilege escalation in Go?

Auditing JWT and OAuth token validation involves analyzing Go middleware to pinpoint insecure configurations and incorrect token claim validation that could lead to privilege escalation or authentication bypass.

Can I scan a Go microservice for CWE-287 and CWE-863 authentication issues?

Yes, you can scan a Go microservice for CWE-287 and CWE-863 vulnerabilities by analyzing all API endpoints to ensure they are properly protected by authentication middleware and that authorization policies are correctly enforced.

What are common insecure patterns in Go API proxy middleware?

Common insecure patterns in Go API proxy middleware include missing authentication checks, improper RBAC policy enforcement, and weak token validation, which can allow attackers to escalate privileges and bypass access controls.

How to prevent unauthorized access to sensitive resources in Go microservices?

Preventing unauthorized access in Go microservices requires auditing authentication flows and authorization policies to identify and fix bypass vulnerabilities, ensuring all endpoints are secured by proper middleware.