id: wordpress-aryo-activity-log

info:
  name: Activity Log – Monitor & Record User Changes Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/aryo-activity-log/
  metadata:
    plugin_namespace: aryo-activity-log
    wpscan: https://wpscan.com/plugin/aryo-activity-log
  tags: tech,wordpress,wp-plugin,top-200

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/aryo-activity-log/readme.txt"

    payloads:
      last_version: helpers/wordpress/plugins/aryo-activity-log.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: 490a0046304402203723d904b8c2d967909197b477236a98b92788e5442c21d9afda63ce8737fbe402207d3637e0fe47cf7a81f91c8c02da1c8f3fd6ccad8185352d1ad08fe535c58463:922c64590222798bb761d5b6d8e72950