The Easy Social Photos Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'wrapper_class' shortcode attribute of the 'my-instagram-feed' shortcode in all versions up to, and including, 3.1.2. This is due to insufficient input sanitization and output escaping on user supplied attributes. Specifically, the plugin uses sanitize_text_field() instead of esc_attr() when outputting the 'wrapper_class' attribute inside a double-quoted HTML class attribute. Since sanitize_text_field() does not encode double quotes, an attacker can break out of the class attribute and inject arbitrary HTML event handlers. 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 Easy Social Photos Gallery WordPress plugin contains a Stored Cross-Site Scripting vulnerability in the 'my-instagram-feed' shortcode's 'wrapper_class' attribute due to improper input sanitization. Authenticated attackers with contributor-level access can inject malicious scripts that execute when users view affected pages.
تحتوي إضافة Easy Social Photos Gallery على ثغرة Stored XSS في سمة wrapper_class الخاصة بـ shortcode my-instagram-feed. يمكن للمهاجمين المصرح لهم على مستوى المساهم أو أعلى حقن نصوص برمجية ضارة تُنفذ عند وصول المستخدمين إلى الصفحات المصابة. الثغرة ناتجة عن استخدام sanitize_text_field() بدلاً من esc_attr() مما يسمح بكسر سمة class وحقن معالجات أحداث HTML.
The Easy Social Photos Gallery WordPress plugin contains a Stored Cross-Site Scripting vulnerability in the 'my-instagram-feed' shortcode's 'wrapper_class' attribute due to improper input sanitization. Authenticated attackers with contributor-level access can inject malicious scripts that execute when users view affected pages.
Update the Easy Social Photos Gallery plugin to version 3.1.3 or later immediately. Replace all instances of sanitize_text_field() with esc_attr() for HTML attribute output. Restrict contributor-level access to trusted users only and implement Web Application Firewall rules to detect XSS payloads in shortcode attributes.
قم بتحديث إضافة Easy Social Photos Gallery إلى الإصدار 3.1.3 أو أحدث فوراً. استبدل جميع استخدامات sanitize_text_field() بـ esc_attr() لمخرجات سمات HTML. قيد الوصول على مستوى المساهم للمستخدمين الموثوقين فقط وطبق قواعد جدار الحماية لتطبيقات الويب للكشف عن حمولات XSS.