CVE-2020-13459:Stored XSS vulnerability in Image Resizer plugin for Craft CMS before version 2.0.9.

splash
Back

Description Preview

A stored Cross-Site Scripting (XSS) vulnerability was discovered in the Image Resizer plugin for Craft CMS in versions prior to 2.0.9. This vulnerability specifically affects the Bulk Resize action functionality. Attackers could potentially inject malicious JavaScript code that would be stored on the server and executed when other users, particularly administrators, access the affected pages. This could lead to session hijacking, credential theft, or other client-side attacks.

Overview

The Image Resizer plugin for Craft CMS provides functionality to resize images within the CMS. The vulnerability exists in the Bulk Resize action where user input is not properly sanitized or validated before being stored and later rendered in the browser. This allows attackers to inject malicious scripts that execute in the context of other users' browsers when they view the affected content. As a stored XSS vulnerability (CWE-79), the malicious code persists in the application's database and can affect multiple users over time, making it particularly dangerous for administrative users who have elevated privileges within the CMS.

Remediation

To remediate this vulnerability, users should update the Image Resizer plugin to version 2.0.9 or later, which contains the security fix for this issue. If immediate updating is not possible, consider the following temporary measures:

  1. Limit access to the Image Resizer functionality, particularly the Bulk Resize feature, to only trusted administrative users.
  2. Monitor logs for suspicious activity related to the Image Resizer plugin.
  3. Implement Content Security Policy (CSP) headers to help mitigate the impact of any XSS attacks.
  4. Regularly back up your Craft CMS installation to ensure quick recovery in case of a security incident.

References

  1. Image Resizer plugin changelog: https://github.com/verbb/image-resizer/blob/craft-3/CHANGELOG.md
  2. CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'): https://cwe.mitre.org/data/definitions/79.html
  3. OWASP XSS Prevention Cheat Sheet: https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html
  4. Craft CMS Security Best Practices: https://craftcms.com/knowledge-base/securing-craft

Industry ExposureMost to least
This section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.

  1. Accommodation & Food Services
    Accommodation & Food Services
  2. Administrative, Support, Waste Management & Remediation Services
    Administrative, Support, Waste Management & Remediation Services
  3. Agriculture, Forestry Fishing & Hunting
    Agriculture, Forestry Fishing & Hunting
  4. Arts, Entertainment & Recreation
    Arts, Entertainment & Recreation
  5. Construction
    Construction
  6. Educational Services
    Educational Services
  7. Finance and Insurance
    Finance and Insurance
  8. Health Care & Social Assistance
    Health Care & Social Assistance
  9. Information
    Information
  10. Management of Companies & Enterprises
    Management of Companies & Enterprises
  11. Manufacturing
    Manufacturing
  12. Mining
    Mining
  13. Other Services (except Public Administration)
    Other Services (except Public Administration)
  14. Professional, Scientific, & Technical Services
    Professional, Scientific, & Technical Services
  15. Public Administration
    Public Administration
  16. Real Estate Rental & Leasing
    Real Estate Rental & Leasing
  17. Retail Trade
    Retail Trade
  18. Transportation & Warehousing
    Transportation & Warehousing
  19. Utilities
    Utilities
  20. Wholesale Trade
    Wholesale Trade

Focus on What Matters

  1. See Everything.
  2. Identify True Risk.
  3. Proactively Mitigate Threats.

Let's talk!

background