Skip to content

Commit

Permalink
Cast user ID to integer to fix reflected XSS
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcanhelp committed Dec 17, 2019
1 parent d5c5c0d commit 9d7777b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## [3.7.3](https://github.com/auth0/wp-auth0/tree/3.7.3) (2019-12-17)
[Full Changelog](https://github.com/auth0/wp-auth0/compare/3.7.1...3.7.3)

**Fixed**
- Cast user ID to integer to fix reflected XSS

## [3.7.1](https://github.com/auth0/wp-auth0/tree/3.7.1) (2018-10-08)
[Full Changelog](https://github.com/auth0/wp-auth0/compare/3.7.0...3.7.1)

Expand Down
4 changes: 2 additions & 2 deletions WP_Auth0.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
/**
* Plugin Name: Login by Auth0
* Description: Login by Auth0 provides improved username/password login, Passwordless login, Social login and Single Sign On for all your sites.
* Version: 3.7.1
* Version: 3.7.3
* Author: Auth0
* Author URI: https://auth0.com
* Text Domain: wp-auth0
*/
define( 'WPA0_VERSION', '3.7.1' );
define( 'WPA0_VERSION', '3.7.3' );
define( 'AUTH0_DB_VERSION', 19 );

define( 'WPA0_PLUGIN_FILE', __FILE__ );
Expand Down
4 changes: 2 additions & 2 deletions lib/WP_Auth0_EditProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function DeleteAuth0Data(event) {

var data = {
'action': 'auth0_delete_data',
'user_id': '<?php echo $_GET['user_id']; ?>'
'user_id': '<?php echo (int) $_GET['user_id']; ?>'
};

var successMsg = "<?php _e( 'Done!', 'wp-auth0' ); ?>";
Expand Down Expand Up @@ -191,7 +191,7 @@ function DeleteMFA(event) {

var data = {
'action': 'auth0_delete_mfa',
'user_id': '<?php echo $_GET['user_id']; ?>'
'user_id': '<?php echo (int) $_GET['user_id']; ?>'
};

var successMsg = "<?php _e( 'Done!', 'wp-auth0' ); ?>";
Expand Down

0 comments on commit 9d7777b

Please sign in to comment.