The GreenShift - Animation and Page Builder Blocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 12.8.9 This is due to insufficient input sanitization and output escaping in the gspb_greenShift_block_script_assets() function. The function uses str_replace() to insert 'fetchpriority="high"' before 'src=' attributes when processing greenshift-blocks/image blocks with the disablelazy attribute enabled. Because this replacement operates on the entire HTML string without parsing, contributors can inject the string 'src=' into HTML attribute values (such as class attributes). When the str_replace executes, the double quotes in the replacement string break out of the attribute context, allowing injection of malicious HTML attributes like onfocus with JavaScript payloads. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
The GreenShift WordPress plugin versions up to 12.8.9 contain a stored XSS vulnerability in the image block processing function due to improper string replacement without HTML parsing. Authenticated contributors can inject malicious JavaScript through crafted HTML attributes that break out of attribute context.
تحتوي إضافة GreenShift لـ WordPress على ثغرة XSS مخزنة في الإصدارات حتى 12.8.9 بسبب عدم كفاية تنظيف المدخلات والترميز الآمن للمخرجات في دالة معالجة كتل الصور. يمكن للمستخدمين ذوي صلاحيات المساهم حقن كود JavaScript ضار من خلال سمات HTML مصنوعة بعناية.
GreenShift WordPress plugin versions up to 12.8.9 contain a stored XSS vulnerability in the image block processing function due to improper string replacement without HTML parsing. Authenticated contributors can inject malicious JavaScript through crafted HTML attributes that break out of attribute context.
Update GreenShift plugin to version 12.9.0 or later immediately. Implement strict input validation and output escaping for all user-supplied content. Use WordPress sanitization functions like sanitize_text_field() and escaping functions like wp_kses_post(). Restrict contributor permissions to essential functions only. Monitor for suspicious activity in WordPress audit logs.
قم بتحديث إضافة GreenShift إلى الإصدار 12.9.0 أو أحدث فوراً. طبق التحقق الصارم من المدخلات والترميز الآمن لجميع المحتوى المدخل من المستخدمين. استخدم وظائف التنظيف في WordPress مثل sanitize_text_field() ووظائف الترميز مثل wp_kses_post(). قيد صلاحيات المساهمين للوظائف الأساسية فقط. راقب النشاط المريب في سجلات تدقيق WordPress.