business-logic

Identify business logic vulnerabilities in application workflows through state and invariant analysis.

846|152|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill business-logic-xalgord
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: business-logic
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/vulnerabilities/business-logic
Command: npx skills add https://github.com/xalgord/xalgorix --skill business-logic-xalgord

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Business logic flaws allow attackers to abuse intended workflows and state transitions to cause financial loss, privilege retention, or invariant violations that are not detectable by payload-based scanners. This Skill provides a structured approach to identify where application workflows trust the client, rely on fragile sequencing, or allow inconsistent cross-service assumptions.

Core Features & Use Cases

  • Workflow mapping: Enumerate states, transitions, tokens, and hidden endpoints to build an actor × action × resource matrix.
  • State and timing attacks: Test replay, out-of-order calls, race conditions, and end-of-period edge cases to reveal invariant breaks.
  • Cross-service and idempotency checks: Validate that queues, cron jobs, webhooks, and microservices enforce the same business invariants.
  • Use Case: Map a payment authorization → capture → refund flow in an e-commerce platform to detect double-refunds, price swaps after approval, or idempotency key misuse.

Quick Start

Map a critical workflow (for example checkout or subscription upgrade), enumerate its states and tokens, then attempt step reordering, replay, and concurrent requests to demonstrate an invariant violation.

Frequently Asked Questions about business-logic

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

FAQPage Schema
How do I test business logic vulnerabilities in payment workflows?

To detect business logic vulnerabilities in e-commerce systems, map the checkout state machine and test for concurrency failures or idempotency key misuse during cart updates. This reveals workflow abuses where the application incorrectly trusts client-side sequencing.

What are common state machine abuse vulnerabilities in financial applications?

Common state machine abuse vulnerabilities in financial applications include replaying transitions, out-of-order step execution, and concurrency failures. Attackers exploit these fragile sequencing assumptions to trigger double-refunds or bypass payment authorization invariants.

How do I check for idempotency failures and cross-service invariant violations?

Check for idempotency failures and cross-service invariant violations by replaying concurrent requests against queues, cron jobs, and webhooks. Validate that all microservices enforce the same business invariants to prevent inconsistent state transitions and duplicate operations.

Can conventional vulnerability scanners find business logic flaws in e-commerce carts?

Conventional vulnerability scanners cannot find business logic flaws in e-commerce carts because they rely on payload injection. Detecting state machine abuse or sequencing issues requires mapping application workflows and validating cross-service invariants manually.