توضیح (فارسی)
تم Page Builder Framework برای WordPress در برابر Stored Cross-Site Scripting از طریق فیلد post meta با نام custom_width_value در نسخههای تا و شامل 2.11.9 آسیبپذیر است. این آسیبپذیری ناشی از اعتبارسنجی ورودی ناکافی در تابع wpbf_save_metadata() در فایل inc/options.php است، که در آن ورودی کاربر از $_POST['wpbf_options']['custom_width_value'] مستقیماً بدون sanitization در post meta ذخیره میشود، در ترکیب با escaping خروجی ناکافی در تابع wpbf_inner_content() در فایل inc/helpers.php، جایی که مقدار ذخیره شده بدون esc_attr() در یک ویژگی style از HTML الحاق میشود. این امر امکان تزریق اسکریپتهای وب دلخواه در نوشتهها را برای مهاجمان احراز هویت شده با سطح دسترسی Contributor و بالاتر فراهم میکند، که هر وقت کاربری به صفحه تزریق شده دسترسی پیدا کند اجرا میشوند، از جمله زمانی که یک مدیر پیشنمایش یک نوشته در انتظار بررسی را در طول گردون کار ویرایشی xem میکند.
Original description (English)
The Page Builder Framework theme for WordPress is vulnerable to Stored Cross-Site Scripting via the custom_width_value post meta field in versions up to, and including, 2.11.9. This is due to insufficient input sanitization in the wpbf_save_metadata() function of inc/options.php, where user input from $_POST['wpbf_options']['custom_width_value'] is stored directly into post meta without sanitization, combined with insufficient output escaping in the wpbf_inner_content() function of inc/helpers.php, where the stored value is concatenated into an HTML style attribute without esc_attr(). This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in posts that will execute whenever a user accesses the injected page, including when an administrator previews a pending post during the editorial review workflow.