Changes between Initial Version and Version 1 of Ticket #29670
- Timestamp:
- 09/14/2014 06:21:28 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29670
-
Property
Summary
changed from
Admin cannot use own password to login due to programming .
toAdmin cannot use own password to log in
-
Property
Summary
changed from
-
Ticket #29670 – Description
initial v1 5 5 I was working on wordpress-3.9.2 and came across some problems. I would like you to consider this. 6 6 7 There is problem is 'user_pass' field. If I create a user on Install with password ---> ' "><iframe src=javascript:alert(1)/> '. Then I am unable to login using this password. This should not happen. Error or something should be implemented.7 There is problem is 'user_pass' field. If I create a user on Install with password ---> ` "><iframe src=javascript:alert(1)/> `. Then I am unable to login using this password. This should not happen. Error or something should be implemented. 8 8 9 9 1. In wordpress-3.9.2/wordpress/wp-admin/install.php 10 10 11 $admin_password = isset($_POST['admin_password']) ? trim( wp_unslash( $_POST['admin_password'] ) ) : ''; 11 `$admin_password = isset($_POST['admin_password']) ? trim( wp_unslash( $_POST['admin_password'] ) ) : '';` 12 12 13 13 14 wp_unslash( $_POST['admin_password'] )//here slashed are removed.14 `wp_unslash( $_POST['admin_password'] )` //here slashed are removed. 15 15 16 16 So, it is stored some hash. … … 39 39 2. Now, set up database. 40 40 3. Then you are redirected to --> wordpress-3.9.2/wordpress/wp-admin/install.php 41 4. Here enter your password as ---> ' "><iframe src=javascript:alert(1)/> ' (enter the value which is present in single quotes)41 4. Here enter your password as ---> ` "><iframe src=javascript:alert(1)/> ` 42 42 5. Now, finish the set up. 43 6. Now, on login try to enter your password as ' "><iframe src=javascript:alert(1)/> '.43 6. Now, on login try to enter your password as ` "><iframe src=javascript:alert(1)/> `. 44 44 7. You won't be able to login as there is difference. 45 45