GHSA-5f5v-5c3v-gw5v: Silverstripe IE requests not properly behaving with rewritehashlinks
6.1
CVSS Score
3.1
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
5/23/2024
Updated
5/23/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| silverstripe/framework | composer | <= 3.0.12 | 3.0.13 |
| silverstripe/framework | composer | >= 3.1.0, <= 3.1.11 | 3.1.12 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from using strip_tags() instead of proper encoding when handling $_SERVER['REQUEST_URI'] in URL rewriting logic. The patch replaces strip_tags() with Convert::raw2att() in both SSViewer::process() and SSTemplateParser's template processing functions. These locations directly output user-controlled URL data without adequate HTML entity encoding, making them the root cause of reflected XSS when Internet Explorer sends unencoded payloads.