id: wordpress-affiliatewp-log

info:
  name: WordPress Plugin "AffiliateWP -- Allowed Products" Log Disclosure
  author: dhiyaneshDK
  severity: low
  description: Exposed debug log in AffiliateWP Wordpress Plugin
  metadata:
    max-request: 1
  tags: wordpress,log,plugin

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-content/uploads/affwp-debug.log'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'Referral could not be retrieved'
          - 'Affiliate CSV'

      - type: word
        words:
          - 'text/plain'
        part: header

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