The Cost of Goods: Product Cost & Profit Calculator for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'alg_wc_cog_product_cost' and 'alg_wc_cog_product_profit' shortcodes in all versions up to, and including, 4.1.0 due to insufficient input sanitization and output escaping on user supplied attributes. 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 Cost of Goods plugin for WooCommerce contains a Stored XSS vulnerability in shortcode attributes that allows authenticated contributors to inject malicious scripts. These scripts execute when users access affected pages, potentially compromising user data and site integrity.
يؤثر هذا الضعف على جميع إصدارات مكون Cost of Goods & Profit Calculator حتى الإصدار 4.1.0. يمكن للمهاجمين المصرح لهم بصلاحيات المساهم أو أعلى حقن برامج JavaScript ضارة عبر سمات shortcode معينة. تُنفذ البرامج النصية المحقونة في سياق متصفح أي مستخدم يزور الصفحة المصابة.
ثغرة Stored XSS في مكون Cost of Goods لـ WooCommerce تسمح للمساهمين المصرح لهم بحقن برامج نصية ضارة عبر سمات الاختصار. تُنفذ هذه البرامج عند وصول المستخدمين إلى الصفحات المتأثرة، مما قد يعرض بيانات المستخدم وسلامة الموقع للخطر.
Update the Cost of Goods plugin to version 4.1.1 or later immediately. Implement input validation and output escaping for all shortcode attributes. Restrict contributor-level access to trusted users only. Monitor pages using affected shortcodes for suspicious modifications.
حدّث مكون Cost of Goods إلى الإصدار 4.1.1 أو أحدث فوراً. طبّق التحقق من المدخلات والهروب من المخرجات لجميع سمات الاختصار. قيّد وصول مستوى المساهم للمستخدمين الموثوقين فقط. راقب الصفحات التي تستخدم الاختصارات المتأثرة للتعديلات المريبة.