Photo Gallery, Sliders, Proofing and Themes <= 4.4.1 - Authenticated (Custom+) Local File Inclusion via Lightroom 'gallery_edit' Task…
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
The Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 4.4.1 via the legacy_render function. This is due to broken authorization on the Lightroom gallery_edit endpoint combined with mass assignment of gallery path and unrestricted file upload into a registered template directory, whose extension check uses a substring match that accepts sanitized .php_ filenames as valid templates. This makes it possible for authenticated attackers, with custom-level access and above, to execute code on the server. Exploitation requires the authenticated attacker to be the stored author of at least one existing NextGEN gallery, as ownership of that gallery is the sole authorization check gating the mass-assignment and upload steps.
Timeline
- CVE published
- First seen by cve.now
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery
through 4.4.1
References 8
plugins.trac.wordpress.org
- browser/nextgen-gallery/tags/4.3.0/src/DisplayType/Controller.php#L564
- browser/nextgen-gallery/tags/4.3.0/src/Lightroom/Controller.php#L45
- browser/nextgen-gallery/tags/4.3.0/src/Lightroom/Controller.php#L197
- browser/nextgen-gallery/tags/4.3.0/src/Lightroom/Controller.php#L1355
- browser/nextgen-gallery/tags/4.3.0/src/Lightroom/Controller.php#L1465
- browser/nextgen-gallery/tags/4.3.0/src/DisplayType/LegacyTemplateLocator.php#L142
- changeset/3699076/nextgen-gallery/trunk/src/DisplayType/Controller.php