Skip to content

Critical 2.6 Vulnerability : Order placed even if user doesn't have sufficient funds #3035

@devshaaran

Description

@devshaaran

In case if the user does not have enough funds to buy, the order is still processed.

This bug only occurs when you buy and not when you sell.

raise ::Account::AccountError unless member_balance >= locked

Example :
I have a balance of 2 USDT and I want to buy 1 ETH which costs 3000 USDT. The order is processed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions