Image Hub <= 1.2.0 - Authenticated (Subscriber+) Sensitive Information Exposure in Admin Page HTML
What fixes it
No source in this snapshot names a fixed version.
Description
The Image Hub – Free Images from Unsplash, Pixabay, Pexels, Openverse & Giphy plugin for WordPress is vulnerable to Sensitive Information Exposure in all versions up to, and including, 1.2.0 via the 'image_hub_api_keys_* (6 options)' parameter. This makes it possible for authenticated attackers, with subscriber-level access and above, to extract the plaintext API credentials for six third-party services — Giphy, Openverse (client ID and secret), Pexels, Pixabay, and Unsplash — emitted verbatim into every admin page's HTML via wp_localize_script. The leaked page HTML also contains a valid image_hub_nonce AJAX nonce, which — combined with the absence of any capability check in the image_hub_update_settings AJAX handler — allows the same Subscriber-level attacker to overwrite all six stored API credential options via update_option().
Text from CVE List
Affected versions 1
- Image Hub – Free Images from Unsplash, Pixabay, Pexels, Openverse & Giphyaffected: all versions through 1.2.0CVE List
References 9
- wordfence.com/threat-intel/vulnerabilities/id/99d1e0cc-1fd0-47f7-8b73-33663ed72eea?source=cveReferencevia CVE List
- plugins.trac.wordpress.org/browser/image-hub/tags/1.2.0/inc/src/MediaModal.php#L38Referencevia CVE List
- plugins.trac.wordpress.org/browser/image-hub/tags/1.2.0/inc/src/MediaModal.php#L19Referencevia CVE List
- plugins.trac.wordpress.org/browser/image-hub/tags/1.2.0/inc/src/Settings.php#L78Referencevia CVE List
- plugins.trac.wordpress.org/browser/image-hub/tags/1.2.0/image-hub.php#L46Referencevia CVE List
- plugins.trac.wordpress.org/browser/image-hub/tags/1.2.0/inc/src/Settings.php#L23Referencevia CVE List
- plugins.trac.wordpress.org/browser/image-hub/tags/1.2.0/inc/src/MediaModal.php#L56Referencevia CVE List
- plugins.trac.wordpress.org/browser/image-hub/tags/1.2.0/inc/src/Utils.php#L11Referencevia CVE List
- plugins.trac.wordpress.org/changeset/3745452/image-hub/trunk/inc/src/MediaModal.phpReferencevia CVE List