CVE-2026-76006
The Photo Gallery by Ays – Responsive Image Gallery plugin for WordPress is vulnerable to generic SQL Injection via the 's' parameter in all versions up to, and including, 6.8.2 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with administrator-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The vulnerability exists across two execution paths — $wpdb->get_var() in record_count() and $wpdb->get_results() in prepare_items()/get_image_categories() — enabling both blind and UNION-based exfiltration techniques.
Faiblesse
The Photo Gallery by Ays – Responsive Image Gallery plugin for WordPress is vulnerable to generic SQL Injection via the 's' parameter in all versions up to, and including, 6.8.2 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with administrator-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The vulnerability exists across two execution paths — $wpdb->get_var() in record_count() and $wpdb->get_results() in prepare_items()/get_image_categories() — enabling both blind and UNION-based exfiltration techniques.
Références
- https://plugins.trac.wordpress.org/browser/gallery-photo-gallery/tags/6.8.2/includes/lists/class-gallery-photo-gallery-categories-list-table.php#L224
- https://plugins.trac.wordpress.org/browser/gallery-photo-gallery/tags/6.8.2/includes/lists/class-gallery-photo-gallery-categories-list-table.php#L226
- https://plugins.trac.wordpress.org/browser/gallery-photo-gallery/tags/6.8.2/includes/lists/class-gallery-photo-gallery-categories-list-table.php#L234
- https://plugins.trac.wordpress.org/browser/gallery-photo-gallery/tags/6.8.2/includes/lists/class-gallery-photo-gallery-categories-list-table.php#L428
- https://plugins.trac.wordpress.org/browser/gallery-photo-gallery/tags/6.8.2/includes/lists/class-gallery-photo-gallery-categories-list-table.php#L63
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3655818%40gallery-photo-gallery&new=3655818%40gallery-photo-gallery
Trouvez la faille avant un attaquant.
Connectez-vous avec GitHub et lancez votre premier audit en moins d'une minute. L'offre gratuite ne nécessite aucune carte bancaire.