id: wordpress-plugins-detect

info:
  name: WordPress Plugins Detection
  author: 0xcrypto
  severity: info
  metadata:
    max-request: 100563
  tags: fuzz,wordpress,fuzzing

http:
  - raw:
      - |
        GET /wp-content/plugins/{{pluginSlug}}/readme.txt HTTP/1.1
        Host: {{Hostname}}

    payloads:
      pluginSlug: helpers/wordlists/wordpress-plugins.txt

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "== Description =="

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - "===\\s(.*)\\s===" # extract the plugin name
          - "(?m)Stable tag: ([0-9.]+)" # extract the plugin version
# digest: 4b0a00483046022100ae14418d42a17b84d1a1fb98aafcfa8ba40bbbe42ee5024a9bb6225d581b4041022100a0647bd07ce6b768ea11410b9f2db76abf6bd99acf1d162ddf97ae5d40cfc201:922c64590222798bb761d5b6d8e72950