CVE-2024-12114

The FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 2.4.29 via the foogallery_attachment_modal_save AJAX action due to missing validation on a user controlled key (img_id). This makes it possible for authenticated attackers, with granted access and above, to update arbitrary post and page content. This requires the Gallery Creator Role setting to be a value lower than 'Editor' for there to be any real impact.
Configurations

Configuration 1 (hide)

cpe:2.3:a:fooplugins:foogallery:*:*:*:*:-:wordpress:*:*

History

12 Mar 2025, 16:24

Type Values Removed Values Added
First Time Fooplugins
Fooplugins foogallery
CPE cpe:2.3:a:fooplugins:foogallery:*:*:*:*:-:wordpress:*:*
Summary
  • (es) El complemento FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel para WordPress es vulnerable a la referencia directa a objetos inseguros en todas las versiones hasta la 2.4.29 incluida a través de la acción AJAX foogallery_attachment_modal_save debido a la falta de validación en una clave controlada por el usuario (img_id). Esto hace posible que atacantes autenticados, con acceso otorgado o superior, actualicen contenido arbitrario de publicaciones y páginas. Esto requiere que la configuración del rol de creador de la galería sea un valor inferior a "Editor" para que haya un impacto real.
References () https://github.com/fooplugins/foogallery/blob/master/includes/admin/class-gallery-attachment-modal.php#L242 - () https://github.com/fooplugins/foogallery/blob/master/includes/admin/class-gallery-attachment-modal.php#L242 - Product
References () https://plugins.trac.wordpress.org/changeset/3250684/foogallery/tags/2.4.30/includes/admin/class-gallery-attachment-modal.php?old=3229839&old_path=foogallery%2Ftags%2F2.4.29%2Fincludes%2Fadmin%2Fclass-gallery-attachment-modal.php - () https://plugins.trac.wordpress.org/changeset/3250684/foogallery/tags/2.4.30/includes/admin/class-gallery-attachment-modal.php?old=3229839&old_path=foogallery%2Ftags%2F2.4.29%2Fincludes%2Fadmin%2Fclass-gallery-attachment-modal.php - Patch
References () https://www.wordfence.com/threat-intel/vulnerabilities/id/f4fe3ad9-247f-4e5d-8c79-0970afaa7729?source=cve - () https://www.wordfence.com/threat-intel/vulnerabilities/id/f4fe3ad9-247f-4e5d-8c79-0970afaa7729?source=cve - Third Party Advisory

08 Mar 2025, 06:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-03-08 06:15

Updated : 2025-03-12 16:24


NVD link : CVE-2024-12114

Mitre link : CVE-2024-12114

CVE.ORG link : CVE-2024-12114


JSON object : View

Products Affected

fooplugins

  • foogallery
CWE
CWE-639

Authorization Bypass Through User-Controlled Key