mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-05 18:23:57 +08:00
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
id: wordpress-wp-optimize
|
||
|
||
info:
|
||
name: WP-Optimize – Cache, Clean, Compress. Detection
|
||
author: ricardomaia
|
||
severity: info
|
||
reference:
|
||
- https://wordpress.org/plugins/wp-optimize/
|
||
metadata:
|
||
max-request: 1
|
||
plugin_namespace: wp-optimize
|
||
wpscan: https://wpscan.com/plugin/wp-optimize
|
||
tags: tech,wordpress,wp-plugin,top-100,top-200
|
||
|
||
http:
|
||
- method: GET
|
||
path:
|
||
- "{{BaseURL}}/wp-content/plugins/wp-optimize/readme.txt"
|
||
|
||
payloads:
|
||
last_version: helpers/wordpress/plugins/wp-optimize.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: 4b0a00483046022100ce8d2c75cbabe8b1b0651f2b5350245b5a77324d12d1f0b13ab321d38f3f7510022100a40bc14503b31cc6cdd5fe8ad3678b95aa67f8b8c9588c5fc80880ab433ba6a8:922c64590222798bb761d5b6d8e72950 |