Skip to content

There is a payment logic vulnerability in src/main/java/org/zdd/bookstore/web/controller/CartController.java and src/main/java/org/zdd/bookstore/web/controller/OrderController.java #20

Description

@liyunqiangs

The addToCart method in CartController.java does not perform a positive value check on the parameter buyNum.

Image

The orderInfo method in OrderController.java only performed a non-negative check on the total amount of the shopping cart.

Image

Therefore, it is possible to add items with negative prices to the shopping cart as long as the total amount is greater than 0.This has led to significant property losses.
The specific operation is as follows:

Image Image Image Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions