joomla / joomla-cms

Home of the Joomla! Content Management System
https://www.joomla.org
GNU General Public License v2.0
4.76k stars 3.65k forks source link

J4 com_user - Add option to disallow URLs in Username and Name #39270

Open coolcat-creations opened 1 year ago

coolcat-creations commented 1 year ago

Is your feature request related to a problem? Please describe.

Despite Captcha on, I get User registrations with valid emails but with scam in the username so that the valid email gets a spam mail from my Website.

Describe the solution you'd like

I would like to have an option to shorten the name and Username to max. 20 characters (or any custom value) and to add a blacklist for those fields and disallow any URLs in there.

Chaosxmk commented 1 year ago

A max character limit wouldn't work thanks to utilities like bit.ly.

coolcat-creations commented 1 year ago

That's right but an URL filter would make sense and additional length limit to prohibit long text in those fields

brianteeman commented 1 year ago

username is already limited to 30 characters

Quy commented 1 year ago

See closed PR #20142 for discussion.

coolcat-creations commented 1 year ago

It's a serious security issue for me :-( please bring the PR back @laoneo @GeraintEdwards

coolcat-creations commented 1 year ago

username is already limited to 30 characters

But name isn't- I have lots of russian spam there

brianteeman commented 1 year ago

yes it is

https://github.com/joomla/joomla-cms/blob/b53b47c4b3e609dd90d44f96e84cc1b32cab6e04/components/com_users/forms/registration.xml#L11-L17

brianteeman commented 1 year ago

As stated by @laoneo in the other PR there are extensions available. I just quickly tested one that was the first match on the JED and it worked fine https://github.com/Spudley/plg_user_restrictusername

coolcat-creations commented 1 year ago

Security should be a core setting :-(

brianteeman commented 1 year ago

This isnt security.