id: wordpress-plugins-detect

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

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