-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Fixed] First name and Last name field must not allow to enter URL and Special character's #23489
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
Conversation
|
Hi @meetvora69. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
ihor-sviziev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @meetvora69,
I just reviewed your fix and found one issue - people will not be able to put non English name & surname. For instance you can't put there "Müller", or "Иван" anymore.
So there should be some blacklist of special symbols.
Could you double check your solution?
|
Hi @meetvora69, |
|
Hi @meetvora69, thank you for your contribution! |
|
This is the most frequent attack nowdays, we need to have a way to filter out URL's... |
|
Hi @cbichis, |
|
The spam bots are registering or signing up to the newsletter and they are using on first name/last name URL's. This would cause the registration confirmation email to include malicious URL's which of course are dangerous for anyone who clicks on them. With a enough large botnet it would be simple to send thousands of such emails. You can say ther are other security measures possible for such issues, but heh, by default I think Magento should ship basic protection for forms, which won't depend on user configuration (as it's captchas by example). Maybe the special characters are not always an issue but stripping URL's from forms is quite a must have... |
|
Yeah, but thats a bit a diff topic. I am pointing out here that it's quite hard to understand Magento with the default settings to have such security holes... For the custom made apps I am doing I also strip out not just tags but also URL's from the fields... |
Description (*)
First name and Last name field must not allow to enter URL and Special character's
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)