CVE-2024-10102 in Image Gallery Plugininfo

Summary

by MITRE • 01/07/2025

The Photo Gallery, Images, Slider in Rbs Image Gallery WordPress plugin before 3.2.22 does not sanitise and escape some of its Gallery settings, which could allow high privilege users such as contributor to perform Stored Cross-Site Scripting attacks

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 05/14/2025

The vulnerability identified as CVE-2024-10102 affects the Rbs Image Gallery WordPress plugin, specifically versions prior to 3.2.22, presenting a critical stored cross-site scripting risk that can be exploited by users with contributor-level privileges. This issue stems from inadequate input sanitization and output escaping mechanisms within the plugin's gallery settings functionality, creating a pathway for malicious code execution within the context of affected WordPress installations. The vulnerability operates by allowing unauthorized users to inject malicious scripts into gallery configuration parameters that are subsequently rendered in web pages without proper sanitization, enabling attackers to execute arbitrary code in the browsers of other users who view the affected gallery content.

The technical flaw manifests in the plugin's failure to properly sanitize user-supplied data within its gallery settings interface, particularly when handling parameters related to image gallery configurations and slider functionalities. This weakness falls under the CWE-79 category of Cross-Site Scripting, specifically classified as stored XSS due to the persistence of malicious payloads within the plugin's configuration storage. The vulnerability is particularly concerning because it requires only contributor-level access privileges, which are typically granted to users who can create and edit posts but not necessarily manage the entire site. This low privilege requirement significantly increases the attack surface and potential impact, as contributor accounts are often more numerous and less strictly controlled than administrator accounts within WordPress environments.

The operational impact of this vulnerability extends beyond simple script execution, as it can enable attackers to perform a wide range of malicious activities including session hijacking, credential theft, data exfiltration, and redirection to malicious websites. When a contributor user injects malicious JavaScript into the gallery settings, any user who views the affected gallery page becomes vulnerable to the payload execution, potentially compromising their browser sessions and allowing attackers to escalate their privileges or access sensitive data. The stored nature of this XSS vulnerability means that the malicious code persists in the database and continues to execute until manually removed or the plugin is updated, creating an ongoing threat vector that can affect multiple users over time.

Mitigation strategies for this vulnerability require immediate attention from system administrators and WordPress site owners, beginning with the mandatory upgrade to plugin version 3.2.22 or later where the sanitization and escaping issues have been addressed. Additionally, implementing proper input validation and output escaping mechanisms should be enforced through comprehensive code review processes that align with WordPress security best practices and the OWASP Top Ten security guidelines. Network-level protections such as Content Security Policy headers can provide additional defense-in-depth measures, while regular security audits and monitoring of user account activities should be implemented to detect potential exploitation attempts. The vulnerability also highlights the importance of the principle of least privilege, where contributor accounts should have minimal necessary permissions to prevent escalation of privileges through such vulnerabilities, aligning with the ATT&CK framework's mitigation strategies for credential access and privilege escalation techniques.

Responsible

WPScan

Reservation

10/17/2024

Disclosure

01/07/2025

Moderation

accepted

CPE

ready

EPSS

0.00514

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!