what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

WordPress Splashing Images 2.1 Cross Site Scripting / PHP Object Injection

WordPress Splashing Images 2.1 Cross Site Scripting / PHP Object Injection
Posted Jan 26, 2018
Authored by Nicolas Buzy-Debat

WordPress Splashing Images plugin version 2.1 suffers from PHP object injection and cross site scripting vulnerabilities.

tags | exploit, php, vulnerability, xss
advisories | CVE-2018-6194, CVE-2018-6195
SHA-256 | f823008fea66b0021c833453bd6c4aac61316139e958c6f79169a07a153f4d42

WordPress Splashing Images 2.1 Cross Site Scripting / PHP Object Injection

Change Mirror Download
Product: WordPress Splashing Images Plugin - https://wordpress.org/plugins/wp-splashing-images/
Vendor: Studio Espresso
Tested version: 2.1


** CVE ID: CVE-2018-6194 **

:: CVE description ::
A cross-site scripting (XSS) vulnerability in admin/partials/wp-splashing-admin-sidebar.php in the wp-splashing-images plugin before 2.1.1 for WordPress allows remote attackers to inject arbitrary web script or HTML via the search parameter to wp-admin/upload.php.

:: Technical details ::
In wp-splashing-images/admin/partials/wp-splashing-admin-sidebar.php:9, the search HTTP GET parameter is directly echoed into the value attribute of an HTML form field without proper sanitization. An attacker can close the HTML input tag with the "> expression and inject arbitrary HTML/JavaScript code.

Vulnerable code:

<input type="search" id="post-search-input-splashing" name="search" value="<?php echo $_GET['search']; ?>" placeholder="<?php _e('Search unsplash.com', 'wp-splashing-images'); ?>">

https://plugins.trac.wordpress.org/browser/wp-splashing-images/trunk/admin/partials/wp-splashing-admin-sidebar.php?rev=1675965#L9

:: Proof of Concept ::
http://<host>/wp-admin/upload.php?page=wp-splashing&search="><script>alert(document.cookie);</script>


** CVE ID: CVE-2018-6195 **

:: CVE description ::
admin/partials/wp-splashing-admin-main.php in the wp-splashing-images plugin before 2.1.1 for WordPress allows authenticated (administrator, editor, or author) remote attackers to conduct PHP Object Injection attacks via crafted serialized data in the 'session' HTTP GET parameter to wp-admin/upload.php.

:: Technical details ::
In wp-splashing-images/admin/partials/wp-splashing-admin-main.php:23, the contents of the session HTTP GET parameter is base64-decoded and then unserialized.

Vulnerable code:

<?php if($_GET['session']) {
$data = unserialize(base64_decode($_GET['session']));

https://plugins.trac.wordpress.org/browser/wp-splashing-images/trunk/admin/partials/wp-splashing-admin-main.php?rev=1675965#L23

By carefully crafting a URL, a remote and authenticated (administrator, editor or author) attacker can inject a base64-encoded serialized PHP object into the current WordPress instance. Depending on the available classes within the current context and on what actions are performed within their relevant magic methods (such as __wakeup() or __destruct() ), impacts can go from arbitrary file deletion to arbitrary code execution.

:: Proof of Concept ::
Using pluginvulnerabilities.com's plugin [1], we can easily check that this vulnerability is exploitable:
http://<host>/wp-admin/upload.php?page=wp-splashing&session=TzoyMDoiUEhQX09iamVjdF9JbmplY3Rpb24iOjA6e30%3D

[1] https://www.pluginvulnerabilities.com/2017/07/24/wordpress-plugin-for-use-in-testing-for-php-object-injection/


** Solution **
Update to version 2.1.1


** Timeline **
10/01/2018: vendor contacted; vendor gives the e-mail address to send the report to
12/01/2018: report sent to vendor
22/01/2018: requested an update regarding the release date of the fix; vendor releases the fix on that day
26/01/2018: report published


** Credits **
Vulnerabilities discovered by Nicolas Buzy-Debat working at Orange Cyberdefense Singapore (CERT-LEXSI).

--
Best Regards,

Nicolas Buzy-Debat
Orange Cyberdefense Singapore (CERT-LEXSI)
_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.



Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close