4.9medium
Strapi allows Server-Side Request Forgery in Webhook function
- Severity
- 4.9medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.60% (higher than 49% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-v8wj-f5c7-pvxf
Description
Strapi is an open-source content management system. Prior to version 4.25.2, inputting a local domain into the Webhooks URL field leads to the application fetching itself, resulting in a server side request forgery (SSRF). This issue has been patched in version 4.25.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| strapi strapi | < 4.25.2, before 4.25.2 | CVE List, NVD |
| @strapi/admin (npm) | before 4.25.2 | GitHub Advisory Database |
All scores
| GitHub_M | 4.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 4.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
Strapi is an open-source content management system. Prior to version 4.25.2, inputting a local domain into the Webhooks URL field leads to the application fetching itself, resulting in a server side request forgery (SSRF). This issue has been patched in version 4.25.2.
GitHub Advisory Database
Description
In Strapi latest version, at function Settings -> Webhooks, the application allows us to input a URL in order to create a Webook connection. However, we can input into this field the local domains such as localhost, 127.0.0.1, 0.0.0.0,.... in order to make the Application fetching into the internal itself, which causes the vulnerability Server - Side Request Forgery (SSRF).
Payloads
http://127.0.0.1:80->The Port is not openhttp://127.0.0.1:1337->The Port which Strapi is running on
Steps to Reproduce
- First of all, let's input the URL
http://127.0.0.1:80into theURLfield, and click "Save".
CleanShot 2024-06-04 at 22 45 17@2x
- Next, use the "Trigger" function and use Burp Suite to capture the request / response
CleanShot 2024-06-04 at 22 47 50@2x
- The server return
request to http://127.0.0.1/ failed, reason: connect ECONNREFUSED 127.0.0.1:80, BECAUSE thePort 80is not open, since we are running Strapi onPort 1337, let's change the URL we input above intohttp://127.0.0.1:1337
CleanShot 2024-06-04 at 22 50 13@2x
- Continue to click the "Trigger" function, use Burp to capture the request / response
CleanShot 2024-06-04 at 22 53 25@2x
- The server returns
Method Not Allowed, which means that there actually is aPort 1337running the machine.
PoC
Here is the Poc Video, please check:
https://drive.google.com/file/d/1EvVp9lMpYnGLmUyr16gQ_2RetI-GqYjV/view?usp=sharing
Impact
- If there is a real server running Strapi with many ports open, by using this SSRF vulnerability, the attacker can brute-force through all 65535 ports to know what ports are open.
NVD (es)
Strapi es un sistema de gestión de contenido de código abierto. Antes de la versión 4.25.2, introducir un dominio local en el campo URL de Webhooks provocaba que la aplicación se recuperara a sí misma, lo que resultaba en un server side request forgery (SSRF). Este problema se ha corregido en la versión 4.25.2.
References
| https://github.com/strapi/strapi/security/advisories/GHSA-v8wj-f5c7-pvxf | exploit, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-52588 | advisory | |
| https://github.com/strapi/strapi | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-52588 changed 2025-05-29 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v8wj-f5c7-pvxf changed 2025-05-29 | CC-BY-4.0 |
| NVD | CVE-2024-52588 changed 2026-06-17 | Public domain |