Miggo Logo

GHSA-v86m-j5f7-ccwh: Passbolt Api E-mail HTML injection

4.4

CVSS Score
3.1

Basic Information

CVE ID
-
EPSS Score
-
Published
5/20/2024
Updated
5/20/2024
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
passbolt/passbolt_apicomposer< 2.7.02.7.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from improper HTML escaping in email content. The commit shows:

  1. Removal of HTMLPurifier dependency and replacement with htmlspecialchars
  2. Critical change in Purifier::clean() from HTMLPurifier-based sanitization to basic HTML entity encoding
  3. Removal of 'nohtml' parameter in UserAgentsTable.php that previously limited sanitization

These changes indicate the original Purifier::clean() function failed to properly neutralize HTML in user-controlled fields like password descriptions when generating emails, allowing img tag injection. The high confidence comes from the direct correlation between the patch (switching to htmlspecialchars) and the vulnerability type (HTML injection).

Vulnerable functions

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

WAF Protection Rules

WAF Rule

P*ss*olt s*n*s *-m*il to us*rs to w*rn t**m **out *i***r*nt typ* o* *v*nts su** *s t** *r**tion, mo*i*i**tion or **l*tion o* * p*sswor*. T*os* *-m*ils m*y *ont*in us*r-sp**i*i** input, su** *s * p*sswor*’s titl* or **s*ription. P*ss*olt *o*s not *s*

Reasoning

T** vuln*r**ility st*mm** *rom improp*r *TML *s**pin* in *m*il *ont*nt. T** *ommit s*ows: *. R*mov*l o* *TMLPuri*i*r **p*n**n*y *n* r*pl***m*nt wit* *tmlsp**i*l***rs *. *riti**l ***n** in Puri*i*r::*l**n() *rom *TMLPuri*i*r-**s** s*nitiz*tion to **si