ADVISORIES

GitHub Advisory Database

GHSA-mqhg-v22x-pqj8

Bagisto is vulnerable to SSTI via name parameters provided by non-admin low-privilege users

Details

Summary

SSTI is possible via first name and last name parameters provided by lowest-privileged users.

Details

  • Go to http://127.0.0.1:8000/ and login or signup
  • Go to http://127.0.0.1:8000/customer/account/profile
  • Now edit the first name and last name to {{7*7}}
  • Notice it appears as 49

POC

  • Video attached with the report: https://github.com/user-attachments/assets/f93932b5-2a57-4f34-897e-4151a5168912

Impact

This can lead to RCE, command injection.

Affected packages

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

References