Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security issues in URL and social fields #989

Open
3 tasks done
yuriinalivaiko opened this issue Apr 1, 2022 · 0 comments
Open
3 tasks done

Security issues in URL and social fields #989

yuriinalivaiko opened this issue Apr 1, 2022 · 0 comments
Assignees

Comments

@yuriinalivaiko
Copy link
Contributor

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only Ultimate Member plugin is active.
  • This bug happens with a default WordPress theme active, or UM Theme.
  • I can reproduce this bug consistently using the steps above.

Describe the bug

  1. URL redirection issue in some components. @ can be used to bypass the content detection of these components. For example enter a link https://facebook.com@www.example.com into the Facebook field. After updating the profile, the URL is redirected to http://www.example.com. Attackers can redirect these urls to their phishing sites.
  2. Considering the domain of wordpress is http://www.example.com and there are two people: Alice and Bob. Alice is an attacker and Bob is a normal user. If the logout page is http://www.example.com/logout, Alice puts this URL into the "Website URL" component or puts https://facebook.com@www.example.com/logout into the "Facebook" component. Then when Bob clicks Alice's Website URL or Facebook link, he will turn to logout and log out the system. The operation of logging out may not cause security issues. However, if the operation is sensitive, it may cause serious security problems.

Expected behavior
Validate social links. Disallow the Logout URL.

Screenshots
Image 01 - Edit mode
2022-04-01 01

Image 02 - View mode
2022-04-01 02

Image 03 - Edit mode
2022-04-01 01

Image 04 - View mode
2022-04-01 02

@yuriinalivaiko yuriinalivaiko self-assigned this Apr 1, 2022
@yuriinalivaiko yuriinalivaiko linked a pull request Apr 1, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant