header-logo
Suggest Exploit
vendor:
LimeSurvey Community Edition
by:
Subhankar Singh
8.1
CVSS
CRITICAL
Stored Cross-Site Scripting (XSS)
79
CWE
Product Name: LimeSurvey Community Edition
Affected Version From: 5.3.32+220817
Affected Version To: 5.3.32+220817
Patch Exists: NO
Related CWE: CVE-2024-24506
CPE: a:limesurvey:limesurvey:5.3.32+220817
Metasploit:
Other Scripts:
Platforms Tested: Windows
2024

Stored Cross-Site Scripting (XSS) in LimeSurvey Community Edition Version 5.3.32+220817

A critical security vulnerability in LimeSurvey Community Edition Version 5.3.32+220817 allows attackers to compromise the super-admin account through the 'Administrator email address:' field in 'General Setting.' This could result in theft of cookies and session tokens.

Mitigation:

To mitigate this vulnerability, it is recommended to sanitize user input by implementing proper input validation and output encoding. Additionally, restricting special characters in input fields can help prevent XSS attacks.
Source

Exploit-DB raw data:

# Exploit Title: Stored Cross-Site Scripting (XSS) in LimeSurvey Community
Edition Version 5.3.32+220817
# Exploit Author: Subhankar Singh
# Date: 2024-02-03
# Vendor: LimeSurvey
# Software Link: https://community.limesurvey.org/releases/
# Version: LimeSurvey Community Edition Version 5.3.32+220817
# Tested on: Windows (Client)
# CVE: CVE-2024-24506

## Description:

A critical security vulnerability exists in LimeSurvey Community Edition
Version 5.3.32+220817, particularly in the "General Setting"
functionality's "Administrator email address:" field. This allows an
attacker to compromise the super-admin account, leading to potential theft
of cookies and session tokens.

## Background:

Cross-site scripting (XSS) is a common web security vulnerability that
compromises user interactions with a vulnerable application. Stored XSS
occurs when user input is stored in the application and executed whenever a
user triggers or visits the page.

## Issue:

LimeSurvey fails to properly validate user-supplied input on both client
and server sides, despite some protective measures. The "Administrator
email address:" field within the "General Setting" functionality permits
the insertion of special characters, enabling the injection of malicious
JavaScript payloads. These payloads are stored in the database and executed
when the user saves or reloads the page.

## Steps To Reproduce:

1. Log into the LimeSurvey application.
2. Navigate to the general settings.
3. Insert the following JavaScript payload in the "Administrator email
address:" field:
Payload: `abcxyz@gmail.com"><u>s</u><svg
onload=confirm(document.domain)>`

## Expected Result:

The LimeSurvey application should display an alert with the domain after
clicking save and reloading the page.

## Actual Result:

The LimeSurvey application is vulnerable to Stored Cross-Site Scripting, as
evidenced by the successful execution of the injected payload.

## Proof of Concept:

Attached Screenshots for the reference.