id: CVE-2014-4942

info:
  name: WordPress EasyCart <2.0.6 - Information Disclosure
  author: DhiyaneshDk
  severity: medium
  description: |
    WordPress EasyCart plugin before 2.0.6 contains an information disclosure vulnerability. An attacker can obtain configuration information via a direct request to inc/admin/phpinfo.php, which calls the phpinfo function.
  impact: |
    An attacker can gain sensitive information from the target system.
  remediation: |
    Upgrade to WordPress EasyCart version 2.0.6 or later.
  reference:
    - https://wpscan.com/vulnerability/64ea4135-eb26-4dea-a13f-f4c1deb77150
    - https://codevigilant.com/disclosure/wp-plugin-wp-easycart-information-disclosure
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-4942
    - https://nvd.nist.gov/vuln/detail/CVE-2014-4942
    - https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=829290%40wp-easycart&old=827627%40wp-easycart&sfp_email=&sfph_mail=
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
    cvss-score: 5
    cve-id: CVE-2014-4942
    cwe-id: CWE-200
    epss-score: 0.04408
    epss-percentile: 0.90365
    cpe: cpe:2.3:a:levelfourdevelopment:wp-easycart:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: levelfourdevelopment
    product: wp-easycart
    framework: wordpress
  tags: cve2014,cve,wpscan,wordpress,wp-plugin,wp,phpinfo,disclosure,levelfourdevelopment,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/wp-easycart/inc/admin/phpinfo.php"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "PHP Extension"
          - "PHP Version"
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '>PHP Version <\/td><td class="v">([0-9.]+)'
# digest: 4b0a004830460221009e0c2f4fd5da4dacd014a9705251481dc8835ec194899fae29ea7ec359778cf0022100df6c03fa8a365fc95fc1698f5238f1a295ac4498e29d9a7d0fc30120de0ffdfe:922c64590222798bb761d5b6d8e72950