Changeset 1637420
- Timestamp:
- 04/14/2017 07:39:56 AM (9 years ago)
- Location:
- easy-wp-smtp/trunk
- Files:
-
- 1 deleted
- 3 edited
-
easy-wp-smtp-admin-menu.php (modified) (6 diffs)
-
easy-wp-smtp.php (modified) (1 diff)
-
languages/easy-wp-smtp.mo (deleted)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-wp-smtp/trunk/easy-wp-smtp-admin-menu.php
r1598500 r1637420 42 42 $swpsmtp_options['smtp_settings']['autentication'] = ( isset($_POST['swpsmtp_smtp_autentication']) ) ? sanitize_text_field($_POST['swpsmtp_smtp_autentication']) : 'yes'; 43 43 $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']); 45 45 $swpsmtp_options['smtp_settings']['password'] = base64_encode($smtp_password); 46 46 … … 65 65 66 66 /* Send test letter */ 67 $swpsmtp_to = ''; 67 68 if (isset($_POST['swpsmtp_test_submit']) && check_admin_referer(plugin_basename(__FILE__), 'swpsmtp_nonce_name')) { 68 69 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; 71 73 } else { 72 74 $error .= __("Please enter a valid email address in the recipient email field.", 'easy-wp-smtp'); 73 75 } 74 76 } 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']) : ''; 77 79 78 80 //Save the test mail details so it doesn't need to be filled in everytime. … … 164 166 <th><?php _e('SMTP Password', 'easy-wp-smtp'); ?></th> 165 167 <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 /> 167 169 <p class="description"><?php _e("The password to login to your mail server", 'easy-wp-smtp'); ?></p> 168 170 </td> … … 193 195 <th scope="row"><?php _e("To", 'easy-wp-smtp'); ?>:</th> 194 196 <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 /> 196 198 <p class="description"><?php _e("Enter the recipient's email address", 'easy-wp-smtp'); ?></p> 197 199 </td> … … 200 202 <th scope="row"><?php _e("Subject", 'easy-wp-smtp'); ?>:</th> 201 203 <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 /> 203 205 <p class="description"><?php _e("Enter a subject for your message", 'easy-wp-smtp'); ?></p> 204 206 </td> … … 207 209 <th scope="row"><?php _e("Message", 'easy-wp-smtp'); ?>:</th> 208 210 <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 /> 210 212 <p class="description"><?php _e("Write your email message", 'easy-wp-smtp'); ?></p> 211 213 </td> -
easy-wp-smtp/trunk/easy-wp-smtp.php
r1598500 r1637420 2 2 /* 3 3 Plugin Name: Easy WP SMTP 4 Version: 1.2. 44 Version: 1.2.5 5 5 Plugin URI: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197 6 6 Author: wpecommerce -
easy-wp-smtp/trunk/readme.txt
r1598500 r1637420 5 5 Requires at least: 4.3 6 6 Tested up to: 4.7 7 Stable tag: 1.2. 47 Stable tag: 1.2.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 75 75 76 76 == 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. 77 81 78 82 = 1.2.4 =
Note: See TracChangeset
for help on using the changeset viewer.