Miggo Logo

CVE-2014-3744: Directory Traversal in st

7.5

CVSS Score
3.0

Basic Information

EPSS Score
0.97907%
Published
8/31/2020
Updated
1/9/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

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

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper path sanitization when handling URL-encoded characters. The advisory explicitly states that pre-0.2.5 versions didn't replace URL-encoded '../' sequences (%2e%2e%2f). The core path resolution logic in st.js would be responsible for decoding URLs and preventing traversal. The fix in 0.2.5 specifically addresses this by replacing all '/../' patterns regardless of encoding, indicating the path processing function was the vulnerable component. Though exact function names aren't visible in provided resources, the path resolution mechanism is clearly implicated by the nature of the vulnerability and the described fix.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

V*rsions o* `st` prior to *.*.* *r* *****t** *y * *ir**tory tr*v*rs*l vuln*r**ility. Vuln*r**l* v*rsions **il to prop*rly **n*l* URL *n*o*** *ots, w*i** **us** `%**` to ** int*rpr*t** *s `.` *y t** *il*syst*m, r*sultin* t** pot*nti*l *or *n *tt**k*r

Reasoning

T** vuln*r**ility st*ms *rom improp*r p*t* s*nitiz*tion w**n **n*lin* URL-*n*o*** ***r**t*rs. T** **visory *xpli*itly st*t*s t**t pr*-*.*.* v*rsions *i*n't r*pl*** URL-*n*o*** '../' s*qu*n**s (%**%**%**). T** *or* p*t* r*solution lo*i* in `st.js` wou