The Embed Swagger WordPress plugin is vulnerable to Reflected Cross-Site Scripting due to insufficient escaping/sanitization and validation via the url parameter found in the ~/swagger-iframe.php file which allows attackers to inject arbitrary web scripts onto the page, in versions up to and including 1.0.0.
Solution:
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Link | Tags |
---|---|
https://www.wordfence.com/vulnerability-advisories/#CVE-2022-0381 | third party advisory |
https://gist.github.com/Xib3rR4dAr/4b3ea7960914e23c3a875b973a5b37a3 | third party advisory exploit |
https://plugins.trac.wordpress.org/browser/embed-swagger/trunk/swagger-iframe.php#L59 | third party advisory |