testing-ecommerce-and-payment-logic

Tests business-logic flaws in e-commerce checkout, payment, voucher, and refund flows.

954|172|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill testing-ecommerce-and-payment-logic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-ecommerce-and-payment-logic
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/web-application-security/testing-ecommerce-and-payment-logic
Command: npx skills add https://github.com/xalgord/xalgorix --skill testing-ecommerce-and-payment-logic

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

E-commerce and payment applications often trust client-supplied prices, quantities, discounts, and order states, creating business-logic vulnerabilities that automated scanners miss and that cause direct financial loss.

Core Features & Use Cases

  • Price and Amount Tampering: Tests whether servers recompute catalog prices or honor client-supplied values in cart, checkout, and gateway hand-off requests.
  • Voucher and Refund Abuse: Covers voucher reuse, stacking via parameter pollution, code brute-forcing, negative quantities, and over-refund manipulation.
  • IDOR and State Attacks: Validates object-level authorization on carts, addresses, and orders, plus forged payment callbacks and payment-method downgrades.
  • Use Case: During an authorized pentest of an online shop, intercept the checkout payment request, lower the amount field, and confirm whether the gateway charges the tampered value while the order ships at full price.

Quick Start

Use this skill to test the checkout and payment flow of the authorized target shop for price tampering, voucher abuse, and order IDOR.

Frequently Asked Questions about testing-ecommerce-and-payment-logic

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

FAQPage Schema
How do I test for price tampering in an e-commerce checkout?

Intercept add-to-cart and checkout requests with Burp Suite and lower client-supplied price or amount fields, then check whether the order total and gateway charge honor the tampered value instead of the catalog price. Also test the gateway hand-off separately, since the app and gateway amounts can disagree.

How to test voucher and gift-card systems for abuse?

Test voucher reuse after order completion, stacking via parameter pollution like code=X&code=X, brute-forcing short or sequential codes with ffuf, and tampering discount value or percent fields directly. For gift cards, attempt concurrent redemption to double-spend the balance.

What is a negative quantity attack in shopping carts?

A negative quantity attack sets quantity to a negative value like -3, causing buggy total calculations to subtract from the grand total and produce credits or free goods. Also test very large quantities for integer overflow and fractional values the backend may mishandle.

Can I test payment flows without real charges?

Yes, payment testing must use gateway sandbox or test modes with test card numbers such as 4111 1111 1111 1111, ensuring no real charges occur. Written authorization and confirmation that the environment is non-production are required prerequisites.

What payment callback vulnerabilities should I check?

Check whether the payment success callback verifies its signature server-side by replaying or forging a callback with status=success on an unpaid order. If the order is marked paid without verification, attackers can fulfill orders without genuine payment.

Why does cart or order IDOR matter in e-commerce testing?

Cart, address, and order IDOR lets one user read or modify another user's shopping objects via predictable IDs, exposing PII and enabling shipment redirection. Test with two accounts and check whether address fields also allow stored XSS that fires in admin dashboards.