nuclei-templates/http/technologies/wordpress/plugins/wordpress-seo.yaml

50 lines
1.3 KiB
YAML

id: wordpress-wordpress-seo
info:
name: Yoast SEO Detection
author: ricardomaia
severity: info
reference:
- https://wordpress.org/plugins/wordpress-seo/
metadata:
max-request: 1
plugin_namespace: wordpress-seo
wpscan: https://wpscan.com/plugin/wordpress-seo
tags: tech,wordpress,wp-plugin,top-100,top-200
http:
- method: GET
path:
- "{{BaseURL}}/wp-content/plugins/wordpress-seo/readme.txt"
payloads:
last_version: helpers/wordpress/plugins/wordpress-seo.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: 4b0a004830460221008166cede67db17764dbd530ba12cf038bbce85178187b6cb948bb6996f57953702210080df5a422481d752743aeb68ad47d7497d55ec196fdd8322baa77c318f23f720:922c64590222798bb761d5b6d8e72950