id: wordpress-nextend-facebook-connect

info:
  name: Nextend Social Login and Register Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/nextend-facebook-connect/
  metadata:
    plugin_namespace: nextend-facebook-connect
    wpscan: https://wpscan.com/plugin/nextend-facebook-connect
  tags: tech,wordpress,wp-plugin,top-200

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/nextend-facebook-connect/readme.txt"

    payloads:
      last_version: helpers/wordpress/plugins/nextend-facebook-connect.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: 490a0046304402204e849500351429b203a2fefb7e5839cb5b236ae327160ddb1ce54b2f71406ea302200d1098c317c2af575964d36f3ff9ea6931de5eba581718aaec48304fe4e924c2:922c64590222798bb761d5b6d8e72950