Skip to content

GHSA-5f5v-5c3v-gw5v Silverstripe IE requests not properly behaving with rewritehashlinks

MediumCVSS 6.1
Published
Updated
Exploit status
No public exploit known
Technology
PHP

Description

Non IE browsers don’t appear to be affected, but I haven’t tested a wide range of browsers to be sure

Requests that come through from IE do NOT appear to encode all entities in the URL string, meaning they are inserted into output content directly by SSViewer::process() when rewriting hashlinks, as it directly outputs $_SERVER[‘REQUEST_URI’]

Example IE8 request
127.0.0.1 - - [18/Jun/2014:14:13:42 +1000] “GET /site/cars/brands/toyota?one=1\”onmouseover=\”alert(‘things’);\” HTTP/1.1” 200

Example FF request
127.0.0.1 - - [18/Jun/2014:14:14:22 +1000] “GET /site/cars/brands/toyota?one=1%22onmouseover=%22alert(%27things%27);%22 HTTP/1.1” 200

This causes any hash anchor to have the JS code inserted into the page as-is.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
silverstripe/framework(Packagist) < 3.0.13; <= 3.0.12; = 2.4.9; = 2.4.10 +50 more 3.0.13, 3.1.12 Fixed

Affected products

ProductAffected versionsFixed in
silverstripe/framework(Packagist) < 3.0.13 3.0.13
silverstripe/framework(Packagist) = 2.4.10 No fix listed
silverstripe/framework(Packagist) = 2.4.11 No fix listed
silverstripe/framework(Packagist) = 2.4.12 No fix listed
silverstripe/framework(Packagist) = 2.4.13 No fix listed
silverstripe/framework(Packagist) = 2.4.9 No fix listed
silverstripe/framework(Packagist) = 2.5.0 No fix listed
silverstripe/framework(Packagist) = 3.0.10 No fix listed
silverstripe/framework(Packagist) = 3.0.10-rc1 No fix listed
silverstripe/framework(Packagist) = 3.0.11 No fix listed
silverstripe/framework(Packagist) = 3.0.11-rc1 No fix listed
silverstripe/framework(Packagist) = 3.0.12 No fix listed
silverstripe/framework(Packagist) = 3.0.2.1 No fix listed
silverstripe/framework(Packagist) = 3.0.3 No fix listed
silverstripe/framework(Packagist) = 3.0.3-rc1 No fix listed
silverstripe/framework(Packagist) = 3.0.3-rc2 No fix listed
silverstripe/framework(Packagist) = 3.0.4 No fix listed
silverstripe/framework(Packagist) = 3.0.5 No fix listed
silverstripe/framework(Packagist) = 3.0.6 No fix listed
silverstripe/framework(Packagist) = 3.0.6-rc1 No fix listed
silverstripe/framework(Packagist) = 3.0.6-rc2 No fix listed
silverstripe/framework(Packagist) = 3.0.7 No fix listed
silverstripe/framework(Packagist) = 3.0.7-rc1 No fix listed
silverstripe/framework(Packagist) = 3.0.8 No fix listed
silverstripe/framework(Packagist) = 3.0.9 No fix listed
Show 29 more
ProductAffected versionsFixed in
silverstripe/framework(Packagist) = 3.0.9-rc1 No fix listed
silverstripe/framework(Packagist) >= 3.1.0, < 3.1.12 3.1.12
silverstripe/framework(Packagist) = 3.1.0 No fix listed
silverstripe/framework(Packagist) = 3.1.1 No fix listed
silverstripe/framework(Packagist) = 3.1.10 No fix listed
silverstripe/framework(Packagist) = 3.1.10-rc1 No fix listed
silverstripe/framework(Packagist) = 3.1.10-rc2 No fix listed
silverstripe/framework(Packagist) = 3.1.11 No fix listed
silverstripe/framework(Packagist) = 3.1.11-rc1 No fix listed
silverstripe/framework(Packagist) = 3.1.2 No fix listed
silverstripe/framework(Packagist) = 3.1.2-rc1 No fix listed
silverstripe/framework(Packagist) = 3.1.3 No fix listed
silverstripe/framework(Packagist) = 3.1.3-rc1 No fix listed
silverstripe/framework(Packagist) = 3.1.3-rc2 No fix listed
silverstripe/framework(Packagist) = 3.1.4 No fix listed
silverstripe/framework(Packagist) = 3.1.4-rc1 No fix listed
silverstripe/framework(Packagist) = 3.1.5 No fix listed
silverstripe/framework(Packagist) = 3.1.5-rc1 No fix listed
silverstripe/framework(Packagist) = 3.1.6 No fix listed
silverstripe/framework(Packagist) = 3.1.6-rc1 No fix listed
silverstripe/framework(Packagist) = 3.1.6-rc2 No fix listed
silverstripe/framework(Packagist) = 3.1.6-rc3 No fix listed
silverstripe/framework(Packagist) = 3.1.7 No fix listed
silverstripe/framework(Packagist) = 3.1.7-rc1 No fix listed
silverstripe/framework(Packagist) = 3.1.8 No fix listed
silverstripe/framework(Packagist) = 3.1.9 No fix listed
silverstripe/framework(Packagist) = 3.1.9-rc1 No fix listed
silverstripe/framework(Packagist) <= 3.0.12 No fix listed
silverstripe/framework(Packagist) >= 3.1.0, <= 3.1.11 No fix listed

References