Plugin Directory

Changeset 1637420


Ignore:
Timestamp:
04/14/2017 07:39:56 AM (9 years ago)
Author:
wpecommerce
Message:

.committing version 1.2.5

Location:
easy-wp-smtp/trunk
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • easy-wp-smtp/trunk/easy-wp-smtp-admin-menu.php

    r1598500 r1637420  
    4242        $swpsmtp_options['smtp_settings']['autentication'] = ( isset($_POST['swpsmtp_smtp_autentication']) ) ? sanitize_text_field($_POST['swpsmtp_smtp_autentication']) : 'yes';
    4343        $swpsmtp_options['smtp_settings']['username'] = sanitize_text_field($_POST['swpsmtp_smtp_username']);
    44         $smtp_password = trim($_POST['swpsmtp_smtp_password']);
     44        $smtp_password = sanitize_text_field($_POST['swpsmtp_smtp_password']);
    4545        $swpsmtp_options['smtp_settings']['password'] = base64_encode($smtp_password);
    4646
     
    6565
    6666    /* Send test letter */
     67    $swpsmtp_to = '';
    6768    if (isset($_POST['swpsmtp_test_submit']) && check_admin_referer(plugin_basename(__FILE__), 'swpsmtp_nonce_name')) {
    6869        if (isset($_POST['swpsmtp_to'])) {
    69             if (is_email($_POST['swpsmtp_to'])) {
    70                 $swpsmtp_to = $_POST['swpsmtp_to'];
     70            $to_email = sanitize_text_field($_POST['swpsmtp_to']);
     71            if (is_email($to_email)) {
     72                $swpsmtp_to = $to_email;
    7173            } else {
    7274                $error .= __("Please enter a valid email address in the recipient email field.", 'easy-wp-smtp');
    7375            }
    7476        }
    75         $swpsmtp_subject = isset($_POST['swpsmtp_subject']) ? $_POST['swpsmtp_subject'] : '';
    76         $swpsmtp_message = isset($_POST['swpsmtp_message']) ? $_POST['swpsmtp_message'] : '';
     77        $swpsmtp_subject = isset($_POST['swpsmtp_subject']) ? sanitize_text_field($_POST['swpsmtp_subject']) : '';
     78        $swpsmtp_message = isset($_POST['swpsmtp_message']) ? sanitize_text_field($_POST['swpsmtp_message']) : '';
    7779       
    7880        //Save the test mail details so it doesn't need to be filled in everytime.
     
    164166                        <th><?php _e('SMTP Password', 'easy-wp-smtp'); ?></th>
    165167                        <td>
    166                             <input type='password' name='swpsmtp_smtp_password' value='<?php echo esc_attr(swpsmtp_get_password()); ?>' /><br />
     168                            <input type='password' name='swpsmtp_smtp_password' value='' /><br />
    167169                            <p class="description"><?php _e("The password to login to your mail server", 'easy-wp-smtp'); ?></p>
    168170                        </td>
     
    193195                        <th scope="row"><?php _e("To", 'easy-wp-smtp'); ?>:</th>
    194196                        <td>
    195                             <input type="text" name="swpsmtp_to" value="<?php echo $smtp_test_mail['swpsmtp_to']; ?>" /><br />
     197                            <input type="text" name="swpsmtp_to" value="<?php echo esc_html($smtp_test_mail['swpsmtp_to']); ?>" /><br />
    196198                            <p class="description"><?php _e("Enter the recipient's email address", 'easy-wp-smtp'); ?></p>
    197199                        </td>
     
    200202                        <th scope="row"><?php _e("Subject", 'easy-wp-smtp'); ?>:</th>
    201203                        <td>
    202                             <input type="text" name="swpsmtp_subject" value="<?php echo $smtp_test_mail['swpsmtp_subject']; ?>" /><br />
     204                            <input type="text" name="swpsmtp_subject" value="<?php echo esc_html($smtp_test_mail['swpsmtp_subject']); ?>" /><br />
    203205                            <p class="description"><?php _e("Enter a subject for your message", 'easy-wp-smtp'); ?></p>
    204206                        </td>
     
    207209                        <th scope="row"><?php _e("Message", 'easy-wp-smtp'); ?>:</th>
    208210                        <td>
    209                             <textarea name="swpsmtp_message" id="swpsmtp_message" rows="5"><?php echo $smtp_test_mail['swpsmtp_message']; ?></textarea><br />
     211                            <textarea name="swpsmtp_message" id="swpsmtp_message" rows="5"><?php echo esc_textarea($smtp_test_mail['swpsmtp_message']); ?></textarea><br />
    210212                            <p class="description"><?php _e("Write your email message", 'easy-wp-smtp'); ?></p>
    211213                        </td>
  • easy-wp-smtp/trunk/easy-wp-smtp.php

    r1598500 r1637420  
    22/*
    33Plugin Name: Easy WP SMTP
    4 Version: 1.2.4
     4Version: 1.2.5
    55Plugin URI: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197
    66Author: wpecommerce
  • easy-wp-smtp/trunk/readme.txt

    r1598500 r1637420  
    55Requires at least: 4.3
    66Tested up to: 4.7
    7 Stable tag: 1.2.4
     7Stable tag: 1.2.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7575
    7676== Changelog ==
     77
     78= 1.2.5 =
     79* Fixed two possible XSS vulnerabilities that were affecting the email subject and email body input fields.
     80* The saved SMTP password is no longer displayed on the screen. This was a security concern for websites administered by multiple users.
    7781
    7882= 1.2.4 =
Note: See TracChangeset for help on using the changeset viewer.