Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Addresses add_query_arg vulnerability
Browse files Browse the repository at this point in the history
git-svn-id: https://plugins.svn.wordpress.org/simplr-registration-form/trunk@1154851 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
mpvanwinkle77 committed May 6, 2015
1 parent ba96308 commit d588446
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/mod.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
if(!function_exists('simplr_views_users')):
function simplr_views_users( $views ) {
$class = (@$_GET['view_inactive'] == true) ? 'current':'';
$views['view_inactive'] = '<a href="'.add_query_arg(array('view_inactive' => 'true')).'" class="'.$class.'" >'. __('Inactive Users','simplr-reg') . ' ('.simplr_count_inactive().')</a>';
$views['view_inactive'] = '<a href="'.esc_url(add_query_arg(array('view_inactive' => 'true'))).'" class="'.$class.'" >'. __('Inactive Users','simplr-reg') . ' ('.simplr_count_inactive().')</a>';
return $views;
}
endif;
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: mpvanwinkle77, mpol
Donate link: http://www.mikevanwinkle.com/
Tags: registration, signup, profile, cms, users, user management, user profile
Requires at least: 3.0
Tested up to: 4.2
Stable tag: 2.3.4
Tested up to: 4.2.1
Stable tag: 2.3.5

This plugin allows users to easily add a custom user registration form anywhere on their site using simple shortcode.

Expand Down Expand Up @@ -53,6 +53,9 @@ For the banners we credit:

== Changelog ==

= 2.3.5 =
* properly escape add_query_arg inputs

= 2.3.4 =
* 2015-04-18
* Really use the Email From address for emails.
Expand Down
2 changes: 1 addition & 1 deletion simplr_reg_page.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
Plugin Name: Simplr User Registration Form Plus
Version: 2.3.4
Version: 2.3.5
Description: This a simple plugin for adding a custom user registration form to any post or page using shortcode.
Author: Mike Van Winkle
Author URI: http://www.mikevanwinkle.com
Expand Down
2 changes: 1 addition & 1 deletion views/fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function update_field_sort(event,ui) {
});
</script>
<div class="inner">
<form action="<?php echo add_query_arg(array('action'=>'add')); ?>" method="post" id="add-field">
<form action="<?php echo esc_url(add_query_arg(array('action'=>'add'))); ?>" method="post" id="add-field">
<?php SREG_Form::text(array('name'=>'label','label'=>__('Field Label','simplr-reg'),'required'=>true,'comment'=>__('Human readable name for display to users','simplr-reg')),esc_attr(@$field->label),'wide'); ?>
<?php SREG_Form::text(array('name'=>'key','label'=>__('Field Key','simplr-reg'),'required'=>true,'comment'=>__('Machine readable name to represent this field in the Database','simplr-reg')),esc_attr(@$field->key),'wide'); ?>

Expand Down

0 comments on commit d588446

Please sign in to comment.