VDB
Sign up
MEDIUM5.4

GHSA-wppf-gqj5-fc4f

REDAXO allows Arbitrary File Upload in the mediapool page

Quick fix

GHSA-wppf-gqj5-fc4f — redaxo/source: upgrade to the fixed version with the command below.

composer require redaxo/source:^5.18.3

Details

### Summary An arbitrary file upload vulnerability was identified in the redaxo. This flaw permits users to upload malicious files, which can lead to JavaScript code execution and distribute malware.

### Details On the latest version of Redaxo, v5.18.2, the mediapool/media page is vulnerable to arbitrary file upload.

### PoC 1. Log in to the portal then navigate to `Mediapool`. 2. Upload a png file (ex: poc.png)

![1](https://github.com/user-attachments/assets/e9165434-d2cd-437b-87a3-f9527d4f3070)

3. Intercept the upload HTTP request on burp suite and change `filename: poc.1html`, `Content-Type:image/html` and insert the malicious html code. (ex: `<IFRAME SRC="javascript:alert(1);"></IFRAME>`)

![2](https://github.com/user-attachments/assets/f8da0e6b-e807-46be-a867-dc31b1e13e57)

4. Forward the request.

5. Navigate to the file.

![3](https://github.com/user-attachments/assets/4c44c5cf-8467-452d-b249-cf2d72e0d328) ![4](https://github.com/user-attachments/assets/29db80e3-a5b9-4354-a292-c1ae7189931a)

### Impact Exploiting an arbitrary file upload vulnerability enables attackers to execute malicious code on a server.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/redaxo/source
Introduced in: 0Fixed in: 5.18.3
Fixcomposer require redaxo/source:^5.18.3

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:composer/redaxo/source"]}'