id: wp-woocommerce-pdf-invoice-listing

info:
  name: Woocommerce - PDF Invoice Exposure
  author: mohammedsaneem,sec_hawk
  severity: medium
  description: A vulnerability in Woocommerce allows remote unauthenticated attackers to access company invoices and other sensitive information.
  reference:
    - https://twitter.com/sec_hawk/status/1426984595094913025?s=21
    - https://github.com/Mohammedsaneem/wordpress-upload-information-disclosure/blob/main/worpress-upload.yaml
    - https://woocommerce.com/products/pdf-invoices/
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: wordpress,listing,exposure,woocommerce,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/uploads/pdf-invoices/"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Index of /wp-content/uploads/pdf-invoices"
          - "Parent Directory"
          - ".pdf"
        condition: and

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