Miggo Logo

CVE-2019-1010306: Slanger Arbitrary command execution

9.8

CVSS Score
3.0

Basic Information

EPSS Score
0.82054%
Published
7/16/2019
Updated
8/29/2023
KEV Status
No
Technology
TechnologyRuby

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
slangerrubygems< 0.6.10.6.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from using Oj.load() instead of Oj.strict_load() for deserialization. The commit 5267b45 shows replacements of load() with strict_load() across multiple files handling message processing. Oj.load() permits deserialization of arbitrary Ruby objects, enabling RCE through crafted payloads. Each identified function directly processes untrusted input using unsafe deserialization, making them clear exploitation points. The CWE-502 mapping and the nature of the fixes confirm these as vulnerable points.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

Sl*n**r *.*.* is *****t** *y R*mot* *o** *x**ution (R**). T** imp**t is * r*mot* *tt**k*r **n *x**ut* *r*itr*ry *omm*n*s *y s*n*in* * *r**t** r*qu*st to t** s*rv*r. T** *ompon*nt is M*ss*** **n*l*r & r*qu*st v*li**tor. T** *tt**k v**tor is R*mot* un*

Reasoning

T** vuln*r**ility st*ms *rom usin* Oj.lo**() inst*** o* Oj.stri*t_lo**() *or **s*ri*liz*tion. T** *ommit ******* s*ows r*pl***m*nts o* lo**() wit* stri*t_lo**() **ross multipl* *il*s **n*lin* m*ss*** pro**ssin*. Oj.lo**() p*rmits **s*ri*liz*tion o* *