/security-agent-skills:hunting-price-and-coupon-manipulationfrom security-agent-skills
Hunts for price, quantity, and coupon manipulation vulnerabilities in e-commerce checkout flows. Tests whether the server trusts client-supplied prices, quantities, or discounts instead of recomputing totals from a trusted catalog.
Ships in security-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The amount a customer is charged is computed from item prices, quantities, and discounts, and the only safe place to do that computation is the server, from data the buyer cannot change. When any input to the total is taken from the client, the buyer sets the price. The failures are direct. A price, quantity, or line total sent in the request and trusted, rather than recomputed from a server-side catalog, lets a buyer name their own price. A negative quantity subtracts from the total, and a quantity large enough to overflow the arithmetic wraps it to a small or negative number. A discount or coupon that stacks with itself or others, is reused past its intended limit, or applies to items it was never meant for, cuts the total below its floor. And a total computed in the browser and accepted at checkout hands the whole calculation to the attacker. The hunt is to find any input to the charged total that the buyer controls. You hunt this by altering prices, quantities, and coupons in the request and seeing what the server charges.
Test pricing and promotions only against applications you own or are authorized to assess, on non-production or sandbox checkout paths. Manipulating totals and placing orders exercises real commerce, so use test accounts and sandbox payment and never complete a real underpriced purchase or consume real promotions. If you can't name the authorization, stop.
Establish the server-side price of truth first. Confirm the total should be recomputed on the server from a trusted catalog of prices, with server-validated quantities and server-enforced coupon rules, and that no price, line total, or discount from the client is trusted. This is the false-positive killer: a checkout that recomputes every amount server-side from the catalog, bounds quantities, and enforces coupon scope, stacking, and reuse limits is correct. Name the price of truth, then test each input.
Test client-supplied prices and line totals. Alter the unit price, line total, or item price in the cart or checkout request and confirm the server ignores it and recomputes from the catalog. A checkout that charges the price sent in the request lets the buyer set any amount, the most direct form of the bug.
Test quantity manipulation. Submit a negative quantity, a zero, and a very large quantity, and confirm the server validates the range and recomputes the total safely. A negative quantity that subtracts from the total, or a large one that overflows and wraps the arithmetic, drives the charge down or negative.
Test coupon scope, stacking, and reuse. Apply a coupon to items it should not cover, stack it with itself or with other discounts, and redeem it more times than allowed. Confirm the server enforces the coupon's item scope, its stacking rules, its per-account and global reuse limits, and its validity window. A coupon that stacks or reuses past its limit cuts the total below its intended floor.
Check where the total is computed and trusted. Determine whether the final charged total is computed server-side at checkout or taken from a client-supplied total. Confirm the amount charged is the server's recomputation, and that a total or discount posted from the browser is discarded. A client-computed total accepted at checkout is a full bypass of pricing.
Confirm and record. Confirm by completing a sandbox checkout at a manipulated total, a client-set price, a negative or overflowing quantity, an out-of-scope or stacked coupon, or a client-supplied total, without completing a real underpriced order. Kill the lead if the server recomputes every amount from the trusted catalog, bounds quantities, and enforces coupon scope, stacking, and reuse. Record the client-supplied price, quantity, or coupon, the discounted or negative charged total, and the client-trusted amount or unenforced coupon rule.
Confirm. The checkout request includes each line item's unit price, and the server sums the submitted prices to compute the charge. Editing the unit price of a high-value item to a token amount before submitting results in an order charged at that amount, because the server trusts the client-supplied price rather than recomputing from the catalog. Confirmed price manipulation via client-supplied unit price,
high, remediation = recompute every line total and the order total server-side from the trusted catalog, ignore any price or total in the request, and validate quantities.Kill. The server recomputes each line total and the order total from the catalog price for the item id, ignoring any price, line total, or total in the request; it bounds quantities to a valid positive range with overflow-safe arithmetic; and it enforces each coupon's item scope, stacking rules, per-account and global reuse limits, and validity window. An altered price, a negative or huge quantity, and a stacked or out-of-scope coupon all fail to lower the charge. Killed,
kill_reason= "all amounts recomputed server-side from the trusted catalog with bounded quantities and enforced coupon rules; no client-supplied price, quantity, or coupon changes the charged total."
You need every input to the charged total, item prices, quantities, line totals, coupons, and the final total, and whether each is recomputed server-side from a trusted catalog or taken from the request. On sandbox checkout paths, alter each price and line total, submit negative and overflowing quantities, and stack, misscope, and reuse coupons. Reading the pricing code shows where the total comes from; a sandbox order at a manipulated total shows whether the server owns the computation.
auditing-payment-state-machine-and-idempotency - manipulating the total here and driving the payment state
there are the two halves of paying less or nothing; audit them together.auditing-payment-callback-and-amount-integrity - the callback reconciles the paid amount against the order;
this skill is where that order total is set, so a manipulated total undermines that reconciliation.hunting-broken-object-level-authorization - applying another account's coupon or cart is an
object-authorization failure on the promotion or cart; the two meet at the identifier.hunting-mass-assignment-and-property-authz - a client that can set a price or discount field it should not
is a mass-assignment of the pricing inputs; the same over-trust of request fields underlies both.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub unboundcompute/security-agent-skills --plugin security-agent-skills194 skills in this plugin
/adjudicating-dependency-cve-reachabilityDecide whether a CVE in a dependency actually exposes your application before you scramble to patch: is the vulnerable function on a real call path from your code, do the trigger preconditions hold, and can an attacker control the input that reaches it. Use when an advisory, SCA scan, or dependency bot flags a CVE and you must separate a genuine exposure from unreachable noise, or justify why you are or are not affected. Covers pinning the vulnerable symbol, call-path reachability, precondition checks, and taint from your entry points./adjudicating-taint-pathsDecide whether a whitebox lead is a real bug by tracing taint from an untrusted source to a dangerous sink and confirming every hop against live source. Use after a scanner, a candidate list, or your own reading surfaces a "this looks dangerous" sink (SQL exec, system/exec, file open, deserialize, template render, redirect target, memcpy) and you must decide whether attacker- controlled input actually reaches it - or kill the lead with evidence. Covers forward and reverse taint, witness paths, sanitizer analysis, and the evidence rules that separate a finding from a false positive.Other plugins' skills for the same job