Miggo Logo

CVE-2018-15747: glot-code-runner RCE

9.8

CVSS Score
3.0

Basic Information

EPSS Score
0.85114%
Published
5/24/2022
Updated
7/19/2023
KEV Status
No
Technology
TechnologyGo

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
github.com/prasmussen/glot-code-runnergo<= 2018-05-19

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from executing untrusted Python code containing os.system calls without validation. While exact implementation details aren't shown, the core issue exists in the code execution handler that processes the 'content' field from JSON input. The Go code runner's main execution function would be responsible for this unsafe code execution pattern, as evidenced by the PoC demonstrating direct command execution through Python's os.system.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T** ****ult *on*i*ur*tion o* *lot-www t*rou** ****-**-** *llows r*mot* *tt**k*rs to *x**ut* *r*itr*ry *o** ****us* *lot-*o**-runn*r supports os.syst*m wit*in * "pyt*on" "*il*s" "*ont*nt" JSON *il*.

Reasoning

T** vuln*r**ility st*ms *rom *x**utin* untrust** Pyt*on *o** *ont*inin* `os.syst*m` **lls wit*out v*li**tion. W*il* *x**t impl*m*nt*tion **t*ils *r*n't s*own, t** *or* issu* *xists in t** *o** *x**ution **n*l*r t**t pro**ss*s t** '*ont*nt' *i*l* *rom