id: wordpress-fluent-smtp

info:
  name: FluentSMTP – WP SMTP Plugin with Amazon SES, SendGrid, MailGun, Postmark, Google and Any SMTP Provider Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/fluent-smtp/
  metadata:
    plugin_namespace: fluent-smtp
    wpscan: https://wpscan.com/plugin/fluent-smtp
  tags: tech,wordpress,wp-plugin,top-200

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/fluent-smtp/readme.txt"

    payloads:
      last_version: helpers/wordpress/plugins/fluent-smtp.txt

    extractors:
      - type: regex
        part: body
        internal: true
        name: internal_detected_version
        group: 1
        regex:
          - '(?i)Stable.tag:\s?([\w.]+)'

      - type: regex
        part: body
        name: detected_version
        group: 1
        regex:
          - '(?i)Stable.tag:\s?([\w.]+)'

    matchers-condition: or
    matchers:
      - type: dsl
        name: "outdated_version"
        dsl:
          - compare_versions(internal_detected_version, concat("< ", last_version))

      - type: regex
        part: body
        regex:
          - '(?i)Stable.tag:\s?([\w.]+)'
# digest: 490a0046304402206f44ba40d996b30df7ab2d26eef9b7b2aabcdcbd3d6a25d7aca82864a1544f6e02203a951c28ff9ce034da3dc2cfd5969047659694bd00d3c6e9b294b931ecf0b3e0:922c64590222798bb761d5b6d8e72950