Miggo Logo

CVE-2014-5002: lynx doesn't properly sanitize user input and exposes database password to unauthorized users

7.8

CVSS Score
3.0

Basic Information

EPSS Score
0.24123%
Published
1/24/2018
Updated
9/5/2023
KEV Status
No
Technology
TechnologyRuby

Technical Details

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

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from two key points: 1) The password is explicitly added to command-line arguments in Lynx::Command::Basic, as shown in the code snippet from basic.rb. 2) The Run#perform method executes these commands without sanitization. Together, these allow sensitive credentials to appear in process listings. Both functions are directly referenced in advisory code snippets and CVE analysis, confirming their role in the exposure.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T** lynx **m prior to *.*.* *or Ru*y pl***s t** *on*i*ur** p*sswor* on *omm*n* lin*s, w*i** *llows lo**l us*rs to o*t*in s*nsitiv* in*orm*tion *y listin* pro**ss*s. *s o* v*rsion *.*.*, lynx no lon**r supports * `--p*sswor*` option. P*sswor*s *r* on

Reasoning

T** vuln*r**ility st*ms *rom two k*y points: *) T** p*sswor* is *xpli*itly ***** to *omm*n*-lin* *r*um*nts in `Lynx::*omm*n*::**si*`, *s s*own in t** *o** snipp*t *rom `**si*.r*`. *) T** `Run#p*r*orm` m*t*o* *x**ut*s t**s* *omm*n*s wit*out s*nitiz*ti