The Ad Short plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'ad' shortcode's 'client' attribute in all versions up to and including 2.0.1. This is due to insufficient input sanitization and output escaping on the 'client' shortcode attribute. The ad_func() shortcode handler at line 71 accepts a 'client' attribute via shortcode_atts() and directly concatenates it into a double-quoted HTML attribute (data-ad-client) at line 130 without applying esc_attr() or any other sanitization. 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 Ad Short WordPress plugin versions up to 2.0.1 contains a Stored Cross-Site Scripting vulnerability in the 'client' attribute of the 'ad' shortcode due to insufficient input sanitization. Authenticated attackers with Contributor-level access can inject malicious scripts that execute when users view affected pages.
تحتوي إضافة Ad Short لـ WordPress على ثغرة XSS مخزنة في معالج shortcode ad_func() حيث يتم قبول خاصية 'client' دون تطبيق دوال التنظيف المناسبة مثل esc_attr(). يمكن للمهاجمين المصرح لهم على مستوى المساهم أو أعلى حقن نصوص برمجية عشوائية في صفحات WordPress.
The Ad Short WordPress plugin versions up to 2.0.1 contains a Stored Cross-Site Scripting vulnerability in the 'client' attribute of the 'ad' shortcode due to insufficient input sanitization. Authenticated attackers with Contributor-level access can inject malicious scripts that execute when users view affected pages.
Update the Ad Short plugin to version 2.0.2 or later immediately. If immediate update is not possible, disable the plugin and remove all instances of the ad shortcode from WordPress pages and posts. Implement Web Application Firewall rules to detect and block XSS payloads in shortcode attributes. Restrict Contributor-level access to trusted users only and regularly audit user permissions.
قم بتحديث إضافة Ad Short إلى الإصدار 2.0.2 أو أحدث فوراً. إذا لم يكن التحديث ممكناً، قم بتعطيل الإضافة وإزالة جميع نسخ shortcode من صفحات ومنشورات WordPress. طبق قواعد جدار حماية تطبيقات الويب للكشف عن حقن XSS. قيد الوصول على مستوى المساهم للمستخدمين الموثوقين فقط وقم بمراجعة صلاحيات المستخدمين بانتظام.