Update drupal-jsonapi-user-listing.yaml

patch-1
Prince Chaddha 2022-07-24 22:23:35 +05:30 committed by GitHub
parent ff5e432186
commit e8f1cb8a17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 2 deletions

View File

@ -6,6 +6,8 @@ info:
severity: medium
reference:
- https://www.drupal.org/project/drupal/issues/3240913
metadata:
verified: true
tags: drupal,exposure
requests:
@ -13,8 +15,19 @@ requests:
path:
- "{{BaseURL}}/jsonapi/user/user"
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- '"display_name":"'
- '\{"display_name":"([A-Sa-z0-9-_]+)"\}'
- type: status
status:
- 200
extractors:
- type: regex
part: body
group: 1
regex:
- '\{"display_name":"([A-Za-z0-9-_]+)"\}'