API Security Hub 2026

Complete API Security Resource Center Every API security guide on the site: REST and GraphQL testing, authentication and authorization, and the OWASP API Top 10. πŸš€ Core API Vulnerability Prevention API Attack Surface Security API Security Guide OWASP API Top 10, 2026 GraphQL vulnerabilities, AI/MCP risks, comprehensive testing Rate limiting, authentication bypasses, API gateway hardening GraphQL Security Guide Injection techniques, authorization bypasses, introspection attacks Batching, DoS, subscriptions, engine-specific exploitation Modern API Protocols JWT Security Guide Algorithm confusion attacks, signature bypasses, library-specific exploits Token security, cryptographic attacks, secure implementation πŸ” API Authentication & Access Control Authentication Systems Authentication Guide ...

May 5, 2026 Β· 4 min Β· Carl Sampson

Authentication Bypass Security Guide

Authentication Bypass Security Guide πŸ†• Updated September 12, 2026 β€” added the Veeam VSPC chain (CVE-2026-58073 + CVE-2026-58072): a GUID trusted as a credential, and a branch with no else. Authentication bypass vulnerabilities represent critical security flaws that allow attackers to circumvent authentication mechanisms and gain unauthorized access to systems, applications, or user accounts. Introduction Authentication bypass attacks target weaknesses in login mechanisms, session management, and access control implementations. These vulnerabilities can lead to complete account takeover, privilege escalation, and unauthorized access to sensitive data. ...

May 2, 2026 Β· Updated September 12, 2026 Β· 6 min Β· Carl Sampson

API Security Guide 2026

Comprehensive API Security Guide πŸ†• Updated September 12, 2026 β€” added the Flowise case study: AI workflow APIs that execute user code by design, and why insufficient patches deserve a re-test. A practitioner’s reference for API security β€” attack surface, OWASP API Top 10 exploitation, authentication and authorization bypasses, GraphQL-specific attacks, rate limit evasion, API gateway hardening, open banking compliance, AI/MCP risks, real-world chains, and detection/prevention. Table of Contents Fundamentals API Styles: REST vs GraphQL vs gRPC vs SOAP API Recon & Attack Surface Discovery OWASP API Security Top 10 (2023) OWASP Web Top 10 (2025) β€” API Implications BOLA / IDOR Deep Dive Broken Authentication & Token Attacks BOPLA: Mass Assignment & Excessive Data Exposure Broken Function Level Authorization (BFLA) Unrestricted Resource Consumption & Rate Limit Bypasses Business Flow Abuse SSRF in APIs Security Misconfiguration & Improper Inventory API Gateway Security Unsafe Consumption of Third-Party APIs GraphQL-Specific Attacks JWT & OAuth 2.0 Exploitation Injection in APIs HTTP Request Smuggling in API Gateways API Key & Secret Leak Detection AI, MCP & Agentic API Risks Open Banking & E-Commerce API Security Real-World CVEs & Breach Chains Tools & Automation Detection & Prevention Testing Checklist 1. Fundamentals APIs now account for ~83% of web traffic and over 71% of all web requests. The average cost of an API breach is $4.88M (T-Mobile 2023, 37M users affected). API attacks increased 10-13x in 2025 (Indusface), 57% of organizations experienced at least one API-related data breach in the past two years (Traceable AI), and 97% of API vulnerabilities can be exploited with a single request (Wallarm 2026). Unlike traditional web apps, APIs expose more endpoints, lack a constraining UI, and are often protected by weaker compensating controls because developers assume machine-to-machine trust. ...

April 10, 2026 Β· Updated September 12, 2026 Β· 33 min Β· Carl Sampson

Comprehensive Authentication Guide

Comprehensive Authentication Guide πŸ†• Updated September 12, 2026 β€” added the NetScaler SAML canonicalization overflow (CVE-2026-8452) and why pre-signature-verification parsing is every SAML SP’s unauthenticated attack surface. A practitioner’s reference for authentication security β€” protocols, mechanisms, vulnerabilities, exploitation techniques, and defense strategies. Covers traditional and modern authentication methods from enterprise to web applications. Table of Contents Fundamentals Password-Based Authentication Multi-Factor Authentication (MFA) OAuth 2.0 & OpenID Connect SAML & Enterprise SSO Modern Authentication (FIDO, WebAuthn, Passkeys) JWT Security Session Management Authentication Bypasses & Attacks Implementation Security Testing & Verification 1. Fundamentals Core Concepts Term Definition Security Impact Authentication (AuthN) Process of verifying identity claims Foundation of access control Digital Identity Unique representation in online context Basis for authorization decisions Identity Proofing Binding digital identity to real person KYC/compliance requirement Session Management Maintaining state across requests Critical for web application security Non-Human Identity (NHI) API keys, OAuth tokens, service accounts Path of least resistance for attackers β€” not bound by MFA or IP restrictions Authentication Factors Factor Type Examples Vulnerability Classes Something You Know Passwords, PINs, security questions Brute force, credential stuffing, social engineering Something You Have Hardware tokens, mobile apps, SMS SIM swapping, device theft, malware Something You Are Biometrics (fingerprint, face, voice) Spoofing, template theft, privacy concerns 2. Password-Based Authentication Password Strength Requirements Requirement NIST SP800-63B Standard Security Rationale Minimum Length 8 chars (with MFA), 14+ (without MFA) Increases brute force difficulty Maximum Length At least 64 characters Prevents artificial length limits Character Composition No mandatory complexity rules Avoid predictable patterns Dictionary Checking Block common passwords Prevent credential stuffing Common Password Vulnerabilities ATTACK VECTORS: β”œβ”€β”€ Credential Stuffing β”‚ β”œβ”€β”€ Breach databases (HaveIBeenPwned) β”‚ β”œβ”€β”€ Password reuse across sites β”‚ └── Automated login attempts β”œβ”€β”€ Brute Force Attacks β”‚ β”œβ”€β”€ Dictionary attacks β”‚ β”œβ”€β”€ Rule-based mutations β”‚ └── Hybrid attacks └── Password Reset Flows β”œβ”€β”€ Weak reset tokens β”œβ”€β”€ Token reuse vulnerabilities β”œβ”€β”€ Account enumeration └── Email interception for ATO (Post SMTP CVE-2025-24000 β€” Subscriber+ reads reset emails via broken REST API permissions) Secure Implementation Patterns Security Control Implementation Bypass Techniques Rate Limiting Progressive delays, account lockouts IP rotation, distributed attacks CAPTCHA Human verification challenges OCR bypass, solving services Password Hashing bcrypt, scrypt, Argon2 Rainbow tables (if salts weak) Breach Detection Monitor for credential exposure Private/corporate breaches REST API Auth Role-based permission callbacks (not just is_user_logged_in()) Subscriber-level access to admin endpoints 3. Multi-Factor Authentication (MFA) MFA Implementation Types Method Security Level User Experience Attack Vectors SMS OTP Low High friction SIM swapping, SS7 attacks TOTP Apps Medium Medium friction Device compromise, social engineering Push Notifications Medium-High Low friction MFA fatigue, device takeover Hardware Tokens High Medium friction Physical theft, supply chain Biometrics High Low friction Spoofing, template extraction Passwordless (FastPass/FIDO2) Very High Low friction Device compromise (Okta Terrify), endpoint proxy MFA Bypass Techniques BYPASS METHODS: β”œβ”€β”€ Social Engineering β”‚ β”œβ”€β”€ MFA fatigue (push spam) β”‚ β”œβ”€β”€ Vishing (voice phishing) β”‚ └── SIM swapping β”œβ”€β”€ Technical Bypasses β”‚ β”œβ”€β”€ Session fixation β”‚ β”œβ”€β”€ MFA enrollment abuse β”‚ β”œβ”€β”€ Backup code exploitation β”‚ └── Race conditions β”œβ”€β”€ Adversary-in-the-Middle (AiTM) β”‚ β”œβ”€β”€ Real-time phishing (Evilginx, Tycoon 2FA, Evilproxy, Mamba 2FA) β”‚ β”œβ”€β”€ Session cookie interception and replay β”‚ β”œβ”€β”€ Token replay β”‚ └── Cloudflare Workers as transparent proxy (IOActive research) β”œβ”€β”€ Authentication Downgrade Attacks β”‚ β”œβ”€β”€ JSON config manipulation β€” flip FIDO2 isDefault:false, push isDefault:true β”‚ β”œβ”€β”€ CSS injection to hide passkey/FIDO2 UI options β”‚ β”œβ”€β”€ Browser User-Agent spoofing (e.g., Safari on Windows) to trigger Entra ID fallback β”‚ └── WebAuthn immediate mediation abuse for non-WebAuthn fallback steering β”œβ”€β”€ Conditional Access Policy (CAP) Bypasses β”‚ β”œβ”€β”€ IP whitelisting bypass (VPN, Zscaler pivoting) β”‚ β”œβ”€β”€ Geo-whitelisting bypass (VPN/location spoofing) β”‚ β”œβ”€β”€ User-agent whitelisting bypass (custom UA strings) β”‚ β”œβ”€β”€ Cloud tooling bypasses (ROADtools, BloodHound, AADInternals) β”‚ └── Non-MFA hosts (legacy protocols, password reset portals) └── Machine-Based Attacks β”œβ”€β”€ Session token theft from memory (Cobalt Strike BOFs) β”œβ”€β”€ OTP keylogging / seed QR code theft β”œβ”€β”€ Okta Terrify β€” extract passwordless keys from compromised endpoint └── Stolen/unlocked devices Phishing-as-a-Service (PhaaS) Kits Kit Technique Detection Evasion Evilginx Open-source reverse proxy AiTM Default LetsEncrypt certs, 8-char URL paths, TLS fingerprint differs from target Tycoon 2FA PhaaS MFA bypass Dynamically obfuscated JS, phishing URL gating, IP/UA filtering Evilproxy PhaaS MFA bypass Templates for popular targets, bot detection Mamba 2FA PhaaS MFA bypass Anti-crawler delays, redirect to benign pages Cloudflare Workers Serverless transparent proxy (IOActive PoC) Zero forensic footprint, trusted CDN IPs, ephemeral execution Implementation Security Checklist Control Verification Common Mistakes Enrollment Security Verify primary auth before MFA setup Allow MFA changes without re-auth Backup Mechanisms Secure recovery codes Weak backup code generation Device Trust Risk-based authentication Unlimited device trust Rate Limiting Throttle MFA attempts No limits on failed attempts Eliminate Fallbacks No SMS/TOTP/push if FIDO2 deployed Mixed-mode policies allow downgrade Audit MFA Logs Detect new MFA device registration post-compromise Missing persistence detection 4. OAuth 2.0 & OpenID Connect OAuth 2.0 Flow Types Grant Type Use Case Security Considerations Authorization Code Server-side web apps Most secure, requires PKCE for SPAs Authorization Code + PKCE Public clients, SPAs Prevents authorization code injection Implicit Legacy SPAs Deprecated, token in URL fragment Client Credentials Service-to-service No user context, secure storage critical Device Code IoT/limited input devices Phishing risk during user approval Common OAuth Vulnerabilities Vulnerability Attack Vector Mitigation Authorization Code Interception Redirect URI manipulation Strict redirect validation State Parameter Missing CSRF attacks Cryptographically strong state Scope Escalation Privilege elevation Minimal scope principle Client Impersonation Stolen client credentials Client authentication OAuth Parameter Injection Inject arbitrary params (redirect_uri, scope) into auth flow Input sanitization (Okta auth0/nextjs-auth0 vuln) Implicit Flow Token Theft Access token in URL fragment, referer leakage Migrate to Authorization Code + PKCE CSRF via Missing State Attacker injects own authorization code into victim session State parameter enforcement Redirect URI Bypass Pattern-matching bypass (%2f%2f, %5c%5c, %3F, %23, port injection) Exact string match, no wildcards Credential Leakage via Referer Authorization code or token in Referer header to third-party content No third-party resources on callback pages Non-Human Identity Abuse Compromised OAuth tokens with overly broad scopes, null expiry refresh tokens Scope minimization, token rotation, vendor vetting Dynamic Client Registration SSRF (PortSwigger Research) SSRF ATTACK SURFACE VIA DYNAMIC REGISTRATION: β”œβ”€β”€ logo_uri β€” Server fetches logo image β†’ SSRF on /authorize β”œβ”€β”€ jwks_uri β€” Server fetches JWK set for client_assertion validation β†’ Blind SSRF β”œβ”€β”€ sector_identifier_uri β€” Server fetches redirect_uri list β†’ SSRF on registration or authorization β”œβ”€β”€ request_uris β€” Whitelisted request_uri values β†’ SSRF on /authorize via request_uri param β”‚ (Even without dynamic registration, test request_uri on /authorize directly) └── Discovery: GET /.well-known/openid-configuration β”œβ”€β”€ registration_endpoint β”œβ”€β”€ request_uri_parameter_supported └── require_request_uri_registration CVE-2021-26715: SSRF via logo_uri in MITREid Connect ForgeRock OpenAM: SSRF via request_uri + redirect_uri Session Poisoning OAuth Security Implementation SECURITY CONTROLS: β”œβ”€β”€ Authorization Server β”‚ β”œβ”€β”€ Strict redirect URI validation (exact match, no wildcards) β”‚ β”œβ”€β”€ State parameter enforcement β”‚ β”œβ”€β”€ PKCE for public clients β”‚ β”œβ”€β”€ Short-lived authorization codes (single use) β”‚ └── Disable Dynamic Client Registration if not needed β”œβ”€β”€ Resource Server β”‚ β”œβ”€β”€ Token introspection β”‚ β”œβ”€β”€ Scope validation β”‚ β”œβ”€β”€ Audience verification β”‚ └── Rate limiting β”œβ”€β”€ Client Application β”‚ β”œβ”€β”€ Secure token storage (never in browser history/URL) β”‚ β”œβ”€β”€ Token refresh handling with expiry β”‚ β”œβ”€β”€ CSRF protection via state parameter β”‚ β”œβ”€β”€ PKCE code_verifier/code_challenge β”‚ └── TLS everywhere └── Non-Human Identity Governance β”œβ”€β”€ Monitor OAuth app registrations and consent grants β”œβ”€β”€ Audit token scopes vs actual usage β”œβ”€β”€ Enforce refresh token expiry (no null expiry) └── Vendor breach monitoring for third-party OAuth apps OAuth Pentesting Checklist (Authorization Code Grant) Test Case What to Check Impact Redirect URI Validation Change redirect_uri to attacker domain, test pattern bypasses Token/code theft State Parameter Remove or reuse state, test CSRF Account hijacking Code Reuse Replay authorization code Session hijacking Client Secret Exposure Check JS source, mobile app binaries Full OAuth flow compromise Scope Manipulation Request elevated scopes Privilege escalation Token in URL/History Check if access_token appears in URL fragment or browser history Token theft Referer Leakage Check callback pages for third-party resource loads Code/token leakage request_uri SSRF Supply attacker URL in request_uri param on /authorize Server-side request forgery 5. SAML & Enterprise SSO SAML Attack Surface Component Attack Vectors Security Controls Identity Provider (IdP) XML signature bypass, SAML injection Strong XML validation, signature verification Service Provider (SP) Assertion replay, audience restriction bypass, parser differential exploitation Strict temporal/audience checks, single XML parser SAML Assertions XXE, signature wrapping (XSW), attribute pollution Secure XML parsing, validation Metadata Metadata spoofing, certificate substitution Out-of-band verification FortiCloud SSO Crafted SAMLResponse to /remote/saml/login (CVE-2025-59718) Disable FortiCloud SSO until patched Citrix NetScaler SAML canonicalization overflow (CVE-2026-8452) Citrix published CTX696604 on 30 June 2026. CVSS 8.8, unauthenticated, and it belongs in a SAML guide rather than a memory-safety one because of where in the SAML flow it sits. ...

April 10, 2026 Β· Updated September 12, 2026 Β· 21 min Β· Carl Sampson

Comprehensive JWT Security Guide

Comprehensive JWT Security Guide πŸ†• Updated September 12, 2026 β€” added the PAN-OS/Panorama CAS algorithm-confusion bypass (CVE-2026-0265) and how a config precondition leaking pre-auth turns patching into a real priority list. A practitioner’s reference for JSON Web Token security – vulnerabilities, exploitation techniques, attack vectors, implementation flaws, and defense strategies. Covers algorithm confusion, signature bypass, header injection, key confusion, library-specific issues, cryptographic attacks, attack chaining, and secure implementation patterns. πŸ§ͺ Try it live: Practice these attacks hands-on in the JWT Attack Playground β€” forge alg:none, RS256β†’HS256 algorithm confusion, and weak-secret tokens, then fire them at a configurable verifier to see what a vulnerable vs. secure server does. Runs 100% in your browser. ...

April 10, 2026 Β· Updated September 12, 2026 Β· 17 min Β· Carl Sampson

Comprehensive Session Management Security Guide

Comprehensive Session Management Security Guide πŸ†• Updated September 12, 2026 β€” added the four conditions for CSRF and why cookie flags, not tokens, decide your session threat model. A practitioner’s reference for session management security β€” session attacks, cookie security, token vulnerabilities, exploitation techniques, and defense strategies. Covers traditional and modern session management from web applications to APIs. πŸ”₯ Latest Update: May 2, 2026 - Enhanced with 2026 critical session CVEs including CVE-2026-5707 (AWS RES Root RCE), CVE-2025-55315 (ASP.NET Core), CVE-2025-24813 (Apache Tomcat) covering cloud and enterprise session vulnerabilities. ...

May 2, 2026 Β· Updated September 12, 2026 Β· 6 min Β· Carl Sampson

Don't Trust JWT Headers: Algorithm Confusion Attacks Explained

I keep encountering this JWT vulnerability in Python codebases, and it’s particularly concerning because it’s so easily overlooked. Developers implement what appears to be proper JWT authenticationβ€”they validate signatures, check expiration, handle all the edge cases. But there’s one subtle mistake that can completely undermine the entire security model. The issue is trusting the JWT’s own header to determine how to verify it. This is similar to asking someone to specify which method you should use to verify their identity. ...

May 27, 2026 Β· 7 min Β· Carl Sampson