# GHSA-qhjc-hg94-245v: eZ Platform Prevent accepting app.php in URL in Platform.sh

> Attackers can bypass caching security rules by accessing the front controller directly on Platform.sh deployments, potentially exposing cached data.

- **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:** 15 May 2024

## What is GHSA-qhjc-hg94-245v?

GHSA-qhjc-hg94-245v is a vulnerability in ezsystems/ezplatform, published on 15 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

The recommended rewrite rules in eZ Platform prevent users from including the front-controller script (normally "app.php") in URLs. This prevents certain vulnerabilities related to caching. However, this is not possible when using eZ Platform Cloud (i.e. running eZ Platform on the Platform.sh cloud service), nor can it be done within the .platform.app.yaml configuration file. Therefore we need to reject such requests in the application itself. This advisory adds the prevention within the front controller script itself.
 
If you use eZ Platform Cloud / Platform.sh we recommend that you install this security update as soon as possible. It is distributed via Composer as ezsystems/ezplatform 1.7.9.1, and 1.13.5.1, and 2.5.4. This is the commit: https://github.com/ezsystems/ezplatform/commit/34ce86722b36a172e587068fe64a84faa7320cc2

## Which versions are affected by GHSA-qhjc-hg94-245v?

6 open source packages ship an affected version, including ezsystems/ezplatform.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `ezsystems/ezplatform` | Packagist | From 1.13.0 | 1.13.5.1 |
| `ezsystems/ezplatform` | Packagist | From 1.13.0 | 1.13.5.1 |
| `ezsystems/ezplatform` | Packagist | From 1.7.0 | 1.7.9.1 |
| `ezsystems/ezplatform` | Packagist | From 1.7.0 | 1.7.9.1 |
| `ezsystems/ezplatform` | Packagist | From 2.5.0 | 2.5.4 |
| `ezsystems/ezplatform` | Packagist | From 2.5.0 | 2.5.4 |

## How do I fix GHSA-qhjc-hg94-245v?

Upgrade ezsystems/ezplatform to a fixed version for your release line: 1.13.5.1, 1.7.9.1 or 2.5.4.

## Is GHSA-qhjc-hg94-245v being exploited?

There is no known exploitation of GHSA-qhjc-hg94-245v in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-qhjc-hg94-245v and fix it if it is affected.

What it is: GHSA-qhjc-hg94-245v is a vulnerability in ezsystems/ezplatform, published on 15 May 2024. 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-qhjc-hg94-245v in the wild and no public exploit code.

Affected packages and fixed versions:
- ezsystems/ezplatform (Packagist): affected from 1.13.0; fixed in 1.13.5.1
- ezsystems/ezplatform (Packagist): affected from 1.13.0; fixed in 1.13.5.1
- ezsystems/ezplatform (Packagist): affected from 1.7.0; fixed in 1.7.9.1
- ezsystems/ezplatform (Packagist): affected from 1.7.0; fixed in 1.7.9.1
- ezsystems/ezplatform (Packagist): affected from 2.5.0; fixed in 2.5.4
- ezsystems/ezplatform (Packagist): affected from 2.5.0; fixed in 2.5.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-qhjc-hg94-245v/ (Markdown: https://insights.sbomify.com/GHSA-qhjc-hg94-245v/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-qhjc-hg94-245v

---
From sbomify Insights: https://insights.sbomify.com/GHSA-qhjc-hg94-245v/
Summaries are generated and may contain mistakes; the official description above is the record.
