SVG Support 2.5 - 2.5.1 - Insecure Plugin Defaults to Cross-Site Scripting

2022-11-16 00:00
Marco Wotschka

Strategic Overview

Status
Patched in 2.5.2
Affected PluginSVG Support
Affected Version2.5 – 2.5.1
CVSS6.4Medium
CVECVE-2022-4022
View all SVG Support vulnerabilities

Vulnerability Overview

The SVG Support plugin for WordPress defaults to insecure settings in version 2.5 and 2.5.1. SVG files containing malicious javascript are not sanitized. While version 2.5 adds the ability to sanitize image as they are uploaded, the plugin defaults to disable sanitization and does not restrict SVG upload to only administrators. This allows authenticated attackers, with author-level privileges and higher, to upload malicious SVG files that can be embedded in posts and pages by higher privileged users. Additionally, the embedded JavaScript is also triggered on visiting the image URL, which allows an attacker to execute malicious code in browsers visiting that URL.

Technical Analysis

REMEDIATION: Update to version 2.5.2, or a newer patched version --- IDENTIFIER: CWE-79 (Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) 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.

External References

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C