rmountjoy92 / DashMachine

Another web application bookmark dashboard, with fun features.
GNU General Public License v3.0
1.24k stars 121 forks source link

Security Vulnerability - Arbitrary File Deletion via HTTP GET /tcdrop/deleteCachedFile #234

Open tankeehock opened 4 months ago

tankeehock commented 4 months ago

Heyyy! The endpoint "/tcdrop/deleteCachedFile" is vulnerable to arbitrary file deletion attacks. There deletion relies on a user supplied input via the "file" parameter. There is no validation of the input and if a user supplies a payload like this file=../../../../../../../../../../../tmp/abc4.txt, it can technically delete any file given whatever access right it has.