Merge pull request #5753 from daffainfo/patch-32

fix: false negative wordpress template
patch-1
Prince Chaddha 2022-10-25 11:43:40 +05:30 committed by GitHub
commit beb5c7a8e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 8 deletions

View File

@ -1,23 +1,24 @@
id: wordpress-detect
info:
name: WordPress Detection
author: pdteam
name: WordPress Detect
author: pdteam,daffainfo
severity: info
metadata:
verified: true
shodan-query: http.component:"WordPress"
tags: tech,wordpress
tags: tech,wordpress,cms,wp
requests:
- method: GET
path:
- "{{BaseURL}}"
- '{{BaseURL}}'
- '{{BaseURL}}/feed/'
- '{{BaseURL}}/?feed=rss2' #alternative if /feed/ is blocked
host-redirects: true
max-redirects: 2
stop-at-first-match: true
matchers-condition: or
matchers:
- type: regex
regex:
- '<link[^>]+s\d+\.wp\.com'
@ -25,6 +26,14 @@ requests:
- '<!--[^>]+WP-Super-Cache'
condition: or
- type: word
part: body
words:
- '<generator>'
- '<link>'
- '<title>'
condition: and
- type: word
words:
- 'wp-login.php'
@ -38,4 +47,4 @@ requests:
- type: regex
group: 1
regex:
- 'content="WordPress ([0-9.]+)"'
- '(?m)https:\/\/wordpress.org\/\?v=([0-9.]+)'