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.

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.

“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.

Advertisement. Scroll to continue reading.

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

Related Content

Cybercrime

A vulnerability in the WordPress Automatic plugin is being exploited to inject backdoors and web shells into websites.

Vulnerabilities

A critical SQL injection vulnerability in the LayerSlider WordPress plugin allows attackers to extract sensitive information.

Vulnerabilities

A high-severity XSS vulnerability in the Ultimate Member plugin allows attackers to inject scripts into WordPress sites.

Incident Response

The vulnerability carries a CVSS severity score of 9.8/10 and affects web sites running the Ultimate Member WordPress membership plugin.

Vulnerabilities

Attackers are exploiting a recent remote code execution flaw in the Bricks Builder WordPress plugin to deploy malware.

Vulnerabilities

Critical remote code execution flaws in Backup Migration and Elementor plugins expose WordPress sites to attacks.

Vulnerabilities

WordPress 6.4.2 patches a flaw that could be chained with another vulnerability to execute arbitrary code.

Malware & Threats

A backdoor deployed on a compromised WordPress website poses as a legitimate plugin to hide its presence.

Copyright © 2024 SecurityWeek ®, a Wired Business Media Publication. All Rights Reserved.

Exit mobile version