Headline
CVE-2022-2039: livesupporti.php in livesupporti/trunk – WordPress Plugin Repository
The Free Live Chat Support plugin for WordPress is vulnerable to Cross-Site Request Forgery in versions up to, and including 1.0.11. This is due to missing nonce protection on the livesupporti_settings() function found in the ~/livesupporti.php file. This makes it possible for unauthenticated attackers to inject malicious web scripts into the page, granted they can trick a site’s administrator into performing an action such as clicking on a link.
1<?php2/*3 Plugin Name: LiveSupporti4 Plugin URI: https://livesupporti.com5 Description: A plugin that allows to add <strong>live support chat</strong> on a WordPress website. To get started just click <strong>Activate</strong>.6 Version: 1.0.67 Author: LiveSupporti8 Author URI: https://livesupporti.com9 License: GPL210 11 This program is free software; you can redistribute it and/or modify12 it under the terms of the GNU General Public License, version 2, as 13 published by the Free Software Foundation.1415 This program is distributed in the hope that it will be useful,16 but WITHOUT ANY WARRANTY; without even the implied warranty of17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the18 GNU General Public License for more details.1920 You should have received a copy of the GNU General Public License21 along with this program; if not, write to the Free Software22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA23*/2425//add_action('init’, ‘do_output_buffer’);2627add_action('wp_footer’, ‘livesupporti_init’);2829add_action('admin_menu’, ‘getLiveSupportiAdminMenu’);3031register_activation_hook( __FILE__, ‘livesupporti_activate_plugin’ );3233add_action('admin_init’, ‘redirectToLiveSupportiAdminPage’);3435//function do_output_buffer() {36// ob_start();37//}3839function livesupporti_init() {40 $license = get_option(‘liveSupportiLicense’);41 $skin = get_option(‘liveSupportiSkin’);42 addLiveSupportiScript($license, $skin);43}4445function addLiveSupportiScript($license, $skin) {46 if ($license != ‘’ && $skin != ‘’)47 {48 echo '49 <!-- Live chat by LiveSupporti - https://livesupporti.com -->50 <script type="text/javascript">51 (function() {52 var s=document.createElement(“script”);s.type="text/javascript";s.async=true;s.id="lsInitScript";53 s.src = “https://livesupporti.com/Scripts/clientAsync.js?acc=’.$license.’&skin=’.$skin.’";54 var scr=document.getElementsByTagName(“script”)[0];scr.parentNode.appendChild(s, scr);55 })();56 </script>57 ';58 } 59}6061function getLiveSupportiAdminMenu() {62 $icon = “https://livesupporti.com/Images/favicon.png";63 add_menu_page('LiveSupporti’, 'LiveSupporti’, 10, dirname( __FILE__ ) . '/livesupporti.php’, '’, $icon);64 add_submenu_page(dirname( __FILE__ ) . '/livesupporti.php’, 'Settings’, 'Settings’, 'manage_options’, dirname( __FILE__ ) . '/livesupporti.php’, ‘livesupporti_settings’);65}6667function livesupporti_settings() {68 if (!current_user_can(‘manage_options’)) {69 wp_die(__(‘You do not have sufficient permissions to access this page.’));70 }71 72 $hidLiveSupporti = 'hidLiveSupporti’;7374 if(isset($_POST[$hidLiveSupporti]) && $_POST[$hidLiveSupporti] == ‘IsPostBack’) {75 $pk = $_POST[‘txtLicense’];76 $pk = trim($pk);77 update_option('liveSupportiLicense’, $pk);78 update_option('liveSupportiSkin’, $_POST[‘selectLiveSupportiSkin’]);79?>80<div><p><?php _e('<span style="color:#61D400;font-size:14px;background-color:#FFFFFF;border:1px solid #61D400;padding:5px;border-radius: 2px; -webkit-border-radius: 2px; -moz-border-radius: 2px;margin-right: 10px;">Changes have been saved.</span> <strong><a href="https://livesupporti.com/live">Start using LiveSupporti now.</a></strong>’, ‘menu-general’ );?></p></div>81<?php82}83?>84 <div style=’padding:15px 15px 15px 0px;’>85 <div style=’padding:15px;border:1px solid #e5e5e5;background-color:#FFFFFF;’>86 <form name="form1” method="post” action="">87 <img src="<?php echo plugin_dir_url( __FILE__ ).’logo.png’; ?>"/>88 <input type="hidden" name="<?php echo $hidLiveSupporti; ?>" value="IsPostBack">89 <h1 style="color:#1FB9F2">Getting Started with LiveSupporti</h1>90 <br/>91 <h3>Step 1</h3>92 <p style="font-size:14px;">To add the live chat plugin on your website you need a LiveSupporti account. If you don’t have an account you can <a href="https://livesupporti.com/plugins/live-chat-for-wordpress" target="_blank" title="Get free live support chat">sign up here</a>.</p>93 <h3>Step 2</h3>94 <p style="font-size:14px;">Copy your <a href="https://livesupporti.com/pk" target="_blank">product key from here</a>, paste it below, select your skin and click <b>’Save’</b>.</p>95 <br>96 <span style="font-size:14px;display:inline-block;width:80px;">Product key:</span>97 <input type="text" name="txtLicense" size="50" value="<?php echo get_option(‘liveSupportiLicense’) ?>">98 <div>99 <span style="display:inline-block;width:80px;margin-top:15px;font-size:14px;">Skin:</span>100 101 <select name="selectLiveSupportiSkin" style="margin-top:15px;vertical-align:baseline">102 <?php103 $skin = get_option(‘liveSupportiSkin’);104 $skins = array(‘Classic’=>’Classic’, ‘Modern’=>’Modern’);105 foreach ($skins as $val => $label)106 {107 $selected = ($skin == $val) ? "selected=’selected’":’’;108 echo "<option value=’$val’ $selected>$label</option>\n";109 }110 ?>111 </select>112 </div>113 <p class="submit">114 <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e(‘Save’) ?>" />115 </p>116 <h3>Step 3</h3>117 <p style="font-size:14px;"><a href="https://livesupporti.com/login" target="_blank">Sign in</a> and click on <b>’Live’</b> in your LiveSupporti dashboard.</p>118 </form>119 </div>120 </div>121<?php122}123?>124<?php125function livesupporti_activate_plugin() {126 add_option('redirectToLiveSupportiAdminPage’, true);127}128129function redirectToLiveSupportiAdminPage() {130 if (get_option('redirectToLiveSupportiAdminPage’, false)) {131 delete_option(‘redirectToLiveSupportiAdminPage’);132 wp_redirect(admin_url(‘admin.php?page=livesupporti/livesupporti.php’));133 }134}135?>
Related news
The Image Hover Effects Ultimate plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Video Link values that can be added to an Image Hover in versions up to, and including, 9.7.3 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. By default, the plugin only allows administrators access to edit Image Hovers, however, if a site admin makes the plugin's features available to lower privileged users through the 'Who Can Edit?' setting then this can be exploited by those users.
The WP Cerber Security plugin for WordPress is vulnerable to security protection bypass in versions up to, and including 9.0, that makes user enumeration possible. This is due to improper validation on the value supplied through the 'author' parameter found in the ~/cerber-load.php file. In vulnerable versions, the plugin only blocks requests if the value supplied is numeric, making it possible for attackers to supply additional non-numeric characters to bypass the protection. The non-numeric characters are stripped and the user requested is displayed. This can be used by unauthenticated attackers to gather information about users that can targeted in further attacks.
The Beaver Builder – WordPress Page Builder for WordPress is vulnerable to Stored Cross-Site Scripting via the 'Caption - On Hover' value associated with images in versions up to, and including, 2.5.5.2 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers with access to the Beaver Builder editor to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
The Link Optimizer Lite plugin for WordPress is vulnerable to Cross-Site Request Forgery to Cross-Site Scripting in versions up to, and including 1.4.5. This is due to missing nonce validation on the admin_page function found in the ~/admin.php file. This makes it possible for unauthenticated attackers to modify the plugin's settings and inject malicious web scripts via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.
The uContext for Amazon plugin for WordPress is vulnerable to Cross-Site Request Forgery to Cross-Site Scripting in versions up to, and including 3.9.1. This is due to missing nonce validation in the ~/app/sites/ajax/actions/keyword_save.php file that is called via the doAjax() function. This makes it possible for unauthenticated attackers to modify the plugin's settings and inject malicious web scripts via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.
The Beaver Builder – WordPress Page Builder for WordPress is vulnerable to Stored Cross-Site Scripting via the 'Image URL' value found in the Media block in versions up to, and including, 2.5.5.2 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers with access to the Beaver Builder editor to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
The WP Users Exporter plugin for WordPress is vulnerable to CSV Injection in versions up to, and including, 1.4.2 via the 'Export Users' functionality. This makes it possible for authenticated attackers, such as a subscriber, to add untrusted input into profile information like First Names that will embed into the exported CSV file triggered by an administrator and can result in code execution when these files are downloaded and opened on a local system with a vulnerable configuration.
The Banner Cycler plugin for WordPress is vulnerable to Cross-Site Request Forgery in versions up to, and including 1.4. This is due to missing nonce protection on the pabc_admin_slides_postback() function found in the ~/admin/admin.php file. This makes it possible for unauthenticated attackers to inject malicious web scripts into the page, granted they can trick a site’s administrator into performing an action such as clicking on a link.
The Stockists Manager for Woocommerce plugin for WordPress is vulnerable to Cross-Site Request Forgery in versions up to, and including, 1.0.2.1. This is due to missing nonce validation on the stockist_settings_main() function. This makes it possible for unauthenticated attackers to modify the plugin's settings and inject malicious web scripts via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.
The String Locator plugin for WordPress is vulnerable to deserialization of untrusted input via the 'string-locator-path' parameter in versions up to, and including 2.5.0. This makes it possible for unauthenticated users to call files using a PHAR wrapper, granted they can trick a site administrator into performing an action such as clicking on a link, that will deserialize and call arbitrary PHP Objects that can be used to perform a variety of malicious actions granted a POP chain is also present. It also requires that the attacker is successful in uploading a file with the serialized payload.
The WordPress Infinite Scroll – Ajax Load More plugin for WordPress is vulnerable to deserialization of untrusted input via the 'alm_repeaters_export' parameter in versions up to, and including 5.5.3. This makes it possible for unauthenticated users to call files using a PHAR wrapper, granted they can trick a site administrator into performing an action such as clicking on a link, that will deserialize and call arbitrary PHP Objects that can be used to perform a variety of malicious actions granted a POP chain is also present. It also requires that the attacker is successful in uploading a file with the serialized payload.
The Visual Composer Website Builder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'Text Block' feature in versions up to, and including, 45.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers with access to the visual composer editor to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
The Image Hover Effects Ultimate plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Media Image URL value that can be added to an Image Hover in versions up to, and including, 9.7.3 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. By default, the plugin only allows administrators access to edit Image Hovers, however, if a site admin makes the plugin's features available to lower privileged users through the 'Who Can Edit?' setting then this can be exploited by those users.
The Visual Composer Website Builder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the post/page 'Title' value in versions up to, and including, 45.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers with access to the visual composer editor to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
The Beaver Builder – WordPress Page Builder for WordPress is vulnerable to Stored Cross-Site Scripting via the 'caption' parameter added to images via the media uploader in versions up to, and including, 2.5.5.2 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers with access to the Beaver Builder editor and the ability to upload media files to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
The plugin WP All Import is vulnerable to arbitrary file uploads due to missing file type validation via the wp_all_import_get_gz.php file in versions up to, and including, 3.6.7. This makes it possible for authenticated attackers, with administrator level permissions and above, to upload arbitrary files on the affected sites server which may make remote code execution possible.
The DX Share Selection plugin for WordPress is vulnerable to Cross-Site Request Forgery in versions up to, and including 1.4. This is due to missing nonce protection on the dxss_admin_page() function found in the ~/dx-share-selection.php file. This makes it possible for unauthenticated attackers to inject malicious web scripts into the page, granted they can trick a site's administrator into performing an action such as clicking on a link.
The Visualizer: Tables and Charts Manager for WordPress plugin for WordPress is vulnerable to deserialization of untrusted input via the 'remote_data' parameter in versions up to, and including 3.7.9. This makes it possible for authenticated attackers with contributor privileges and above to call files using a PHAR wrapper that will deserialize the data and call arbitrary PHP Objects that can be used to perform a variety of malicious actions granted a POP chain is also present. It also requires that the attacker is successful in uploading a file with the serialized payload.
The WordPress plugin Gallery for Social Photo is vulnerable to Cross-Site Request Forgery in versions up to, and including 1.0.0.27 due to failure to properly check for the existence of a nonce in the function gifeed_duplicate_feed. This make it possible for unauthenticated attackers to duplicate existing posts or pages granted they can trick a site administrator into performing an action such as clicking on a link.
The Random Banner WordPress plugin is vulnerable to Stored Cross-Site Scripting due to insufficient escaping via the category parameter found in the ~/include/models/model.php file which allowed attackers with administrative user access to inject arbitrary web scripts, in versions up to and including 4.1.4. This affects multi-site installations where unfiltered_html is disabled for administrators, and sites where unfiltered_html is disabled.
The Variation Swatches for WooCommerce WordPress plugin is vulnerable to Stored Cross-Site Scripting via several parameters found in the ~/includes/class-menu-page.php file which allows attackers to inject arbitrary web scripts, in versions up to and including 2.1.1. Due to missing authorization checks on the tawcvs_save_settings function, low-level authenticated users such as subscribers can exploit this vulnerability.
The WordPress Popular Posts WordPress plugin is vulnerable to arbitrary file uploads due to insufficient input file type validation found in the ~/src/Image.php file which makes it possible for attackers with contributor level access and above to upload malicious files that can be used to obtain remote code execution, in versions up to and including 5.3.2.
The LearnPress WordPress plugin is vulnerable to Stored Cross-Site Scripting due to insufficient escaping on the $custom_profile parameter found in the ~/inc/admin/views/backend-user-profile.php file which allowed attackers with administrative user access to inject arbitrary web scripts, in versions up to and including 4.1.3.1. This affects multi-site installations where unfiltered_html is disabled for administrators, and sites where unfiltered_html is disabled. Please note that this is seperate from CVE-2021-24702.
The BulletProof Security WordPress plugin is vulnerable to sensitive information disclosure due to a file path disclosure in the publicly accessible ~/db_backup_log.txt file which grants attackers the full path of the site, in addition to the path of database backup files. This affects versions up to, and including, 5.1.
A vulnerability in the getSelectedMimeTypesByRole function of the WP Upload Restriction WordPress plugin allows low-level authenticated users to view custom extensions added by administrators. This issue affects versions 2.2.3 and prior.
A vulnerability in the deleteCustomType function of the WP Upload Restriction WordPress plugin allows low-level authenticated users to delete custom extensions added by administrators. This issue affects versions 2.2.3 and prior.