Description
ClipBucket v5 is an open source video sharing platform. Prior to 5.5.3 - #40, a Time-of-Check to Time-of-Use (TOCTOU) race condition vulnerability exists in ClipBucket's avatar and background image upload functionality. The application moves uploaded files to a web-accessible location before validating them, creating a window where an attacker can execute arbitrary PHP code before the file is deleted. The uploaded file was moved to a web-accessible path via move_uploaded_file(), then validated via ValidateImage(). If validation failed, the file was deleted via @unlink(). This vulnerability is fixed in 5.5.3 - #40.
Problem types
CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Product status
References
github.com/...ket-v5/security/advisories/GHSA-xq7c-m5r2-9wqj
github.com/...ket-v5/security/advisories/GHSA-xq7c-m5r2-9wqj
github.com/...ommit/09536e6e2ca6d69a2ee83190b588c0b8116dd16d