Skip to content

Baba01hacker666/logicprobe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogicProbe

LogicProbe Python

LogicProbe is a specialized security tool for discovering business logic vulnerabilities in APIs and web applications. It tests multi-step flows via state machine modeling and automates fuzzing of out-of-order execution paths.

Made by baba01hacker.

Features

  • State Machine Modeling: Define complex multi-step user journeys (e.g., cart -> checkout -> payment).
  • Automated Fuzzing: Automatically permutes the steps to execute them out of order and uncover race conditions, skipped validations, or state vulnerabilities.
  • Cookie & Session Handling: Maintains session state throughout the defined flow automatically.

Installation

You can install LogicProbe directly via pip:

pip install logicprobe

Or from source:

git clone https://github.com/Baba01hacker666/logicprobe.git
cd logicprobe
pip install .

Usage

logicprobe -u <url> -f <state_machine.json> [options]

Options

  • -u, --url: Target base URL (required)
  • -f, --file: State machine JSON definition file (required)
  • --fuzz: Fuzz state transitions (out of order execution)

Example

First, define a state machine in a JSON file (e.g., checkout_flow.json):

{
  "steps": {
    "add_to_cart": {
      "endpoint": "/api/cart",
      "method": "POST",
      "data": {"item_id": 123, "qty": 1},
      "expected_status": 200
    },
    "apply_coupon": {
      "endpoint": "/api/coupon",
      "method": "POST",
      "data": {"code": "FREE100"},
      "expected_status": 200
    },
    "checkout": {
      "endpoint": "/api/checkout",
      "method": "POST",
      "data": {},
      "expected_status": 200
    }
  },
  "flows": [
    ["add_to_cart", "apply_coupon", "checkout"]
  ]
}

Run LogicProbe to execute the defined flow:

logicprobe -u https://api.target.com -f checkout_flow.json

Or fuzz the state transitions to find logic bypasses:

logicprobe -u https://api.target.com -f checkout_flow.json --fuzz

Disclaimer

This tool is for educational purposes and authorized security testing only. The author is not responsible for any misuse.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages