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