50 lines
1.3 KiB
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: 4a0a00473045022031a90df0df214498947f00477f5b208ee94d74a49b0cf8e43659d038149376e6022100bc179259ede22d4135c8833cc27ed1f155b99c2c00c0e6dde3619d6c3f09f660:922c64590222798bb761d5b6d8e72950 |