business-logic-vuln

Identify business logic vulnerabilities in workflows and state transitions.

5|1|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/Yliken/ai4 --skill business-logic-vuln-yliken
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: business-logic-vuln
Source: https://github.com/Yliken/ai4/tree/main/skills/business-logic-vuln
Command: npx skills add https://github.com/Yliken/ai4 --skill business-logic-vuln-yliken

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify and map vulnerabilities that live in business logic and state machines, where checks and transitions, not input parsing, create risk.

Core Features & Use Cases

  • Focus on workflows involving coupons, inventory, payments, approvals, quotas, invites, trials, or state transitions.
  • Detect check-then-act windows, ordering dependencies, and cross-step authorization gaps.
  • If a business chain relies on API calls, uploads, or object permissions, map gaps to the appropriate sub-skill.

Quick Start

Identify a target workflow and map critical state transitions to uncover where checks occur and what business conditions are validated at each step.

Frequently Asked Questions about business-logic-vuln

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

FAQPage Schema
How do I identify business logic vulnerabilities in multi-step workflows?

Identify business logic vulnerabilities by mapping critical state transitions and analyzing where checks occur versus when actions execute. This exposes check-then-act timing windows, ordering dependencies, and cross-step authorization gaps in workflows like payments, approvals, and quotas.

What is a check-then-act race condition in state transitions?

A check-then-act race condition in state transitions occurs when a business validation passes but the corresponding action executes later, allowing abuse during the timing gap. This is common in couponing, inventory, and trial flows where multi-step processes lack atomic validation.

How do I map authorization gaps across multi-step approval workflows?

Map authorization gaps across multi-step approval workflows by tracing state transitions and cross-step validation logic. Analyzing each step reveals where object permissions or API calls lack sufficient checks, exposing vulnerabilities that allow users to bypass quotas or approvals.

Can I use this to detect state machine vulnerabilities in payment flows?

Yes, you can detect state machine vulnerabilities in payment flows by mapping the workflow's state transitions. It targets multi-step processes like payments, inventory, and invites, analyzing business conditions validated at each transition to uncover ordering dependencies and authorization gaps.

What is the best way to analyze cross-step validation in trial flows?

The best way to analyze cross-step validation in trial flows is mapping the workflow to uncover where business conditions are validated and where check-then-act windows or authorization gaps exist. This drives targeted risk assessment and remediation for multi-step processes.

When should I not use business logic vulnerability mapping for API workflows?

You should not rely solely on business logic vulnerability mapping when a workflow's risk depends on API parsing or input validation. If the business chain relies on object permissions or API calls, map those gaps to appropriate sub-skills instead of analyzing state transitions.