# GHSA-7vwg-39h8-8qp8: /user/sessions endpoint allows detecting valid accounts

> An unauthenticated attacker can enumerate valid user accounts by analyzing response differences from the /user/sessions endpoint.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 11 Mar 2021

## What is GHSA-7vwg-39h8-8qp8?

GHSA-7vwg-39h8-8qp8 is a vulnerability in ezsystems/ezplatform-rest, published on 11 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

This Security Advisory is about a vulnerability in eZ Platform v1.13, v2.5, and v3.2, and in Ibexa DXP and Ibexa Open Source v3.3. The /user/sessions endpoint can let an attacker detect if a given username or email refers to a valid account. This can be detected through differences in the response data or response time of certain requests. The fix ensures neither attack is possible. The fix is distributed via Composer.

If you come across a security issue in our products, here is how you can report it to us: https://doc.ibexa.co/en/latest/guide/reporting_issues/#toc

## Which versions are affected by GHSA-7vwg-39h8-8qp8?

4 open source packages ship an affected version, including ezsystems/ezplatform-rest.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `ezsystems/ezplatform-rest` | Packagist | From 1.2.0 | 1.2.2.1 |
| `ezsystems/ezplatform-rest` | Packagist | From 1.2.0 | 1.2.2.1 |
| `ezsystems/ezplatform-rest` | Packagist | From 1.3.0 | 1.3.1.1 |
| `ezsystems/ezplatform-rest` | Packagist | From 1.3.0 | 1.3.1.1 |

## How do I fix GHSA-7vwg-39h8-8qp8?

Upgrade ezsystems/ezplatform-rest to a fixed version for your release line: 1.2.2.1 or 1.3.1.1.

## Is GHSA-7vwg-39h8-8qp8 being exploited?

There is no known exploitation of GHSA-7vwg-39h8-8qp8 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-7vwg-39h8-8qp8 and fix it if it is affected.

What it is: GHSA-7vwg-39h8-8qp8 is a vulnerability in ezsystems/ezplatform-rest, published on 11 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-7vwg-39h8-8qp8 in the wild and no public exploit code.

Affected packages and fixed versions:
- ezsystems/ezplatform-rest (Packagist): affected from 1.2.0; fixed in 1.2.2.1
- ezsystems/ezplatform-rest (Packagist): affected from 1.2.0; fixed in 1.2.2.1
- ezsystems/ezplatform-rest (Packagist): affected from 1.3.0; fixed in 1.3.1.1
- ezsystems/ezplatform-rest (Packagist): affected from 1.3.0; fixed in 1.3.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-7vwg-39h8-8qp8/ (Markdown: https://insights.sbomify.com/GHSA-7vwg-39h8-8qp8/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-7vwg-39h8-8qp8

---
From sbomify Insights: https://insights.sbomify.com/GHSA-7vwg-39h8-8qp8/
Summaries are generated and may contain mistakes; the official description above is the record.
