Miggo Logo

CVE-2019-13146: field_test gem contains injection vulnerability

5.3

CVSS Score
3.0

Basic Information

EPSS Score
0.48989%
Published
7/16/2019
Updated
3/3/2025
KEV Status
No
Technology
TechnologyRuby

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
field_testrubygems= 0.3.00.3.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the field_test method returning arbitrary user-controlled values without validation. Multiple sources explicitly show vulnerable patterns like Page.where("key = '#{landing_page}'") where landing_page comes from field_test. The method's inability to restrict output to predefined variants makes it the clear injection vector. Though exact implementation details aren't shown in diffs, the method's documented behavior and usage examples in advisories directly implicate it.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T** *i*l*_t*st **m *.*.* *or Ru*y **s unv*li**t** input. * m*t*o* **ll t**t is *xp**t** to r*turn * v*lu* *rom * **rt*in s*t o* inputs **n ** m*** to r*turn *ny input, w*i** **n ** **n**rous **p*n*in* on *ow *ppli**tions us* it. I* *n *ppli**tion tr*

Reasoning

T** vuln*r**ility st*ms *rom t** *i*l*_t*st m*t*o* r*turnin* *r*itr*ry us*r-*ontroll** v*lu*s wit*out v*li**tion. Multipl* sour**s *xpli*itly s*ow vuln*r**l* p*tt*rns lik* `P***.w**r*("k*y = '#{l*n*in*_p***}'")` w**r* l*n*in*_p*** *om*s *rom *i*l*_t*