GHSA-m5q3-mvcr-gc5m silverstripe/framework BackURL validation bypass with malformed URLs
Not scored
Published
Check this codebase for GHSA-m5q3-mvcr-gc5m and fix it if it is affected.
What it is: GHSA-m5q3-mvcr-gc5m is a vulnerability in silverstripe/framework, published on 27 May 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of GHSA-m5q3-mvcr-gc5m in the wild and no public exploit code.
Affected packages and fixed versions:
- silverstripe/framework (Packagist): affected from 4.0.0-rc1; fixed in 4.0.4
- silverstripe/framework (Packagist): affected from 4.0.0-rc1; fixed in 4.0.4
- silverstripe/framework (Packagist): affected from 4.1.0-rc1; fixed in 4.1.1
- silverstripe/framework (Packagist): affected from 4.1.0-rc1; fixed in 4.1.1
Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.
Reference: https://insights.sbomify.com/GHSA-m5q3-mvcr-gc5m/ (Markdown: https://insights.sbomify.com/GHSA-m5q3-mvcr-gc5m/index.md)
Attackers can bypass offsite redirection protection via malformed URLs, potentially tricking users into entering sensitive data on malicious sites.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is GHSA-m5q3-mvcr-gc5m?
GHSA-m5q3-mvcr-gc5m is a vulnerability in silverstripe/framework, published on 27 May 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A carefully constructed malformed URL can be used to circumvent the offsite redirection protection used on
BackURL parameters. This could lead to users entering sensitive data in malicious websites instead of the intended one.Which versions are affected by GHSA-m5q3-mvcr-gc5m?
4 open source packages ship an affected version, including silverstripe/framework.
| Package | Affected | Fixed in |
|---|---|---|
silverstripe/framework Packagist | From 4.0.0-rc1 | 4.0.4 |
silverstripe/framework Packagist | From 4.0.0-rc1 | 4.0.4 |
silverstripe/framework Packagist | From 4.1.0-rc1 | 4.1.1 |
silverstripe/framework Packagist | From 4.1.0-rc1 | 4.1.1 |
How do I fix GHSA-m5q3-mvcr-gc5m?
Upgrade silverstripe/framework to a fixed version for your release line: 4.0.4 or 4.1.1.
Is GHSA-m5q3-mvcr-gc5m being exploited?
There is no known exploitation of GHSA-m5q3-mvcr-gc5m in the wild and no public exploit code.