Miggo Logo

CVE-2022-3004: YetiForce CRM vulnerable to stored Cross-site Scripting via WorkFlow module

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.24891%
Published
9/21/2022
Updated
1/30/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
yetiforce/yetiforce-crmcomposer<= 6.4.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from two key issues: 1) Inadequate input sanitization when saving workflow task metadata (TaskAjax.php), and 2) Missing output encoding in multiple workflow configuration templates. The patch adds HTML escaping to template variables and implements proper input validation in the PHP controller, confirming these were the vulnerable points. The XSS occurs through workflow configuration fields that stored unescaped user input and later rendered it unsafely.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

Y*ti*or** *RM v*rsions *.*.* *n* prior *r* vuln*r**l* to *ross-sit* s*riptin* vi* t** `Work*low` mo*ul*. * p*t** is *v*il**l* *t *ommit ****************************************.

Reasoning

T** vuln*r**ility st*ms *rom two k*y issu*s: *) In***qu*t* input s*nitiz*tion w**n s*vin* work*low t*sk m*t***t* (T*sk*j*x.p*p), *n* *) Missin* output *n*o*in* in multipl* work*low *on*i*ur*tion t*mpl*t*s. T** p*t** ***s *TML *s**pin* to t*mpl*t* v*r