52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
id: wordpress-table-of-contents-plus
|
|
|
|
info:
|
|
name: Table of Contents Plus Detection
|
|
author: ricardomaia
|
|
severity: info
|
|
reference:
|
|
- https://wordpress.org/plugins/table-of-contents-plus/
|
|
metadata:
|
|
max-request: 1
|
|
plugin_namespace: table-of-contents-plus
|
|
wpscan: https://wpscan.com/plugin/table-of-contents-plus
|
|
tags: tech,wordpress,wp-plugin,top-200
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/wp-content/plugins/table-of-contents-plus/readme.txt"
|
|
|
|
payloads:
|
|
last_version: helpers/wordpress/plugins/table-of-contents-plus.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: 4a0a00473045022100dfe295aeab43c76866a9110aeb755e3c991e0a7786b576b3e4f67fe3aa6db6d1022010a88f1a1eb213d3555a8cc320c690ee38364c4ac232f45767f3977c1764d3b8:922c64590222798bb761d5b6d8e72950
|