WackoPicko/Logic-Flaw

From aldeid
Jump to: navigation, search
You are here:
Logic Flaw

Description

The coupon system suffers from a logic flaw, as a coupon can be applied multiple times to the same order reducing the final price of an order to zero. The coupon in the initial data is SUPERYOU21.

Proof of Concept

Wackopicko-logic-flaw.png Wackopicko-logic-flaw-2.png

How to detect?

  • Unit tests (automatized?)

How to protect against it?

  • Unit tests (automatized?)

Comments

Talk:WackoPicko/Logic-Flaw