Плагин Fancy Product Designer для WordPress уязвим для Server-Side Request Forgery во всех версиях вплоть до 6.4.8. Это связано с состоянием гонки time-of-check/time-of-use (TOCTOU) в параметре 'url' действия fpd_custom_uplod_file AJAX. Плагин проверяет URL, сначала вызывая getimagesize(), а затем извлекает тот же URL с помощью file_get_contents().
Это позволяет злоумышленникам, не прошедшим проверку подлинности, использовать временной разрыв для выполнения атак SSRF путем предоставления действительного образа во время проверки, а затем изменения ответа для перенаправления на произвольный внутренний или внешний URLs во время фактической выборки.
Показать оригинальное описание (EN)
The Fancy Product Designer plugin for WordPress is vulnerable to Server-Side Request Forgery in all versions up to, and including, 6.4.8. This is due to a time-of-check/time-of-use (TOCTOU) race condition in the 'url' parameter of the fpd_custom_uplod_file AJAX action. The plugin validates the URL by calling getimagesize() first, then later retrieves the same URL using file_get_contents(). This makes it possible for unauthenticated attackers to exploit the timing gap to perform SSRF attacks by serving a valid image during validation, then changing the response to redirect to arbitrary internal or external URLs during the actual fetch.
Характеристики атаки
Последствия
Строка CVSS v3.1