Miggo Logo

CVE-2019-14933: Bagisto CSRF Vulnerability

8.8

CVSS Score
3.0

Basic Information

EPSS Score
0.34931%
Published
5/24/2022
Updated
4/25/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
bagisto/bagistocomposer< 0.1.50.1.5

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from admin panel endpoints (e.g., /admin/customers/delete/{id}) using GET requests for destructive operations. Based on the GitHub issue #750 and PR #808 descriptions:

  1. Multiple admin delete endpoints were vulnerable to CSRF via GET requests
  2. The fix involved changing HTTP methods from GET to POST and implementing CSRF protection
  3. The pattern affects multiple controllers (Customers, Reviews, Groups, etc.)
  4. Laravel's default CSRF protection middleware requires either:
    • POST/PUT/PATCH/DELETE requests
    • CSRF token verification Both were missing in vulnerable versions for these admin routes

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

***isto ***or* *.*.* *llows *SR* un**r `/**min` URIs.

Reasoning

T** vuln*r**ility st*ms *rom **min p*n*l *n*points (*.*., /**min/*ustom*rs/**l*t*/{i*}) usin* **T r*qu*sts *or **stru*tiv* op*r*tions. **s** on t** *it*u* issu* #*** *n* PR #*** **s*riptions: *. Multipl* **min **l*t* *n*points w*r* vuln*r**l* to *SR*