# GHSA-w8fq-xgvh-cxc2: Silverstripe Forum Module CSRF Vulnerability

> Attackers can bypass CSRF protections to create members, post spam, or trick moderators into moving topics via crafted URLs.

- **Severity:** Not scored
- **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:** Yes
- **Published:** 23 May 2024

## What is GHSA-w8fq-xgvh-cxc2?

GHSA-w8fq-xgvh-cxc2 is a vulnerability in silverstripe/forum, published on 23 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 number of form actions in the Forum module are directly accessible. A malicious user (e.g. spammer) can use GET requests to create Members and post to forums, bypassing CSRF and anti-spam measures.

Additionally, a forum moderator could be tricked into clicking a specially crafted URL, resulting in a topic being moved.

Thanks to Michael Strong for discovering.

## Which versions are affected by GHSA-w8fq-xgvh-cxc2?

4 open source packages ship an affected version, including silverstripe/forum.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `silverstripe/forum` | Packagist | All versions | 0.6.2 |
| `silverstripe/forum` | Packagist | All versions | 0.6.2 |
| `silverstripe/forum` | Packagist | From 0.7.0 | 0.7.4 |
| `silverstripe/forum` | Packagist | From 0.7.0 | 0.7.4 |

## How do I fix GHSA-w8fq-xgvh-cxc2?

Upgrade silverstripe/forum to a fixed version for your release line: 0.6.2 or 0.7.4.

## Is GHSA-w8fq-xgvh-cxc2 being exploited?

There is no known exploitation of GHSA-w8fq-xgvh-cxc2 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-w8fq-xgvh-cxc2 and fix it if it is affected.

What it is: GHSA-w8fq-xgvh-cxc2 is a vulnerability in silverstripe/forum, published on 23 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-w8fq-xgvh-cxc2 in the wild and no public exploit code.

Affected packages and fixed versions:
- silverstripe/forum (Packagist): affected all versions; fixed in 0.6.2
- silverstripe/forum (Packagist): affected all versions; fixed in 0.6.2
- silverstripe/forum (Packagist): affected from 0.7.0; fixed in 0.7.4
- silverstripe/forum (Packagist): affected from 0.7.0; fixed in 0.7.4

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-w8fq-xgvh-cxc2/ (Markdown: https://insights.sbomify.com/GHSA-w8fq-xgvh-cxc2/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-w8fq-xgvh-cxc2

---
From sbomify Insights: https://insights.sbomify.com/GHSA-w8fq-xgvh-cxc2/
Summaries are generated and may contain mistakes; the official description above is the record.
