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

49 lines
1.2 KiB
YAML

id: wordpress-safe-svg
info:
name: Safe SVG Detection
author: ricardomaia
severity: info
reference:
- https://wordpress.org/plugins/safe-svg/
metadata:
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: 4a0a004730450220189093ee689babf72a515ce2c0813df79f04412064dc1a02b934ca27d0fe4170022100cf6decdb693c801401d91d7e9f42f17311a068db78fec6224cbd031a794af5af:922c64590222798bb761d5b6d8e72950