Miggo Logo

CVE-2020-11883: Diavante vue-storefront-api and storefront-api disclose stack trace

5.3

CVSS Score
3.1

Basic Information

EPSS Score
0.6665%
Published
5/24/2022
Updated
8/22/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
storefront-apinpm< 1.0.0-rc31.0.0-rc3
vue-storefront-apinpm< 1.12.01.12.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability manifests in error handling middleware that constructs HTTP responses containing error details. Key evidence comes from:

  1. vue-storefront-api's error middleware in src/index.ts directly interpolated stack traces into responses
  2. storefront-api's catchInvalidRequests in lib/error.ts handled error formatting Both functions contained logic to expose stack traces through the server.showErrorStack configuration flag. The patches modified these functions to sanitize stack output and set showErrorStack default to false, indicating these were the vectors for information disclosure.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

In *iv*nt* vu*-stor**ront-*pi t*rou** *.**.* *n* stor**ront-*pi t*rou** *.*-r*.*, *s us** in Vu*Stor**ront PW*, un*xp**t** *TTP r*qu*sts l*** to *n *x**ption t**t *is*los*s t** *rror st**k tr***, wit* **solut* *il* p*t*s *n* No**.js mo*ul* n*m*s.

Reasoning

T** vuln*r**ility m*ni**sts in *rror **n*lin* mi**l*w*r* t**t *onstru*ts *TTP r*spons*s *ont*inin* *rror **t*ils. K*y *vi**n** *om*s *rom: *. vu*-stor**ront-*pi's *rror mi**l*w*r* in sr*/in**x.ts *ir**tly int*rpol*t** st**k tr***s into r*spons*s *. s