CVE-2022-1961
Gtm4wp Google Tag Manager vulnerability
The Google Tag Manager for WordPress (GTM4WP) plugin is vulnerable to Stored Cross-Site Scripting due to insufficient escaping via the `gtm4wp-options[scroller-contentid]` parameter found in the `~/public/frontend.php` file which allowed attackers with administrative user access to inject arbitrary web scripts, in versions up to and including 1.15.1. This affects multi-site installations where unfiltered_html is disabled for administrators, and sites where unfiltered_html is disabled.
Affected products
Google Tag Manager. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Gtm4wp Google Tag Manager runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=2732977%40duracel · Patch
- gist.github.com/Xib3rR4dAr/02a21cd0ea0b7bf586131c5eebb69f1d · Exploit
- www.wordfence.com/threat-intel/vulnerabilities/id/202c14d0-9207-47cb-9410-ca4c70d7b6d2?sou · Third Party Advisory
- www.wordfence.com/vulnerability-advisories/#CVE-2022-1961 · Third Party Advisory
- wordpress.org/plugins/duracelltomi-google-tag-manager/#developers
- nvd.nist.gov/vuln/detail/CVE-2022-1961
- cve.org/CVERecord?id=CVE-2022-1961
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.