cve/2021/CVE-2021-24559.md

19 lines
1.1 KiB
Markdown
Raw Normal View History

2024-05-25 21:48:12 +02:00
### [CVE-2021-24559](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-24559)
![](https://img.shields.io/static/v1?label=Product&message=Qyrr&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=0%3C%200.7%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-352%20Cross-Site%20Request%20Forgery%20(CSRF)&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-79%20Cross-Site%20Scripting%20(XSS)&color=brighgreen)
### Description
The Qyrr WordPress plugin before 0.7 does not escape the data-uri of the QR Code when outputting it in a src attribute, allowing for Cross-Site Scripting attacks. Furthermore, the data_uri_to_meta AJAX action, available to all authenticated users, only had a CSRF check in place, with the nonce available to users with a role as low as Contributor allowing any user with such role (and above) to set a malicious data-uri in arbitrary QR Code posts, leading to a Stored Cross-Site Scripting issue.
### POC
#### Reference
- https://wpscan.com/vulnerability/65a29976-163a-4bbf-a4e8-590ddc4b83f2/
#### Github
No PoCs found on GitHub currently.