Zero-Day Advisory

Fortinet Discovers WordPress Gallery PhotoBlocks Plugin Cross-Site Scripting Vulnerability


Fortinet's FortiGuard Labs has discovered a cross-site scripting (XSS) vulnerability in WordPress Gallery PhotoBlocks Plugin.

Gallery Photoblocks is an image and photo gallery plugin that allows users to make galleries with justified edges and lightbox (zoom) features. The plugin has over 4000+ installations and comes with a handy builder that enables easy customization.

The vulnerability is due to insufficient validation of gallery name parameter and image caption parameter. A remote attacker (any authenticated low privileged user) can exploit this to execute arbitrary script code within the context of the application.


FortiGuard Labs released the following FortiGate IPS signature which covers this specific vulnerability:

Released Jul 23, 2020

Upgrade to  the version 1.2.0.


Fortinet reported the vulnerability to Macho Themes on July 13, 2020 

 Macho Themes confirmed the vulnerability on July 15, 2020 

 Macho Themes fixed the vulnerability on July 15, 2020 


This vulnerability was discovered by Vishnupriya Ilango of Fortinet's FortiGuard Labs.

IPS Subscription

Fortinet customers who subscribe to Fortinet's intrusion prevention (IPS) service should be protected against this vulnerability with the appropriate configuration parameters in place. Fortinet's IPS service is one component of FortiGuard Subscription Services, which also offer comprehensive solutions such as antivirus, Web content filtering and antispam capabilities. These services enable protection against threats on both application and network layers. FortiGuard Services are continuously updated by FortiGuard Labs, which enables Fortinet to deliver a combination of multi-layered security intelligence and true zero-day protection from new and emerging threats. These updates are delivered to all FortiGate, FortiMail and FortiClient products. Fortinet strictly follows responsible disclosure guidelines to ensure optimum protection during a threat's lifecycle.