CVE-2021-32172:Remote Code Execution vulnerability in Maian Cart v3.8 through the Elfinder plugin due to broken access control.

splash
Back

Description Preview

Maian Cart v3.8 contains a critical vulnerability that allows unauthenticated attackers to execute arbitrary code on the server. The vulnerability exists in the Elfinder plugin which suffers from broken access control (CWE-862). Attackers can bypass authentication requirements and leverage the plugin's functionality to upload and execute malicious code, leading to complete system compromise.

Overview

This vulnerability (CVE-2021-32172) affects Maian Cart version 3.8, a PHP-based e-commerce platform. The vulnerability stems from insufficient authorization controls in the Elfinder plugin, which is used for file management within the application. Due to this broken access control issue, unauthenticated attackers can access administrative file management functions, upload malicious PHP files, and execute arbitrary code on the affected server. This vulnerability is particularly severe as it requires no authentication and can lead to complete server compromise, potentially exposing customer data, payment information, and allowing attackers to gain persistent access to the hosting environment.

Remediation

  1. Update Maian Cart to the latest version if a patched version is available.
  2. If updates are not available, consider implementing additional access controls:
    • Restrict access to the Elfinder plugin directories using .htaccess rules
    • Implement IP-based restrictions for administrative functions
    • Consider disabling the Elfinder plugin if not required
  3. Implement a Web Application Firewall (WAF) to filter malicious requests
  4. Regularly audit file uploads and system logs for suspicious activity
  5. Follow the principle of least privilege for all application components
  6. Consider replacing Elfinder with a more secure file management solution

References

  1. Exploit details and proof of concept: https://packetstormsecurity.com/files/164445/Maian-Cart-3.8-Remote-Code-Execution.html
  2. Detailed vulnerability analysis: https://dreyand.github.io/maian-cart-rce/
  3. Exploit code repository: https://github.com/DreyAnd/maian-cart-rce
  4. Vendor website: https://www.maianscriptworld.co.uk/
  5. CWE-862: Missing Authorization - https://cwe.mitre.org/data/definitions/862.html

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