nuclei-templates/http/technologies/wordpress/plugins/safe-svg.yaml

50 lines
1.3 KiB
YAML

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