CVE-2024-25975 Arbitrary File Overwrite
An authenticated attacker can overwrite arbitrary files writable by the web server via path traversal in the voting function.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-25975?
CVE-2024-25975 is a medium-severity path traversal vulnerability in Interaction Design Team at the University of Applied Sciences and Arts in Hildesheim/Germany HAWKI, published on 29 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
The application implements an up- and downvote function which alters a value within a JSON file. The POST parameters are not filtered properly and therefore an arbitrary file can be overwritten. The file can be controlled by an authenticated attacker, the content cannot be controlled. It is possible to overwrite all files for which the webserver has write access. It is required to supply a relative path (path traversal).
Weakness: CWE-73
Which versions are affected by CVE-2024-25975?
How do I fix CVE-2024-25975?
No fix has been published for CVE-2024-25975 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-25975 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-25975 exists.