Trustwave SpiderLabs Security Advisory TWSL2021-018: Authenticated Stored XSS in WordPress Plugin Age Gate Published: 10/06/2021 Version: 1.0 Vendor: Phil Baker (https://agegate.io/) Product: WordPress Plugin Age Gate Version affected: <= 2.16.3 Product description: The plugin provides functionality to affirm a user's age prior to viewing content. Finding 1: Authenticated Stored XSS *****Credit: Martin Vierula of Trustwave CWE: CWE-79 In the 'Messaging' page, the field 'Additional content' is vulnerable to stored XSS. Scripts entered using this parameter will run against any web site visitor who is presented with the age check. The plugin, in its 'Access' page, provides settings to select which WordPress roles have update authority on the 'Messaging' page, including the vulnerable field. While 'Administrator' is the default, some web sites may have chosen to allow update access to lower-authority roles like Contributor or even Subscriber. As a PoC, the following text can be entered directly into the 'Additional content' field in the browser:

Remediation Steps: Upgrade the WordPress Plugin Age Gate to 2.16.4 or the latest stable version. Revision History: 07/08/2021 - Vulnerability disclosed to vendor 07/09/2021 - Vendor releases version 2.16.3 with incomplete fix 07/13/2021 - Vendor releases version 2.16.4 10/06/2021 - Advisory published About Trustwave: Trustwave helps businesses fight cybercrime, protect data and reduce security risk. With cloud and managed security services, integrated technologies and a team of security experts, ethical hackers and researchers, Trustwave enables businesses to transform the way they manage their information security and compliance programs. More than three million businesses are enrolled in the Trustwave TrustKeeper® cloud platform, through which Trustwave delivers automated, efficient and cost-effective threat, vulnerability and compliance management. Trustwave is headquartered in Chicago, with customers in 96 countries. For more information about Trustwave, visit https://www.trustwave.com. About Trustwave SpiderLabs: SpiderLabs(R) is the advanced security team at Trustwave focused on application security, incident response, penetration testing, physical security and security research. The team has performed over a thousand incident investigations, thousands of penetration tests and hundreds of application security tests globally. In addition, the SpiderLabs Research team provides intelligence through bleeding-edge research and proof of concept tool development to enhance Trustwave's products and services. https://www.trustwave.com/spiderlabs Disclaimer: The information provided in this advisory is provided "as is" without warranty of any kind. Trustwave disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Trustwave or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Trustwave or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.