ADVISORIES

GitHub Advisory Database

GHSA-5j4h-4f72-qpm6

Bagisto has Normal & Blind SSTI from low-privilege user when ordering product

Details

Summary

SSTI when normal customer orders any product in add address step can inject value run in admin view.

Details

As normal user

  • Go to http://127.0.0.1:8000/
  • Add order to cart and continue to checkout
  • In step of add address inject this value {{7*7}} in any input

As admin

  • Go to http://127.0.0.1:8000/admin/sales/orders
  • And notice the vlaue appear in admin view 49

As normal user

  • Go to add address normally http://127.0.0.1:8000/customer/account/addresses/create and inject {{7*7}} on it and will notice it appear 49

<img width="1868" height="868" alt="image" src="https://github.com/user-attachments/assets/279627e9-6361-4d39-a500-0fc20e163d25" />

PoC

  • Video attached with the report: https://github.com/user-attachments/assets/a814b30c-a3e2-4a40-8644-336e21e60d0d

Impact

  • Can lead to RCE

Affected packages

EcosystemPackageAffected versions
Packagistbagisto/bagisto
All versions before 2.3.10 (fixed in 2.3.10)

References