Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Application Security

Security Flaw in WP-Members Plugin Leads to Script Injection

A cross-site scripting vulnerability in the WP-Members Membership plugin could allow attackers to inject scripts into user profile pages.

Attackers could exploit a high-severity cross-site Scripting (XSS) vulnerability in the WP-Members Membership WordPress plugin to inject arbitrary scripts into web pages, according to an advisory from security firm Defiant.

The bug, tracked as CVE-2024-1852, is the result of insufficient input sanitization and output escaping, allowing an attacker to create accounts that have a malicious script stored as the value of the user’s IP address.

An attacker could use WP-Members Membership’s user registration functionality to fill and submit a registration form, then intercept the registration request using a proxy, and modify it to contain an X-Forwarded-For header with a malicious payload enclosed in script tags, Defiant’s Wordfence research team said.

The issue is that, if an X-Forwarded-For header is present in the request, the plugin uses its value to store the IP address of any user relying on the registration form.

“Due to the fact that HTTP headers can be manipulated, and the input was not sanitized, a user could supply any value including a malicious web script that will be stored as the user’s IP,” according to the alert.

The malicious script is stored in the user’s profile and, if an administrator edits or views the user account, the payload will be included in the generated source code when the page loads.

Advertisement. Scroll to continue reading.

“It is important to understand that this malicious code will be executed in the context of an administrator’s browser session and can be used to create malicious user accounts, redirect site visitors to other malicious sites and perform other malicious actions,” Wordfence added.

WP-Members Membership version 3.4.9.3 patches the vulnerability, after a partial fix was included in version 3.4.9.2. Users are advised to update their installations as soon as possible.

With more than 60,000 active installations, WP-Members is a user membership plugin that allows site owners to easily set up and manage user registration, logins, and profiles, set restrictions, and more.

Related: 39,000 Websites Infected in ‘Sign1’ Malware Campaign

Related: Discontinued Plugins Expose WordPress Sites to Takeover

Related: Ultimate Member Plugin Flaw Exposes 100,000 WordPress Sites

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing for the latest cybersecurity threats, trends, and expert insights.

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join this live webinar as we explore why exploitation is outpacing remediation, where risk is growing fastest, and what security leaders can do to close the gap before attackers take advantage.

Register

CodeSecCon bridges the gap between dev and security. Discover best practices for secure coding, innovative risk-reduction tools, and safe AI integration to cultivate a true DevSecOps culture. Safely secure your apps!

Register

People on the Move

Barry Childe has joined data sciences tech company Datavault AI as Chief Information Security Officer.

John DeSimone, the former CEO of Nightwing, has been named Chief Operating Officer at Everfox.

Sectigo has appointed Prem Hareesh as Corporate Chief Technology Officer.

More People On The Move

Expert Insights

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest cybersecurity news, threats, and expert insights. Unsubscribe at any time.