CVE-2021-36424:Remote Code Execution Vulnerability in phpwcms 1.9.25 During Installation

splash
Back

Description Preview

A code injection vulnerability (CWE-94) exists in phpwcms version 1.9.25 that allows remote attackers to execute arbitrary code through the database user field during the installation process. This vulnerability could lead to complete system compromise if successfully exploited.

Overview

phpwcms is a content management system written in PHP. In version 1.9.25, the installation process contains a critical security flaw where user input from the database configuration fields is not properly sanitized before being used. Specifically, the DB user field can be manipulated to include malicious PHP code that will be executed on the server. An attacker who can access the installation page can exploit this vulnerability to execute arbitrary code with the privileges of the web server user, potentially leading to full system compromise.

Remediation

  • Upgrade to a patched version of phpwcms if available
  • If upgrading is not immediately possible, consider the following temporary measures:
    • Restrict access to the installation directory
    • Complete the installation process in a secure environment and then deploy to production
    • Monitor system logs for suspicious activities
    • Implement web application firewall rules to block potential exploitation attempts
  • After installation, ensure the installation directory is removed or properly secured
  • Follow security best practices for PHP applications, including input validation and proper configuration of PHP settings

References

  • GitHub Issue and Patch: https://github.com/slackero/phpwcms/issues/310
  • CWE-94: Improper Control of Generation of Code ('Code Injection'): https://cwe.mitre.org/data/definitions/94.html
  • OWASP Code Injection Prevention: https://owasp.org/www-community/attacks/Code_Injection

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
Armis Vulnerability Intelligence Database